/* ==========================================================================
   DIGISTROBE.COM - LUXURY APPLE LIQUID GLASS & DARK EMERALD DESIGN SYSTEM
   Authentic Liquid Glass Buttons • Motion Graphics • Inter Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500&display=swap');

:root {
  /* Dark Obsidian Forest Canvas (Exact Match to "Dimensions Refracted" Artwork) */
  --bg-black: #040d06;
  --bg-dark: #071509;
  --bg-surface: #0a1e0e;
  --bg-surface-elevated: #0f2c15;
  --bg-card: rgba(8, 24, 11, 0.72);
  --bg-card-hover: rgba(13, 38, 18, 0.88);
  --bg-liquid-glass: rgba(9, 28, 13, 0.65);

  /* Refined Organic Forest Moss & Crystal Sage Spectrum (Zero Sea-Green / Zero Cyan) */
  --emerald-ice: #f4fbf3;
  --emerald-glow: #c6f1bc;
  --emerald-mint: #8edb7d;
  --emerald-bright: #52c441;
  --emerald-neon: #3ca82d;
  --emerald-deep: #226b1c;
  --emerald-forest: #133817;
  --emerald-obsidian: #040d06;

  /* Crystal Glass Prismatic Refraction Accents (from 3D Crystal Gem) */
  --prism-amber: #fbbf24;
  --prism-gold: #f59e0b;
  --prism-cyan: #38bdf8;
  --prism-lime: #a3e635;
  --prism-rose: rgba(244, 114, 182, 0.3);

  /* Apple Liquid Glass Borders & Refined Specular Highlights */
  --border-subtle: rgba(142, 219, 125, 0.16);
  --border-glass: rgba(142, 219, 125, 0.28);
  --border-glass-bright: rgba(198, 241, 188, 0.55);
  --glass-specular: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.45), inset 0 -1.5px 1px 0 rgba(0, 0, 0, 0.45);
  --glass-inner-glow: inset 0 0 20px 0 rgba(142, 219, 125, 0.12);

  /* Balanced Ambient Glows (Smooth, Warm Forest, No Harsh Sea-Green Glare) */
  --glow-mint: 0 0 35px rgba(142, 219, 125, 0.22);
  --glow-emerald: 0 0 28px rgba(82, 196, 65, 0.2);
  --glow-liquid-button: 0 8px 24px -4px rgba(82, 196, 65, 0.35);
  --glow-chromatic: 0 0 24px rgba(142, 219, 125, 0.25), 0 0 45px rgba(82, 196, 65, 0.15);

  /* Typography: Crisp Clean White & Light Sage (Matching Screenshot) */
  --text-main: #ffffff;
  --text-body: #d8e6db;
  --text-muted: #9bb3a0;
  --text-faint: #677e6c;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Space Grotesk', monospace;

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

