/* ============================================
   ATVision.it — Dark Luxury-Tech Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #FFC400;
  --primary-dark: #E5B000;
  --primary-light: #FFD54F;
  --primary-glow: rgba(255, 196, 0, 0.15);
  --primary-glow-strong: rgba(255, 196, 0, 0.3);
  --black: #000000;
  --dark: #0A0A0A;
  --dark-gray: #1A1A1A;
  --medium-gray: #2D2D2D;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --text-muted: #999999;
  --text-secondary: #CCCCCC;
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Custom cursor */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
  #custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  #custom-cursor.cursor-hover {
    transform: translate(-50%, -50%) scale(2);
    background-color: var(--primary);
    border-color: var(--primary);
  }
}

main {
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 640px;
  line-height: 1.8;
}

/* Gold underline accent */
.gold-underline {
  position: relative;
  display: inline-block;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gold-underline.in-view::after {
  width: 100%;
}

/* --- Section Separator --- */
.section-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
  opacity: 0.3;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  color: var(--primary);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--black);
  box-shadow: 0 0 30px var(--primary-glow-strong);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
  background-color: #000000; 
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
   
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 196, 0, 0.1);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo .at {
  color: var(--primary);
}

.nav-logo .vision {
  color: var(--white);
}

.nav-logo .dot-it {
  color: var(--text-muted);
  font-size: 0.85em;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-social a {
  color: var(--text-muted);
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-social a:hover {
  color: var(--primary);
}

/* --- Dropdown Menu --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger i {
  font-size: 0.6rem;
}

.nav-dropdown:hover .nav-dropdown-trigger i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 620px;
  max-width: calc(100vw - 2rem);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--medium-gray);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-dropdown-heading {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 196, 0, 0.15);
}

.nav-dropdown-col a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  color: var(--text-secondary) !important;
  font-size: 0.8rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.nav-dropdown-col a::after {
  display: none !important;
}

.nav-dropdown-col a i {
  color: rgba(255, 196, 0, 0.4);
  font-size: 0.75rem;
  width: 18px;
  text-align: center;
  transition: color 0.2s ease;
}

.nav-dropdown-col a:hover {
  color: var(--white) !important;
  background: rgba(255, 196, 0, 0.06);
}

.nav-dropdown-col a:hover i {
  color: var(--primary);
}

.nav-dropdown-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--medium-gray);
}

.nav-dropdown-cta p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.nav-dropdown-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.nav-dropdown-cta-btn::after {
  display: none !important;
}

.nav-dropdown-cta-btn:hover {
  color: var(--white) !important;
}

/* --- Mobile menu button --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.5rem;
  z-index: 1002;
  position: relative;
}

.mobile-menu-btn i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active i {
  transform: rotate(90deg);
}

/* --- Mobile menu overlay --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile menu panel --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: #0A0A0A;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-left: 1px solid rgba(255, 196, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5rem 1.75rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 196, 0, 0.3) transparent;
}

.mobile-menu-inner::-webkit-scrollbar {
  width: 3px;
}

.mobile-menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 196, 0, 0.3);
  border-radius: 3px;
}

/* --- Mobile menu nav links --- */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mobile-menu-link,
.mobile-submenu-toggle {
  color: var(--white);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-menu-link,
.mobile-menu.active .mobile-submenu-toggle {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-link:active,
.mobile-submenu-toggle:active {
  color: var(--primary);
}

/* --- Mobile submenu toggle --- */
.mobile-submenu-toggle {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-submenu-toggle i {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary);
}

.mobile-submenu-toggle.open {
  color: var(--primary);
}

.mobile-submenu-toggle.open i {
  transform: rotate(180deg);
}

/* --- Mobile submenu --- */
.mobile-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 196, 0, 0.2);
  margin-left: 0.25rem;
}

.mobile-submenu.open {
  max-height: 600px;
}

.mobile-submenu-heading {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  padding: 0.75rem 0 0.25rem;
  opacity: 0.7;
}

.mobile-submenu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  border-bottom: none;
  opacity: 1;
  transform: none;
}

.mobile-submenu a i {
  font-size: 0.75rem;
  color: rgba(255, 196, 0, 0.5);
  width: 1.2rem;
  text-align: center;
}

.mobile-submenu a:active {
  color: var(--primary);
  padding-left: 0.25rem;
}

/* --- Mobile menu footer --- */
.mobile-menu-footer {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.mobile-menu.active .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-social {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.mobile-menu-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s ease;
  opacity: 1;
  transform: none;
  padding: 0;
  border: none;
}

.mobile-menu-social a:active {
  color: var(--primary);
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
  transform: none;
  padding: 0;
  border: none;
}

/* --- Responsive overrides --- */
@media (max-width: 1023px) {
  .nav-links, .nav-social {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .navbar {
    padding: 0.75rem 0;
    background: #000;
  }
}

@media (max-width: 639px) {
  .mobile-menu-link,
  .mobile-submenu-toggle {
    font-size: 1.3rem;
    padding: 0.65rem 0;
  }
  .mobile-menu {
    width: 100%;
    max-width: 100%;
    border-left: none;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 196, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 0, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 196, 0, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 50%, var(--black) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  overflow: hidden;
}

.hero-line {
  display: block;
  transform: translateY(120%);
  animation: heroReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-line:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes heroReveal {
  to { transform: translateY(0); }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 600px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-badges {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--medium-gray);
  background: rgba(255, 196, 0, 0.03);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-badge i {
  color: var(--primary);
}

/* Floating geometric elements */
.hero-float {
  position: absolute;
  z-index: 1;
  opacity: 0.08;
}

.hero-float-1 {
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  border: 2px solid var(--primary);
  transform: rotate(45deg);
  animation: float1 8s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 20%;
  right: 25%;
  width: 150px;
  height: 150px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: float2 6s ease-in-out infinite;
}

.hero-float-3 {
  top: 30%;
  right: 30%;
  width: 80px;
  height: 80px;
  background: var(--primary);
  animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(20px, -20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 15px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.08; }
  50% { transform: translate(10px, -25px) rotate(90deg); opacity: 0.12; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }
.reveal-delay-9 { transition-delay: 0.9s; }
.reveal-delay-10 { transition-delay: 1.0s; }

/* --- Stat Counter --- */
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* --- Service Cards --- */
.service-card {
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(255, 196, 0, 0.08), 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.15);
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 0.75rem;
}

/* --- Pipeline Timeline --- */
.pipeline-step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}

.pipeline-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 196, 0, 0.1);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pipeline-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
  background: var(--black);
  position: relative;
  z-index: 2;
}

.pipeline-step:hover .pipeline-icon {
  background: var(--primary);
  color: var(--black);
  box-shadow: 0 0 25px var(--primary-glow-strong);
}

.pipeline-connector {
  position: absolute;
  top: 50%;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 196, 0, 0.2));
  z-index: 1;
  display: none;
}

@media (min-width: 768px) {
  .pipeline-connector {
    display: block;
  }
}

/* --- Gallery --- */
.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--medium-gray);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--black);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-item:nth-child(3n+1) {
  aspect-ratio: 1/1;
}