/* Lenis Smooth Scroll Configuration */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--bg-black);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(19, 56, 23, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 100% 35%, rgba(14, 43, 17, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(10, 32, 13, 0.3) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* Canvas & Atmospheric Aurora Glows (GPU Hardware Accelerated) */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* Flows on top of the 3D background video */
  opacity: 0.85;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(130px);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.ambient-glow-1 {
  top: -10%;
  right: -5%;
  width: min(550px, 80vw);
  height: min(550px, 80vw);
  background: radial-gradient(circle, rgba(142, 219, 125, 0.16) 0%, rgba(19, 56, 23, 0.28) 50%, transparent 70%);
}

.ambient-glow-2 {
  top: 35%;
  left: -10%;
  width: min(650px, 90vw);
  height: min(650px, 90vw);
  background: radial-gradient(circle, rgba(82, 196, 65, 0.15) 0%, rgba(9, 28, 13, 0.3) 50%, transparent 70%);
}

.ambient-glow-3 {
  bottom: 0%;
  right: 10%;
  width: min(500px, 75vw);
  height: min(500px, 75vw);
  background: radial-gradient(circle, rgba(142, 219, 125, 0.14) 0%, transparent 70%);
}

/* Typography (Simple, Clean, Light & Regular) */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.03em;
  word-break: break-word;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
}

p {
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-spacing {
  padding: 5.5rem 0;
}

/* ==========================================================================
   Organic Emerald & Crystal Prism Beam (Exact "Dimensions Refracted" Match)
   - Dominant Base: Pure White to Soft Pastel Sage & Organic Emerald
   - Traveling Specular Beam: Crystal Prismatic Refraction (Platinum White, Solar Gold, Sage Lime)
   ========================================================================== */
.text-gradient-emerald,
.text-gradient-animated {
  background: linear-gradient(
    110deg,
    /* --- ORGANIC SAGE & FOREST EMERALD CORE (NO SEA GREEN / NO CYAN) --- */
    #ffffff 0%,
    #f4fbf3 10%,
    #c6f1bc 22%,
    #8edb7d 34%,
    #52c441 46%,
    #8edb7d 58%,
    #c6f1bc 70%,
    #ffffff 78%,
    
    /* --- 3D CRYSTAL PRISM REFRACTION HIGHLIGHT --- */
    #fef9c3 82%,
    #ffffff 86%,
    #c6f1bc 90%,
    #8edb7d 95%,
    #52c441 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinePrismMetallicBeam 24s linear infinite;
  display: inline;
  /* Soft Organic Sage Glow */
  filter: drop-shadow(0 0 6px rgba(142, 219, 125, 0.35)) drop-shadow(0 0 16px rgba(82, 196, 65, 0.18));
}

@keyframes shinePrismMetallicBeam {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

.text-gradient-mint {
  background: linear-gradient(135deg, #ffffff 0%, #c6f1bc 45%, #8edb7d 80%, #52c441 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   MOTION GRAPHICS & SCROLL REVEAL SYSTEM (PINTEREST / LINEAR STYLE)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

/* Staggered Delays for Grid Children */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Hero Entrance Choreography (transform: none at 100% to unblock canvas backdrop-filter sampling) */
@keyframes heroGlideIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.hero-animate-1 { animation: heroGlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.05s; opacity: 0; }
.hero-animate-2 { animation: heroGlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s; opacity: 0; }
.hero-animate-3 { animation: heroGlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s; opacity: 0; }
.hero-animate-4 { animation: heroGlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s; opacity: 0; }
.hero-animate-5 { animation: heroGlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.65s; opacity: 0; }
.hero-animate-6 { animation: heroGlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s; opacity: 0; }

/* ==========================================================================
   AUTHENTIC APPLE LIQUID GLASS BUTTON SYSTEM (WWDC LIQUID GLASS SPEC)
   (Visible Frosted Glass Refraction • Rotating Border Beam • Mouse-Track Slanted Sheen • Rubber Click Physics)
   ========================================================================== */
@property --btn-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBtnBeam {
  0% {
    --btn-beam-angle: 0deg;
  }
  100% {
    --btn-beam-angle: 360deg;
  }
}

.btn,
.btn-liquid-glass,
.btn-outline,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px; /* Flat pill capsule geometry */
  cursor: pointer;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: visible;
  user-select: none;
  text-align: center;
  min-height: 48px;
  letter-spacing: -0.01em;
  color: #ffffff;
  z-index: 2;

  /* 1. Distinct Visible Frosted Glass Tint & Optical Blur */
  background: rgba(6, 22, 10, 0.65);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  border: 1.5px solid rgba(198, 241, 188, 0.35); /* Soft crystal sage glass rim */

  /* 2. Prominent Shining Crystal Rim & Prismatic Bevel */
  box-shadow: 
    inset 0 1.2px 1px 0 rgba(255, 255, 255, 0.75),       /* Crisp top glass highlight */
    inset 0 0 0 1px rgba(142, 219, 125, 0.18),            /* Continuous perimeter sage ring */
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.45),             /* Deep bottom rim shadow */
    inset 2px 0 3px 0 rgba(142, 219, 125, 0.35),          /* Sage emerald prismatic rim */
    inset -2px 0 3px 0 rgba(251, 191, 36, 0.28),          /* Solar Amber prismatic rim */
    0 0 12px 0 rgba(142, 219, 125, 0.12),                 /* Outer perimeter edge glow */
    0 8px 25px -4px rgba(0, 0, 0, 0.55);

  will-change: transform, box-shadow, backdrop-filter;
  /* Rubber spring recoil transition on release */
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.btn > *,
.btn-liquid-glass > * {
  position: relative;
  z-index: 4;
}

/* 3. Mouse-Tracking Interactive Slanted Specular Glare & Monochrome Sheen Streak */
.btn::before,
.btn-liquid-glass::before,
.btn-outline::before,
button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: 
    radial-gradient(circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.3) 0%, rgba(142, 219, 125, 0.2) 45%, transparent 75%),
    linear-gradient(115deg, transparent calc(var(--mouse-x, 50%) - 50px), rgba(255, 255, 255, 0.25) var(--mouse-x, 50%), transparent calc(var(--mouse-x, 50%) + 50px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

/* 4. Continuous Rotating Perimeter Border Shine (Identical to Strobe Bot Launcher) */
.btn::after,
.btn-liquid-glass::after,
.btn-outline::after,
button[type="submit"]::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg) at 50% 50%,
    transparent 0%,
    transparent 72%,
    rgba(142, 219, 125, 0.25) 84%,
    #52c441 92%,
    #ffffff 97%,
    #8edb7d 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotateBorderShine 3.5s linear infinite;
  z-index: 3;
}

/* 5. Interactive Shining Hover State */
.btn:hover,
.btn-liquid-glass:hover,
.btn-outline:hover,
button[type="submit"]:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(19, 56, 23, 0.7) 100%);
  border-color: rgba(255, 255, 255, 0.75); /* Intense edge illumination */
  transform: translateY(-2px) scale(1.025);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.2);
  box-shadow: 
    inset 0 2px 2px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.45),
    inset 3.5px 0 6px 0 rgba(142, 219, 125, 0.6),
    inset -3.5px 0 6px 0 rgba(251, 191, 36, 0.55),
    0 0 18px 0 rgba(255, 255, 255, 0.25),                /* Vivid edge shine bloom */
    0 12px 32px -4px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(142, 219, 125, 0.22);
}