.gallery-item:nth-child(5n+2) {
  aspect-ratio: 16/10;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 0.75rem;
  transition: all 0.4s ease;
}

.gallery-placeholder i {
  font-size: 2.5rem;
  color: rgba(255, 196, 0, 0.2);
  transition: all 0.4s ease;
}

.gallery-placeholder span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-placeholder i {
  color: var(--primary);
  transform: scale(1.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
}

.gallery-overlay span {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lightbox image */
.lightbox-image {
  max-width: 90%;
  max-height: 70vh;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border: 1px solid var(--medium-gray);
}

/* --- Client Target Cards --- */
.target-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  transition: all 0.4s ease;
}

.target-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(255, 196, 0, 0.08);
  transform: translateY(-4px);
}

.target-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(255, 196, 0, 0.2);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.target-card:hover .target-icon {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
}

/* --- Team Cards --- */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  transition: all 0.4s ease;
}

.team-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.08);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--black);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--primary-glow-strong);
}

.team-role {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Packages / Promo Banner --- */
.promo-banner {
  background: linear-gradient(135deg, var(--dark-gray) 0%, rgba(255, 196, 0, 0.05) 100%);
  border: 1px solid rgba(255, 196, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control option {
  background: var(--dark-gray);
  color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #ff4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.error {
  border-color: #ff4444;
}

/* Contact info cards */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.15);
  color: var(--primary);
  font-size: 1rem;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-family: 'DM Sans', sans-serif;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.6;
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* --- Flash Messages --- */
.flash-message {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid;
  animation: flashIn 0.4s ease;
}

.flash-success {
  background: rgba(0, 200, 83, 0.1);
  border-color: #00c853;
  color: #69f0ae;
}

.flash-error {
  background: rgba(255, 68, 68, 0.1);
  border-color: #ff4444;
  color: #ff8a80;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--medium-gray);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 196, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: none;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 800px;
  width: 90%;
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  padding: 3rem;
  text-align: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--primary);
}

/* --- Accordion / Tabs --- */
.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--medium-gray);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--black);
}

.tab-content {
  display: none;
  padding: 2rem 0;
  animation: fadeUp 0.4s ease;
}

.tab-content.active {
  display: block;
}

/* --- Map placeholder --- */
.map-placeholder {
  width: 100%;
  height: 200px;
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 0.5rem;
}

/* --- Success Message --- */
.submit-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeUp 0.5s ease;
}

.submit-success.show {
  display: block;
}

.submit-success i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: var(--black);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hero-float {
    display: none;
  }
  .pipeline-connector {
    display: none;
  }
  section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}