.btn:hover::before,
.btn-liquid-glass:hover::before,
.btn-outline:hover::before,
button[type="submit"]:hover::before,
.btn:hover::after,
.btn-liquid-glass:hover::after,
.btn-outline:hover::after,
button[type="submit"]:hover::after {
  opacity: 1;
}

/* 6. Elastic Rubber Snap Click Physics (:active) */
.btn:active,
.btn-liquid-glass:active,
.btn-outline:active,
button[type="submit"]:active {
  transform: scale(0.92) scaleY(0.89) translateY(2px) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) saturate(180%) brightness(0.95) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(0.95) !important;
  box-shadow: 
    inset 0 2px 3px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4),
    0 0 12px rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.08s ease !important;
}

.btn-outline {
  background: rgba(4, 18, 8, 0.6);
  border: 1px solid rgba(142, 219, 125, 0.35);
  color: #ffffff;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(142, 219, 125, 0.15),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-outline:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(142, 219, 125, 0.22) 0%, rgba(19, 56, 23, 0.7) 100%);
  border-color: rgba(198, 241, 188, 0.6);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(142, 219, 125, 0.3),
    0 0 18px rgba(142, 219, 125, 0.25),
    0 10px 25px -4px rgba(0, 0, 0, 0.45);
}


/* Sizing Modifiers */
.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-lg {
  padding: 0.95rem 2.4rem;
  font-size: 0.98rem;
  min-height: 52px;
}

/* ==========================================================================
   GLASSMORPHISM PANELS & CARDS (GENEROUS BOTTOM PADDING - NO CLIPPED TEXT)
   ========================================================================== */
.glass-panel {
  background: var(--bg-liquid-glass);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-specular), 0 25px 50px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(16, 185, 129, 0.12);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem 2.25rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: visible;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-4px);
  box-shadow: var(--glass-specular), var(--glow-emerald), 0 0 30px rgba(66, 230, 82, 0.25);
}

/* ==========================================================================
   RAZOR-SHARP ROTATING BORDER SHINE BEAM & GLOW SYSTEM
   (Uniform 1.5px thickness, identical speed, mouse-entry angle tracking)
   ========================================================================== */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotateBorderShine {
  0% {
    --border-angle: var(--start-angle, 0deg);
  }
  100% {
    --border-angle: calc(var(--start-angle, 0deg) + 360deg);
  }
}

.glass-card,
.service-card,
.portfolio-card,
.venture-card,
.pricing-card,
.video-testimonial-card,
.glass-panel,
.map-card-wrapper,
.ai-auditor-box,
.invoice-wrapper,
.checkbox-card,
.admin-sidebar {
  position: relative;
}

/* Sharp Rotating Glow Line (Uniform 1.5px thickness & identical glow) */
.glass-card::after,
.service-card::after,
.portfolio-card::after,
.venture-card::after,
.pricing-card::after,
.video-testimonial-card::after,
.glass-panel::after,
.map-card-wrapper::after,
.ai-auditor-box::after,
.invoice-wrapper::after,
.checkbox-card::after,
.admin-sidebar::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle, 0deg) at 50% 50%,
    transparent 0%,
    transparent 65%,
    rgba(142, 219, 125, 0.2) 80%,
    #52c441 90%,
    #8edb7d 95%,
    #ffffff 98.5%,
    #8edb7d 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

/* On Hover: ONLY the single hovered box activates and spins */
.glass-card:hover::after,
.service-card:hover::after,
.portfolio-card:hover::after,
.venture-card:hover::after,
.pricing-card:hover::after,
.video-testimonial-card:hover::after,
.glass-panel:hover::after,
.map-card-wrapper:hover::after,
.ai-auditor-box:hover::after,
.invoice-wrapper:hover::after,
.checkbox-card:hover::after,
.admin-sidebar:hover::after {
  opacity: 1;
  animation: rotateBorderShine 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(142, 219, 125, 0.6));
}

/* Badges */
.badge-mint-glass,
.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(142, 219, 125, 0.1);
  border: 1px solid rgba(198, 241, 188, 0.32);
  color: #c6f1bc;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 15px rgba(142, 219, 125, 0.15);
}

/* ==========================================================================
   NAVIGATION WITH ULTRA-SMOOTH FROSTED CAPSULE HOVER
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.15rem 0;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  will-change: backdrop-filter, background;
  backface-visibility: hidden;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(5, 12, 8, 0.22);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(16, 185, 129, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 101;
  text-decoration: none;
}

.brand-logo img,
.brand-logo-img {
  height: 27px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
  filter: none !important;
  -webkit-filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.brand-logo:hover img,
.brand-logo:hover .brand-logo-img {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 0.88;
  transform: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  background: rgba(10, 20, 14, 0.15);
  padding: 0.35rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  will-change: backdrop-filter, background;
  transform: translateZ(0);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

@keyframes spinNavBorderBeam {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  transform: scale(1);
  overflow: hidden;
  z-index: 1;
  transition: 
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  transition-delay: 0.06s;
  user-select: none;
}

/* Active Rotating Glow Beam (Hidden by default, spins continuously on :hover) */
.nav-link::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 400%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    transparent 230deg,
    rgba(142, 219, 125, 0.2) 280deg,
    #52c441 320deg,
    #8edb7d 345deg,
    #ffffff 357deg,
    #8edb7d 360deg
  );
  opacity: 0;
  pointer-events: none;
  z-index: -2;
  transform-origin: center center;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.06s;
}

/* Inner Pill Mask (Leaves razor-sharp 1.5px glowing perimeter) */
.nav-link::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: var(--radius-full);
  background: rgba(3, 18, 9, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  transition-delay: 0.06s;
}

/* Menu Button Hover State: Continuous Active Rotation & Smooth Zoom-In */
.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(142, 219, 125, 0.25);
  transition-delay: 0s;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
  animation: spinNavBorderBeam 2.2s linear infinite;
  filter: drop-shadow(0 0 5px rgba(142, 219, 125, 0.7));
  transition-delay: 0s;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  background: rgba(4, 26, 12, 0.85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition-delay: 0s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 101;
}

.mobile-toggle {
  display: none;
  background: rgba(6, 28, 15, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION WITH 3D ROTATING GLASS THUNDERBOLT (WIDE FADE MASK)
   ========================================================================== */
.hero-section {
  padding-top: clamp(8rem, 13vw, 11rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  position: relative;
  text-align: center;
  overflow-x: clip;
}

/* 3D Rotating Glass Thunderbolt Background Video (Layer 0: +15% Scale & Deep Edge Feather) */
.hero-bg-3d-video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1750px, 155vw);
  height: min(1080px, 120vh);
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Deep, wide radial feather mask: solid in center, completely fades to 0% well before top/bottom edges */
  -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 50%, rgba(0, 0, 0, 1) 22%, rgba(0, 0, 0, 0.75) 38%, rgba(0, 0, 0, 0.15) 58%, rgba(0, 0, 0, 0) 75%);
  mask-image: radial-gradient(ellipse 48% 50% at 50% 50%, rgba(0, 0, 0, 1) 22%, rgba(0, 0, 0, 0.75) 38%, rgba(0, 0, 0, 0.15) 58%, rgba(0, 0, 0, 0) 75%);
  opacity: 0.85;
}

.hero-bg-3d-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  background: transparent;
  transform: translateZ(0);
}

.hero-clean-container {
  position: relative;
  z-index: 2; /* Sits cleanly ON TOP of both the background video (Layer 0) and the canvas particles (Layer 1) */
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-title {
  max-width: 840px;
  margin: 0 auto;
  min-height: clamp(2.4em, 6.5vw, 3.2em);
  position: relative;
  width: 100%;
  /* Subtle 7% Ambient Contrast Shadow for Natural Clarity */
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.07);
}

.hero-title-rotator {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.hero-rotator-item {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  width: 100%;
  perspective: 1000px;
  visibility: hidden;
}

.hero-rotator-item.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.hero-rotator-item.exit {
  opacity: 1;
  pointer-events: none;
  visibility: visible;
}

/* Kinetic After Effects Staggered Word Mask (Apple / Linear Kinetic Typography) */
.ae-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.15em 0.1em;
  margin: -0.15em -0.05em;
}

.ae-word {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform: translateY(115%) rotateX(-25deg) scale(0.94);
  filter: blur(18px);
  opacity: 0;
  transition: transform 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--w-index, 0) * 0.095s);
}

/* Active State: Words rise up staggered from underneath with optical Gaussian blur clearance */
.hero-rotator-item.active .ae-word {
  transform: translateY(0%) rotateX(0deg) scale(1);
  filter: blur(0px);
  opacity: 1;
}

/* Exit State: Words float upward and dissolve into smooth optical blur */
.hero-rotator-item.exit .ae-word {
  transform: translateY(-115%) rotateX(20deg) scale(0.96);
  filter: blur(16px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--w-index, 0) * 0.045s);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-metrics-pill {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(4, 22, 11, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.75rem;
  margin-top: 2rem;
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-metric-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-metric-val {
  color: var(--emerald-mint);
  font-weight: 500;
}

/* ==========================================================================
   ANIMATED SERVICE ICONS (DESIGNED FOR DISTINCTION & PERFORMANCE)
   ========================================================================== */
@keyframes iconLevitate {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 15px rgba(52, 211, 153, 0.25);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.6), 0 0 28px rgba(110, 231, 183, 0.55);
  }
}

/* ==========================================================================
   LOTTIE-STYLE VECTOR MICRO-ANIMATED SERVICE ICONS
   Soft, calm, fluid animations on hover and ambient idle breathing
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Service Icon Container - CLEAN UNCONSTRAINED ICON WRAPPER (No Bounding Box) */
.service-icon {
  width: auto;
  height: auto;
  min-height: 52px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 !important;
  margin: 0 0 0.5rem 0;
  position: relative;
  overflow: visible;
  transform: none !important;
  animation: none !important;
}

.service-card:hover .service-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Service Inline SVG Vector Icons (Transparent Background, Exact 2.0px Stroke Weight) */
.service-svg {
  width: 52px;
  height: 52px;
  overflow: visible;
  display: block;
  pointer-events: none;
  transition: filter 0.35s ease;
}

.service-svg path,
.service-svg rect,
.service-svg circle,
.service-svg line,
.service-svg polygon {
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s ease, fill 0.35s ease;
}

/* ==========================================================================
   STATE 1: DEFAULT REST STATE (Strictly Single Monochrome Brand Green #52c441)
   - Outline / Tracks / Nodes / Accents: Pure Brand Emerald #52c441
   - Bodies: Translucent glass tint (rgba(82, 196, 65, 0.12))
   - Highlights / Inner details: rgba(82, 196, 65, 0.85) / #52c441
   ========================================================================== */
.service-svg .icon-outline {
  stroke: #52c441;
  fill: none;
}

.service-svg .icon-stroke-track {
  stroke: #52c441;
  stroke-width: 1.8px;
  fill: none;
}

.service-svg .icon-body-stroke {
  stroke: #52c441;
  fill: none;
}

.service-svg .icon-body {
  stroke: #52c441;
  fill: rgba(82, 196, 65, 0.12);
}

.service-svg .icon-accent {
  stroke: #52c441;
  fill: rgba(82, 196, 65, 0.25);
}

.service-svg .icon-white {
  fill: rgba(82, 196, 65, 0.9);
  stroke: none;
}

.service-svg .icon-node {
  stroke: #52c441;
  fill: #52c441;
}

/* ==========================================================================
   STATE 2: CARD HOVER STATE (Exact Multi-Color Vector Palette)
   - Outlines / Main Lines: Dark Forest Green (#05480c)
   - Primary Shapes / Bodies: Electric Lime (#84cc16)
   - Accents / Stars / Nodes: Bright Yellow / Gold (#ffd000)
   - Highlights / Texts / Slits: Pure White (#ffffff)
   ========================================================================== */
.service-card:hover .service-svg {
  filter: drop-shadow(0 2px 8px rgba(132, 204, 22, 0.4)) drop-shadow(0 0 14px rgba(16, 185, 129, 0.25));
}

.service-card:hover .service-svg .icon-outline {
  stroke: #05480c;
  fill: none;
}

.service-card:hover .service-svg .icon-stroke-track {
  stroke: #05480c;
  stroke-width: 1.8px;
  fill: none;
}

.service-card:hover .service-svg .icon-body-stroke {
  stroke: #84cc16;
  fill: none;
}

.service-card:hover .service-svg .icon-body {
  stroke: #05480c;
  fill: #84cc16;
}

.service-card:hover .service-svg .icon-accent {
  stroke: #05480c;
  fill: #ffd000;
}

.service-card:hover .service-svg .icon-white {
  fill: #ffffff;
  stroke: none;
}

.service-card:hover .service-svg .icon-node.node-lime {
  stroke: #05480c;
  fill: #84cc16;
}

.service-card:hover .service-svg .icon-node.node-yellow,
.service-card:hover .service-svg .icon-node {
  stroke: #05480c;
  fill: #ffd000;
}

/* ==========================================================================
   CONTINUOUS FUNCTIONAL MOTION PHYSICS & ANIMATIONS (Exact Reference Fidelity)
   ========================================================================== */

/* --------------------------------------------------------------------------
   ICON 1: Brand Identity (Paintbrush, Droplets, and Circuit Signal Waves)
   -------------------------------------------------------------------------- */
.anim-brush-sway {
  transform-origin: 32px 32px;
  animation: brushSwayMotion 3.2s ease-in-out infinite;
}

@keyframes brushSwayMotion {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.anim-droplet-1 {
  transform-origin: 13px 51px;
  animation: dropletFadePulse 2.4s ease-in-out infinite 0s;
}

.anim-droplet-2 {
  transform-origin: 9px 56px;
  animation: dropletFadePulse 2.4s ease-in-out infinite 0.4s;
}

.anim-droplet-3 {
  transform-origin: 15px 58px;
  animation: dropletFadePulse 2.4s ease-in-out infinite 0.8s;
}

@keyframes dropletFadePulse {
  0%, 100% { opacity: 0.25; transform: translateY(0) scale(0.7); }
  50% { opacity: 1; transform: translateY(1.5px) scale(1.2); }
}

.anim-node-wave-1 {
  transform-origin: center;
  animation: nodeWaveOutward 2.4s ease-in-out infinite 0.1s;
}

.anim-node-wave-2 {
  transform-origin: center;
  animation: nodeWaveOutward 2.4s ease-in-out infinite 0.4s;
}

.anim-node-wave-3 {
  transform-origin: center;
  animation: nodeWaveOutward 2.4s ease-in-out infinite 0.7s;
}

@keyframes nodeWaveOutward {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* --------------------------------------------------------------------------
   ICON 2: Web Engineering (360 Rotating Gear, Code Folder, Screen Lines)
   -------------------------------------------------------------------------- */
.anim-gear-spin {
  transform-origin: 48px 16.5px;
  animation: spinGear 4s linear infinite;
}

@keyframes spinGear {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.anim-monitor-breathe {
  transform-origin: 32px 32px;
  animation: monitorHover 3.2s ease-in-out infinite;
}

@keyframes monitorHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.anim-code-blink {
  animation: folderCodeBlink 2.2s ease-in-out infinite;
}

@keyframes folderCodeBlink {
  0%, 100% { opacity: 0.75; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

.anim-code-line-1 { animation: linePulse 2.4s ease-in-out infinite 0.2s; }
.anim-code-line-2 { animation: linePulse 2.4s ease-in-out infinite 0.5s; }
.anim-code-line-3 { animation: linePulse 2.4s ease-in-out infinite 0.8s; }

@keyframes linePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   ICON 3: Video Production (Dual Film Reels 360 Spin, Lens Waves, Play Pulse)
   -------------------------------------------------------------------------- */
.anim-reel-left {
  transform-origin: 17px 11px;
  animation: spinFilmReel 3s linear infinite;
}

.anim-reel-right {
  transform-origin: 31px 11px;
  animation: spinFilmReel 3s linear infinite;
}

@keyframes spinFilmReel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.anim-lens-node-1 { transform-origin: 60px 15px; animation: lensNodePulse 2s ease-in-out infinite 0.0s; }
.anim-lens-node-2 { transform-origin: 61px 30.5px; animation: lensNodePulse 2s ease-in-out infinite 0.3s; }
.anim-lens-node-3 { transform-origin: 60px 46px; animation: lensNodePulse 2s ease-in-out infinite 0.6s; }

@keyframes lensNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
}

.anim-play-pulse {
  transform-origin: 23.5px 30.5px;
  animation: playTrianglePulse 2s ease-in-out infinite;
}

@keyframes playTrianglePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* --------------------------------------------------------------------------
   ICON 4: Performance Growth (Sequential 5-Bar Scale, Trend Curve, Star Pop)
   -------------------------------------------------------------------------- */
.anim-bar-1 { animation: barScaleSeq 2.4s ease-in-out infinite 0.00s; transform-origin: 11.5px 52px; }
.anim-bar-2 { animation: barScaleSeq 2.4s ease-in-out infinite 0.18s; transform-origin: 21.5px 52px; }
.anim-bar-3 { animation: barScaleSeq 2.4s ease-in-out infinite 0.36s; transform-origin: 31.5px 52px; }
.anim-bar-4 { animation: barScaleSeq 2.4s ease-in-out infinite 0.54s; transform-origin: 41.5px 52px; }
.anim-bar-5 { animation: barScaleSeq 2.4s ease-in-out infinite 0.72s; transform-origin: 51.5px 52px; }

@keyframes barScaleSeq {
  0%, 100% { transform: scaleY(0.62); }
  50% { transform: scaleY(1.05); }
}

.anim-trend-curve {
  stroke-dasharray: 55;
  stroke-dashoffset: 55;
  animation: trendCurveDraw 2.4s ease-in-out infinite;
}

@keyframes trendCurveDraw {
  0% { stroke-dashoffset: 55; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.anim-trend-arrow-head {
  transform-origin: 38px 13px;
  animation: trendArrowHeadPop 2.4s ease-in-out infinite;
}

@keyframes trendArrowHeadPop {
  0%, 25% { opacity: 0; transform: scale(0.4); }
  50%, 85% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.anim-star-pop {
  transform-origin: 52px 8px;
  animation: starPeakPop 2.4s ease-in-out infinite;
}

@keyframes starPeakPop {
  0%, 35% { opacity: 0.35; transform: scale(0.7); }
  55% { opacity: 1; transform: scale(1.3) rotate(10deg); }
  75%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* --------------------------------------------------------------------------
   ICON 5: Creative Artworks & 3D (Building Float, Window Slits, Medal Star)
   -------------------------------------------------------------------------- */
.anim-structure-float {
  transform-origin: 32px 32px;
  animation: corporateBuildingFloat 3.2s ease-in-out infinite;
}

@keyframes corporateBuildingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

.anim-window-slit-1 { animation: windowLightPulse 2.4s ease-in-out infinite 0.0s; }
.anim-window-slit-2 { animation: windowLightPulse 2.4s ease-in-out infinite 0.2s; }
.anim-window-slit-3 { animation: windowLightPulse 2.4s ease-in-out infinite 0.4s; }
.anim-window-slit-4 { animation: windowLightPulse 2.4s ease-in-out infinite 0.6s; }

@keyframes windowLightPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.anim-ribbon-sway {
  transform-origin: 48px 24px;
  animation: ribbonTailSway 3s ease-in-out infinite;
}

@keyframes ribbonTailSway {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

.anim-medal-star {
  transform-origin: 48px 17.5px;
  animation: medalStarShimmer 2.4s ease-in-out infinite;
}

@keyframes medalStarShimmer {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.22) rotate(6deg); opacity: 1; }
}

/* --------------------------------------------------------------------------
   ICON 6: AI Automation (12 Radial Node Waves, Processor Core, Birds/Sparks)
   -------------------------------------------------------------------------- */
.anim-core-pulse {
  transform-origin: 32px 32px;
  animation: processorHeartbeat 2.4s ease-in-out infinite;
}

@keyframes processorHeartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.anim-radial-node-cardinal {
  transform-origin: center;
  animation: radialWaveNode 2.4s ease-in-out infinite 0.2s;
}

.anim-radial-node-diag {
  transform-origin: center;
  animation: radialWaveNode 2.4s ease-in-out infinite 0.6s;
}

@keyframes radialWaveNode {
  0%, 100% { transform: scale(0.9); opacity: 0.75; }
  50% { transform: scale(1.3); opacity: 1; }
}

.anim-ai-landscape {
  animation: landscapeArtBreathe 2.8s ease-in-out infinite;
}

@keyframes landscapeArtBreathe {
  0%, 100% { opacity: 0.85; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

.anim-ai-bird-1 {
  transform-origin: 34px 24px;
  animation: neuralBirdFly 2.4s ease-in-out infinite 0.0s;
}

.anim-ai-bird-2 {
  transform-origin: 28px 28px;
  animation: neuralBirdFly 2.4s ease-in-out infinite 0.4s;
}

@keyframes neuralBirdFly {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.5px) scale(1.15); }
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.service-features li svg {
  color: var(--emerald-mint);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   PORTFOLIO & CATEGORY TABS
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.filter-tab {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(3, 20, 10, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.filter-tab:hover, .filter-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(52, 211, 153, 0.18) 50%, rgba(6, 36, 18, 0.75) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 2px 2.5px rgba(255, 255, 255, 0.7),
    inset 0 0 18px rgba(52, 211, 153, 0.25),
    0 0 25px rgba(52, 211, 153, 0.35);
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-bright);
  box-shadow: var(--glass-specular), var(--glow-mint), 0 0 35px rgba(52, 211, 153, 0.3);
}

.portfolio-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(1, 10, 4, 0.95) 100%);
}

.portfolio-body {
  padding: 1.5rem 1.5rem 1.85rem 1.5rem;
}

.portfolio-results {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.res-stat {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--emerald-mint);
  font-size: 1.15rem;
}

/* ==========================================================================
   FUTURE HORIZONS & TECH VENTURES SECTION
   ========================================================================== */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.venture-card:hover {
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-mint), 0 0 30px rgba(52, 211, 153, 0.25);
}

.venture-tag {
  font-size: 0.75rem;
  color: var(--emerald-mint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   CONTACT, ADDRESS & INTERACTIVE MAP SECTION
   ========================================================================== */
.contact-map-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.map-card-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 380px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.map-card-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(110%);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-mint);
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 15px rgba(52, 211, 153, 0.2);
}

/* AI Auditor */
.ai-auditor-section {
  background: linear-gradient(180deg, rgba(3, 18, 9, 0.6) 0%, rgba(1, 10, 4, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-auditor-box {
  background: var(--bg-liquid-glass);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  box-shadow: var(--glass-specular), 0 0 40px rgba(16, 185, 129, 0.15);
}

.auditor-form-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-input, .form-select {
  flex: 1;
  min-width: min(100%, 220px);
  background: rgba(2, 14, 7, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  min-height: 46px;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--emerald-mint);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.35);
}

.form-textarea {
  width: 100%;
  background: rgba(2, 14, 7, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  min-height: 110px;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--emerald-mint);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.35);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 2rem 2.25rem 2rem;
  position: relative;
}

.pricing-card.featured {
  border: 1px solid var(--border-glass-bright);
  background: rgba(6, 36, 18, 0.75);
  box-shadow: var(--glass-specular), var(--glow-mint), 0 0 40px rgba(52, 211, 153, 0.3);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  font-weight: 500;
  color: var(--text-main);
  margin: 1rem 0 0.25rem 0;
}

/* Video Testimonials (GENEROUS BOTTOM PADDING - NO CLIPPED TEXT) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

.video-testimonial-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-testimonial-card:hover {
  border-color: var(--emerald-mint);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.4);
  transform: translateY(-4px);
}

.video-preview-box {
  position: relative;
  height: 195px;
  background: #021408;
  overflow: hidden;
  pointer-events: none;
}

.card-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #021408;
}

.video-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 10, 4, 0.12) 0%, rgba(1, 10, 4, 0.78) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-testimonial-card:hover .video-preview-overlay {
  opacity: 0.85;
}

.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.92);
  color: #011206;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding-left: 3px;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.video-testimonial-card:hover .play-btn-circle {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--emerald-mint);
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.95);
}

.video-card-content {
  padding: 1.6rem 1.6rem 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  background: #010803;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.75rem, 3vw, 3rem);
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--emerald-mint);
}

/* Footer Social Media Buttons */
.footer-social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(142, 219, 125, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease, fill 0.35s ease, color 0.35s ease;
}

.social-icon-btn:hover {
  background: rgba(142, 219, 125, 0.15);
  border-color: rgba(142, 219, 125, 0.6);
  color: #8edb7d;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(142, 219, 125, 0.35);
}

.social-icon-btn:hover svg {
  transform: scale(1.1);
  color: #8edb7d;
  fill: #8edb7d;
}

.social-icon-btn:active {
  transform: scale(0.92);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modals with Apple Silky-Smooth Dual Fade & Scale Physics */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 6, 3, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, backdrop-filter;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: rgba(3, 20, 10, 0.96);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.3), 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  will-change: transform, opacity;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.modal-backdrop.active .modal-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 10, 4, 0.97);
    backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    border-radius: 0;
  }

  .nav-links.mobile-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links .nav-link {
    font-size: 1.2rem;
    padding: 0.65rem 1.75rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .contact-map-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   CLIENT ONBOARDING WIZARD & MULTI-STEP FORM SYSTEM
   (Apple Liquid Frosted Glass Multi-Step Flow)
   ========================================================================== */
.wizard-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Step Indicator Bar with Connecting Progress Track */
.step-indicator-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}

.step-indicator-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  z-index: 0;
}

.step-progress-fill {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 3px;
  background: linear-gradient(90deg, #52c441, #8edb7d, #c6f1bc);
  border-radius: var(--radius-full);
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(142, 219, 125, 0.6);
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  min-width: 60px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(3, 20, 10, 0.9);
  border: 2px solid rgba(142, 219, 125, 0.25);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.step-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.step-node.active .step-circle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(82, 196, 65, 0.4));
  border-color: var(--emerald-mint);
  color: #ffffff;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 25px rgba(142, 219, 125, 0.5);
  transform: scale(1.1);
}

.step-node.active .step-title {
  color: #ffffff;
  font-weight: 500;
}

.step-node.completed .step-circle {
  background: rgba(82, 196, 65, 0.25);
  border-color: var(--emerald-glow);
  color: var(--emerald-glow);
}

/* Wizard Step Visibility Control (Crucial!) */
.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
  animation: wizardStepFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wizardStepFade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Layout Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(2, 16, 8, 0.75);
  border: 1px solid rgba(142, 219, 125, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--emerald-mint);
  background: rgba(4, 28, 14, 0.9);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(142, 219, 125, 0.35);
}

/* Liquid Glass Checkbox Cards for Scope Selection */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(3, 20, 10, 0.65);
  border: 1px solid rgba(142, 219, 125, 0.18);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.checkbox-card:hover {
  background: rgba(6, 36, 18, 0.8);
  border-color: var(--emerald-mint);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(142, 219, 125, 0.25);
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #52c441;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: var(--emerald-glow);
  background: rgba(142, 219, 125, 0.15);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 0 25px rgba(142, 219, 125, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 10, 4, 0.97);
    backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    border-radius: 0;
  }

  .nav-links.mobile-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links .nav-link {
    font-size: 1.2rem;
    padding: 0.65rem 1.75rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .contact-map-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 4rem 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .step-title {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .btn-liquid-glass,
  .btn-outline,
  button[type="submit"] {
    width: 100%;
  }

  .hero-metrics-pill {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   INVOICING PORTAL & PAYMENT GATEWAY LIQUID GLASS SYSTEM
   ========================================================================== */
.invoice-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(3, 22, 11, 0.7);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glass-specular), 0 25px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.15);
}

.invoice-header {
  padding: 2.25rem clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.invoice-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.invoice-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: #94a3b8;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.invoice-table td {
  padding: 1.15rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-body);
}

.invoice-total-section {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(2, 14, 7, 0.6);
  border-top: 1px solid var(--border-subtle);
}

.payment-gateway-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gateway-tab {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(3, 20, 10, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.gateway-tab:hover, .gateway-tab.active {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--emerald-mint);
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 20px rgba(52, 211, 153, 0.25);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  padding: 0.85rem 1rem;
  color: #94a3b8;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(2, 14, 7, 0.7);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-body);
}

.admin-table tr:hover td {
  background: rgba(52, 211, 153, 0.05);
}

/* ==========================================================================
   MOBILE HERO BALANCING & RESPONSIVE PERFECTION (@media max-width: 768px & 480px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Hero Section Layout */
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
    overflow: hidden;
  }

  .hero-clean-container {
    gap: 1.15rem;
    padding: 0 0.75rem;
  }

  /* 2. Top Badge Pill */
  .badge-mint-glass {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    max-width: 96%;
    text-align: center;
    line-height: 1.35;
  }

  /* 3. Hero Rotating Headline */
  .hero-title {
    min-height: 3.6em;
    margin: 0 auto;
    font-size: clamp(1.8rem, 6.8vw, 2.3rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
  }

  .hero-rotator-item {
    font-size: inherit;
    line-height: inherit;
  }

  .ae-word-mask {
    display: inline-block;
    vertical-align: baseline;
    padding: 0 0.03em;
    margin: 0 0.06em 0.04em 0;
  }

  .ae-word {
    display: inline-block;
    letter-spacing: normal;
    word-spacing: normal;
  }

  /* 4. 3D Thunderbolt Background Sits Behind Title/Badge, NOT Buttons */
  .hero-bg-3d-video-wrap {
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 145vw;
    height: 48vh;
    opacity: 0.65;
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 70%);
  }

  /* 5. Hero Description */
  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 95%;
    margin: 0 auto;
  }

  /* 6. Hero CTA Buttons (Centered Apple Glass Stack) */
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 0.8rem;
    margin: 0.5rem auto 0;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    justify-content: center;
  }

  /* 7. Hero Metrics Pill (Compact Elegant Card) */
  .hero-metrics-pill {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    width: 100%;
    max-width: 300px;
    margin-top: 1.25rem;
    border-radius: 18px;
    background: rgba(4, 22, 11, 0.6);
  }

  .hero-metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8rem;
    color: #94a3b8;
  }

  .hero-metric-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--emerald-mint);
  }

  .hero-metrics-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 5.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
    min-height: 3.8em;
  }

  .hero-bg-3d-video-wrap {
    top: 22%;
    height: 42vh;
  }
}


