/* =========================================================================
   REBEL ELECTRIC — Design System v6.0
   Flagship EV Brand Experience
   Inspiration: Porsche, Lucid, Rivian, BMW Motorrad, Tesla, Apple, Ather
   Palette: Deep Emerald + Electric Lime + Carbon + Gunmetal + Aluminium
   ========================================================================= */

/* =========================================================================
   1. THEME TOKENS
   ========================================================================= */
:root,
[data-theme="dark"] {
  /* Surfaces — deep matte black with carbon undertone */
  --bg-void:      #040605;
  --bg-base:      #080C0A;
  --bg-surface:   #0C1310;
  --bg-elevated:  #111A16;
  --bg-glass:     rgba(14, 22, 18, 0.65);
  --bg-glass-2:   rgba(20, 32, 26, 0.45);
  --bg-radial:    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(0,200,117,0.10), transparent 55%);

  /* Brand emerald */
  --accent:       #00C875;
  --accent-bright:#00E88F;
  --accent-deep:  #006B40;
  --accent-glow:  rgba(0,200,117,0.35);
  --accent-soft:  rgba(0,200,117,0.06);
  --accent-sheen: rgba(0,232,143,0.12);
  --lime:         #BFFF00;
  --forest:       #1B5E3F;

  /* Text */
  --text-primary:   #EAF5EF;
  --text-secondary: #8BA59C;
  --text-muted:     #506A62;
  --text-dim:       #2E3C37;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.04);
  --border-light:  rgba(0,200,117,0.10);
  --border-accent: rgba(0,200,117,0.22);
  --border-strong: rgba(0,200,117,0.40);

  /* Carbon weave texture overlay */
  --carbon:  repeating-linear-gradient(45deg, transparent 0, transparent 3px, rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 6px);
  --weave:   repeating-linear-gradient(135deg, transparent 0, transparent 3px, rgba(0,200,117,0.012) 3px, rgba(0,200,117,0.012) 6px);

  /* Shadows — cinematic depth */
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.35);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.55);
  --shadow-xl:   0 32px 100px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 40px rgba(0,200,117,0.12);
  --shadow-glow-strong: 0 0 80px rgba(0,200,117,0.25);

  /* Gradients */
  --grad-accent:  linear-gradient(135deg, #00C875 0%, #00E88F 100%);
  --grad-text:    linear-gradient(135deg, #00E88F 0%, #00C875 50%, #BFFF00 100%);
  --grad-card:    linear-gradient(180deg, rgba(17,26,22,0.6) 0%, rgba(12,19,16,0.2) 100%);
  --grad-dark:    linear-gradient(180deg, #0C1310 0%, #040605 100%);
  --grad-surface: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg-void:      #F7FAF8;
  --bg-base:      #FFFFFF;
  --bg-surface:   #F0F5F2;
  --bg-elevated:  #E6EFEA;
  --bg-glass:     rgba(255,255,255,0.75);
  --bg-glass-2:   rgba(240,245,242,0.6);
  --bg-radial:    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(0,168,95,0.06), transparent 55%);

  --accent:       #00A85F;
  --accent-bright:#00C875;
  --accent-deep:  #007A47;
  --accent-glow:  rgba(0,168,95,0.22);
  --accent-soft:  rgba(0,168,95,0.04);
  --accent-sheen: rgba(0,200,117,0.08);
  --lime:         #94BF00;
  --forest:       #1B5E3F;

  --text-primary:   #0A1A12;
  --text-secondary: #3D5A4D;
  --text-muted:     #708880;
  --text-dim:       #A0B0A8;

  --border-subtle: rgba(0,0,0,0.05);
  --border-light:  rgba(0,0,0,0.08);
  --border-accent: rgba(0,168,95,0.20);
  --border-strong: rgba(0,168,95,0.35);

  --carbon:  none;
  --weave:   repeating-linear-gradient(135deg, transparent 0, transparent 6px, rgba(0,168,95,0.015) 6px, rgba(0,168,95,0.015) 12px);

  --shadow-sm:   0 2px 10px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.10);
  --shadow-xl:   0 32px 100px rgba(0,0,0,0.14);
  --shadow-glow: 0 0 40px rgba(0,168,95,0.10);
  --shadow-glow-strong: 0 0 60px rgba(0,168,95,0.18);

  --grad-accent:  linear-gradient(135deg, #00A85F 0%, #00C875 100%);
  --grad-text:    linear-gradient(135deg, #00A85F 0%, #007A47 100%);
  --grad-card:    linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240,245,242,0.5) 100%);
  --grad-dark:    linear-gradient(180deg, #FFFFFF 0%, #F0F5F2 100%);
  --grad-surface: linear-gradient(135deg, rgba(0,0,0,0.015) 0%, transparent 100%);

  color-scheme: light;
}

[data-theme="night"] {
  --bg-void:      #000000;
  --bg-base:      #020604;
  --bg-surface:   #04100A;
  --bg-elevated:  #06180F;
  --bg-glass:     rgba(4,16,10,0.7);
  --bg-glass-2:   rgba(6,24,15,0.4);
  --bg-radial:    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(0,255,156,0.12), transparent 55%);

  --accent:       #00FF9C;
  --accent-bright:#00FFAA;
  --accent-deep:  #008055;
  --accent-glow:  rgba(0,255,156,0.40);
  --accent-soft:  rgba(0,255,156,0.04);
  --accent-sheen: rgba(0,255,170,0.15);
  --lime:         #CCFF00;
  --forest:       #0A3D2A;

  --text-primary:   #D0FFE2;
  --text-secondary: #5A9A80;
  --text-muted:     #306050;
  --text-dim:       #1A3028;

  --border-subtle: rgba(0,255,156,0.05);
  --border-light:  rgba(0,255,156,0.12);
  --border-accent: rgba(0,255,156,0.25);
  --border-strong: rgba(0,255,156,0.45);

  --carbon:  repeating-linear-gradient(45deg, transparent 0, transparent 3px, rgba(0,255,156,0.015) 3px, rgba(0,255,156,0.015) 6px);
  --weave:   repeating-linear-gradient(135deg, transparent 0, transparent 3px, rgba(0,255,156,0.02) 3px, rgba(0,255,156,0.02) 6px);

  --shadow-sm:   0 2px 10px rgba(0,0,0,0.5);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.6);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.75);
  --shadow-xl:   0 32px 100px rgba(0,0,0,0.85);
  --shadow-glow: 0 0 40px rgba(0,255,156,0.15);
  --shadow-glow-strong: 0 0 100px rgba(0,255,156,0.35);

  --grad-accent:  linear-gradient(135deg, #00FF9C 0%, #CCFF00 100%);
  --grad-text:    linear-gradient(135deg, #00FFAA 0%, #00FF9C 50%, #CCFF00 100%);
  --grad-card:    linear-gradient(180deg, rgba(6,24,15,0.7) 0%, rgba(2,6,4,0.3) 100%);
  --grad-dark:    linear-gradient(180deg, #04100A 0%, #000000 100%);
  --grad-surface: linear-gradient(135deg, rgba(0,255,156,0.02) 0%, transparent 100%);

  color-scheme: dark;
}

/* =========================================================================
   2. TYPOGRAPHY & SCALE
   ========================================================================= */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --nav-height:   72px;
  --max-w:        1280px;
  --max-w-wide:   1440px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 100px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.2s; --dur-normal: 0.4s; --dur-slow: 0.7s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.6s var(--ease-smooth), color 0.6s var(--ease-smooth);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: var(--bg-void); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* =========================================================================
   3. LAYOUT
   ========================================================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--bg-surface); }
.section-darker { background: var(--bg-base); }
.section-overflow { overflow: hidden; }

.section-header { text-align: center; margin-bottom: 64px; position: relative; z-index: 1; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 18px; border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  margin-bottom: 24px;
}
.section-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s var(--ease-in-out) infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.section-header h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; margin: 16px auto 0; }

/* =========================================================================
   4. GLASS SURFACES
   ========================================================================= */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.glass-tight {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.glass-sheen {
  position: relative; overflow: hidden;
}
.glass-sheen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.03) 100%);
  border-radius: inherit;
}

/* =========================================================================
   5. BUTTONS — Physical, Glass, Magnetic
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  cursor: pointer; position: relative; overflow: hidden;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* Primary — green gradient, glow */
.btn-primary {
  background: var(--grad-accent);
  color: #040605;
  box-shadow: 0 4px 20px var(--accent-glow);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--accent-glow); }
/* Light-bar shine sweep */
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.25) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Secondary — glass outline */
.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

/* Ghost — minimal */
.btn-ghost { color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* Outline accent */
.btn-outline { color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--bg-void); }

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }

/* Ripple */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0); animation: rippleExpand 0.65s var(--ease-out);
  pointer-events: none;
}
@keyframes rippleExpand { to { transform: scale(4); opacity: 0; } }

/* =========================================================================
   6. PAGE LOADER
   ========================================================================= */
.page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bg-radial);
}
.loader-logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: 0.35em;
  color: var(--text-primary); position: relative; z-index: 1;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.loader-bar {
  width: 220px; height: 2px;
  background: var(--bg-elevated); border-radius: 100px;
  overflow: hidden; position: relative; z-index: 1;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: var(--grad-accent);
  border-radius: 100px;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: loaderCharge 1.8s var(--ease-in-out) forwards;
}
@keyframes loaderCharge { 0% { width: 0; } 100% { width: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   7. SCROLL PROGRESS
   ========================================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 9998; background: transparent;
}
.scroll-progress-bar {
  height: 100%; width: 0;
  background: var(--grad-accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.08s linear;
}

/* =========================================================================
   8. NAVIGATION
   ========================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
  z-index: 1000; display: flex; align-items: center;
  transition: background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo img { height: 48px; width: auto; filter: none; transition: filter 0.4s; }
[data-theme="light"] .nav-logo img { filter: none; }
img.footer-logo { filter: none; height: 60px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a:not(.nav-cta):not(.theme-switcher *) {
  padding: 8px 14px; font-size: 0.86rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-pill);
  transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}
.nav-links > a:not(.nav-cta):hover { color: var(--accent); background: var(--accent-soft); }
.nav-links > a.active { color: var(--accent); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; margin-left: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent); border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.3s var(--ease-smooth);
}
.nav-cta:hover { background: var(--accent); color: var(--bg-void); box-shadow: 0 0 24px var(--accent-glow); }

/* Theme switcher */
.theme-switcher {
  display: flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
}
.theme-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: none; background: transparent;
  transition: all 0.4s var(--ease-spring);
}
.theme-btn:hover { color: var(--accent); }
.theme-btn.active {
  background: var(--bg-glass);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.theme-btn svg { width: 15px; height: 15px; }

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s var(--ease-out); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; background: var(--bg-void); opacity: 0; visibility: hidden; z-index: 999; transition: opacity 0.4s, visibility 0.4s; }
.nav-overlay.open { opacity: 0.9; visibility: visible; }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 82%; max-width: 380px; height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 48px 32px; gap: 8px;
    background: var(--bg-surface); border-left: 1px solid var(--border-subtle);
    transition: right 0.5s var(--ease-out);
  }
  .nav-links.open { right: 0; }
  .nav-links > a:not(.nav-cta) { font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
  .nav-toggle { display: flex; }
  .theme-switcher { margin: 12px 0 0 0; }
}

/* =========================================================================
   9. HERO — Cinematic
   ========================================================================= */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: var(--bg-void);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-radial); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: var(--carbon); opacity: 0.4; }
/* Animated ambient glow */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, var(--accent-soft), transparent 50%),
    radial-gradient(ellipse 50% 35% at 80% 20%, var(--accent-sheen), transparent 50%);
  animation: heroAmbient 10s var(--ease-in-out) infinite alternate;
}
@keyframes heroAmbient {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

.hero-carousel { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.8s var(--ease-in-out), transform 6s linear;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,6,5,0.5) 0%, rgba(4,6,5,0.7) 50%, rgba(4,6,5,0.92) 100%);
}
[data-theme="light"] .hero-slide::after {
  background: linear-gradient(180deg, rgba(247,250,248,0.4) 0%, rgba(247,250,248,0.6) 50%, rgba(247,250,248,0.88) 100%);
}

.hero-content { position: relative; z-index: 2; padding-top: var(--nav-height); max-width: 860px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -0.035em; margin: 20px 0; line-height: 0.98; }
.hero p { font-size: 1.15rem; max-width: 520px; color: var(--text-secondary); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero indicator dots */
.hero-dots {
  position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 4;
}
.hero-dot {
  width: 30px; height: 3px; border-radius: 100px;
  background: rgba(255,255,255,0.2); cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.hero-dot.active { background: var(--accent); width: 50px; box-shadow: 0 0 10px var(--accent-glow); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; right: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted); z-index: 4;
  writing-mode: vertical-rl; text-orientation: mixed;
}
.scroll-hint span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-hint svg { animation: scrollBounce 2s var(--ease-in-out) infinite; transform: rotate(90deg); }
@keyframes scrollBounce { 0%,100% { transform: rotate(90deg) translateY(0); opacity: 0.5; } 50% { transform: rotate(90deg) translateY(8px); opacity: 1; } }

/* =========================================================================
   10. STATS
   ========================================================================= */
.stats-row { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: -32px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60px; background: var(--border-subtle);
}
.stat-value { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 8px; }

/* =========================================================================
   11. PRODUCT CARDS
   ========================================================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.product-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, var(--accent-sheen) 100%);
  opacity: 0; transition: opacity 0.5s;
}
.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.product-card:hover::before { opacity: 1; }
.product-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-elevated); }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.product-card:hover .product-card-img { transform: scale(1.1); }
.product-card-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); padding: 5px 12px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
}
.product-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 6px; }
.product-card-tagline { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 24px; flex: 1; }
.product-card-specs { display: flex; gap: 24px; }
.product-card-spec { display: flex; flex-direction: column; }
.product-card-spec-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.product-card-spec-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* =========================================================================
   12. FEATURE GRID
   ========================================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}
.feature-card:hover { border-color: var(--border-accent); transform: translateY(-6px); box-shadow: var(--shadow-md), var(--shadow-glow); }
.feature-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.feature-card-icon svg { width: 26px; height: 26px; }
.feature-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* =========================================================================
   13. ICON SYSTEM
   ========================================================================= */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }
.icon svg, svg[class] { stroke: currentColor; }
.icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.icon-badge-lg { width: 64px; height: 64px; border-radius: var(--radius-lg); }

/* =========================================================================
   14. SPLIT LAYOUT
   ========================================================================= */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* =========================================================================
   15. SPEC TABLE
   ========================================================================= */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { text-align: left; padding: 16px 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); border-bottom: 2px solid var(--border-light); }
.spec-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); }
.spec-table tr:hover td { background: var(--accent-soft); }

/* =========================================================================
   16. PRODUCT DETAIL PAGE
   ========================================================================= */
.product-hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.product-hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-radial); }
.product-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.spec-badge {
  background: var(--grad-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 28px; text-align: center;
  transition: all 0.5s var(--ease-out); position: relative; overflow: hidden;
}
.spec-badge:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.spec-badge-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); }
.spec-badge-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* Gallery */
.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-md); cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.1); }

/* =========================================================================
   17. FORMS
   ========================================================================= */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.95rem; transition: all 0.3s var(--ease-smooth);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* =========================================================================
   18. CTA SECTION
   ========================================================================= */
.cta-section {
  padding: 120px 0; text-align: center;
  background: var(--bg-base); position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* =========================================================================
   19. FOOTER
   ========================================================================= */
.footer { background: var(--bg-base); border-top: 1px solid var(--border-subtle); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { font-size: 1.4rem; margin: 12px 0 8px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.9rem; padding: 5px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all 0.3s var(--ease-smooth);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.footer-social svg { width: 16px; height: 16px; }

/* =========================================================================
   20. FLOATING BUTTONS
   ========================================================================= */
.admin-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.3s var(--ease-smooth);
}
.admin-float:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-glow); }

.wa-float,
.wa-float-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.wa-float:hover, .wa-float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
.wa-float svg, .wa-float-btn .wa-icon { width: 30px; height: 30px; fill: white; color: white; }
.wa-float::before,
.wa-float-btn .wa-pulse-ring {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2s var(--ease-in-out) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }
.wa-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 0.82rem; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.wa-float:hover .wa-tooltip,
.wa-float-btn:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(-4px); }

/* =========================================================================
   21. SCROLL REVEAL
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* =========================================================================
   22. BACKGROUND DECORATIONS
   ========================================================================= */
.bg-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(100px); opacity: 0.3; z-index: 0; }
.bg-glow-1 { width: 500px; height: 500px; background: var(--accent-soft); top: 10%; left: -10%; }
.bg-glow-2 { width: 400px; height: 400px; background: var(--accent-sheen); bottom: 10%; right: -5%; }

.divider-glow { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.25; }

/* Carbon-fibre section background */
.section-carbon { background: var(--bg-base); position: relative; }
.section-carbon::before { content: ''; position: absolute; inset: 0; background: var(--carbon); opacity: 0.3; pointer-events: none; }

/* =========================================================================
   23. BATTERY ANIMATION
   ========================================================================= */
.battery-anim {
  width: 100%; max-width: 220px; height: 90px;
  border: 3px solid var(--accent); border-radius: 10px;
  position: relative; overflow: hidden; margin: 0 auto;
}
.battery-anim::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 6px; height: 32px; background: var(--accent); border-radius: 0 4px 4px 0; }
.battery-fill { height: 100%; width: 0; background: var(--grad-accent); border-radius: 4px; box-shadow: 0 0 20px var(--accent-glow); animation: batteryCharge 3s var(--ease-in-out) infinite; }
@keyframes batteryCharge { 0% { width: 0; } 80% { width: 100%; } 100% { width: 100%; opacity: 0.8; } }

/* =========================================================================
   24. THEME TRANSITION OVERLAY
   ========================================================================= */
.theme-transition { position: fixed; inset: 0; z-index: 10001; pointer-events: none; opacity: 0; background: var(--accent); }
.theme-transition.active { animation: themeFlash 0.7s var(--ease-out); }
@keyframes themeFlash { 0% { opacity: 0; } 30% { opacity: 0.2; } 100% { opacity: 0; } }

/* =========================================================================
   25. LIGHTBOX
   ========================================================================= */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-md); }
.lightbox-close { position: absolute; top: 24px; right: 24px; color: white; font-size: 2rem; cursor: pointer; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 2rem; cursor: pointer; padding: 16px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* =========================================================================
   26. UTILITY
   ========================================================================= */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hidden { display: none; }
.no-scroll { overflow: hidden; }

/* =========================================================================
   27. CANVAS PARTICLE LAYER
   ========================================================================= */
[data-particles] { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* =========================================================================
   28. COMPARISON TABLE
   ========================================================================= */
.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius-lg); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border-subtle); }
.compare-table th { background: var(--bg-elevated); font-family: var(--font-display); font-size: 0.9rem; }
.compare-table td:first-child { text-align: left; font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.compare-table tr:hover td { background: var(--accent-soft); }

/* =========================================================================
   29. DEALER CARD
   ========================================================================= */
.dealer-card {
  background: var(--grad-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.5s var(--ease-out);
}
.dealer-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dealer-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.dealer-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dealer-info-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.dealer-info-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* =========================================================================
   30. WARRANTY BADGE
   ========================================================================= */
.warranty-box {
  background: var(--bg-glass); backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md); padding: 20px 24px;
  display: inline-flex; flex-direction: column; gap: 6px;
}
.warranty-box-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.warranty-box-value { font-family: var(--font-display); font-size: 1rem; color: var(--accent); font-weight: 600; }

/* =========================================================================
   31. RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .split-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .stats-row { gap: 24px; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-value { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .product-card-specs { flex-wrap: wrap; gap: 16px; }
  .hero { min-height: 90vh; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-dots { bottom: 24px; }
}

/* ========================================
   CINEMATIC VISUAL SYSTEM v7.0
   Premium EV Photography & Atmosphere
   ======================================== */

/* --- Devanagari / Hindi Typography --- */
.hindi-text,
.devanagari {
  font-family: 'Noto Sans Devanagari', 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hindi-accent {
  font-family: 'Noto Sans Devanagari', sans-serif;
  color: var(--accent);
  opacity: 0.9;
  font-size: 0.85em;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* --- Cinematic Background System --- */
.cinematic-bg {
  position: relative;
  overflow: hidden;
}
.cinematic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.cinematic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cinematic-bg .container,
.cinematic-bg > *:not(::before):not(::after) {
  position: relative;
  z-index: 2;
}

/* Dark gradient overlay for photographic backgrounds */
.bg-overlay-dark::after {
  background: linear-gradient(180deg,
    rgba(8,12,10,0.92) 0%,
    rgba(8,12,10,0.75) 40%,
    rgba(8,12,10,0.85) 100%
  );
}
.bg-overlay-medium::after {
  background: linear-gradient(180deg,
    rgba(8,12,10,0.80) 0%,
    rgba(8,12,10,0.60) 50%,
    rgba(8,12,10,0.80) 100%
  );
}
.bg-overlay-green::after {
  background: linear-gradient(135deg,
    rgba(8,12,10,0.90) 0%,
    rgba(0,60,35,0.60) 50%,
    rgba(8,12,10,0.90) 100%
  );
}
.bg-overlay-left::after {
  background: linear-gradient(90deg,
    rgba(8,12,10,0.95) 0%,
    rgba(8,12,10,0.70) 50%,
    rgba(8,12,10,0.30) 100%
  );
}

/* Light theme overlay adjustments */
[data-theme="light"] .bg-overlay-dark::after {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.92) 0%,
    rgba(245,247,246,0.78) 40%,
    rgba(255,255,255,0.85) 100%
  );
}
[data-theme="light"] .bg-overlay-medium::after {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.82) 0%,
    rgba(245,247,246,0.65) 50%,
    rgba(255,255,255,0.82) 100%
  );
}
[data-theme="light"] .bg-overlay-green::after {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.90) 0%,
    rgba(220,240,230,0.60) 50%,
    rgba(255,255,255,0.90) 100%
  );
}
[data-theme="light"] .bg-overlay-left::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.95) 0%,
    rgba(245,247,246,0.70) 50%,
    rgba(255,255,255,0.30) 100%
  );
}

/* --- Parallax Background Section --- */
.parallax-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .parallax-section { background-attachment: scroll; }
}

/* --- Hero Background Image --- */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1.05) translateX(0) translateY(0); }
  50% { transform: scale(1.12) translateX(-1%) translateY(-1%); }
  100% { transform: scale(1.08) translateX(1%) translateY(1%); }
}

/* --- Product Image Frame --- */
.product-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,200,117,0.15);
}
.product-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.product-frame:hover img {
  transform: scale(1.05);
}
.product-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,200,117,0.08));
  pointer-events: none;
}

/* --- Cinematic Image with Glow --- */
.cinematic-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.cinematic-image::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
  border-radius: 18px;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.4s;
}
.cinematic-image:hover::before {
  opacity: 0.6;
}

/* --- Image Reveal Animation --- */
[data-image-reveal] {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 1s ease;
}
[data-image-reveal].revealed {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
}

/* --- Slow Zoom for Product Images --- */
.slow-zoom {
  overflow: hidden;
}
.slow-zoom img {
  transition: transform 8s ease-out;
}
.slow-zoom:hover img {
  transform: scale(1.1);
}

/* --- Spec Badge Icon Replacement (SVG instead of emoji) --- */
.spec-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spec-badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* --- Feature Checkmark (SVG instead of emoji) --- */
.feature-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feature-check svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Lazy Load Image Styles --- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Blur-up placeholder */
.blur-placeholder {
  filter: blur(20px);
  transition: filter 0.4s ease;
}
.blur-placeholder.loaded {
  filter: blur(0);
}

/* --- Cinematic Divider --- */
.cinematic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin: 0 auto;
  max-width: 200px;
}

/* --- Ambient Glow Background for Sections --- */
.ambient-glow {
  position: relative;
  overflow: hidden;
}
.ambient-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,117,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- Section Image Background Variants --- */
.section-bg-highway {
  background-image: url('../images/cinematic/city-lights.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section-bg-forest {
  background-image: url('../images/cinematic/landscape-green.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section-bg-mountain {
  background-image: url('../images/cinematic/mountain-road.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section-bg-tech {
  background-image: url('../images/cinematic/tech-circuit.webp');
  background-size: cover;
  background-position: center;
}
.section-bg-night {
  background-image: url('../images/cinematic/atmosphere-149.webp');
  background-size: cover;
  background-position: center;
}
.section-bg-sunset {
  background-image: url('../images/cinematic/picsum-1037.webp');
  background-size: cover;
  background-position: center;
}
.section-bg-urban {
  background-image: url('../images/cinematic/urban-88.webp');
  background-size: cover;
  background-position: center;
}
.section-bg-industrial {
  background-image: url('../images/cinematic/industrial-134.webp');
  background-size: cover;
  background-position: center;
}

/* --- Enhanced Hero with Background Image --- */
.hero-with-bg .hero-content {
  position: relative;
  z-index: 3;
}
.hero-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8,12,10,0.70) 0%,
    rgba(8,12,10,0.50) 30%,
    rgba(8,12,10,0.80) 70%,
    rgba(8,12,10,0.95) 100%
  );
  z-index: 1;
}
[data-theme="light"] .hero-with-bg::before {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.70) 0%,
    rgba(255,255,255,0.50) 30%,
    rgba(255,255,255,0.80) 70%,
    rgba(255,255,255,0.95) 100%
  );
}

/* --- Gallery Masonry Layout --- */
.gallery-masonry {
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 768px) {
  .gallery-masonry { column-count: 2; }
}
@media (max-width: 480px) {
  .gallery-masonry { column-count: 1; }
}
.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-masonry-item:hover img {
  transform: scale(1.08);
}
.gallery-masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,200,117,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-masonry-item:hover::after {
  opacity: 1;
}

/* --- Floating Badge over Images --- */
.image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,200,117,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,200,117,0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
}

/* --- Premium Stats with Background --- */
.stats-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 48px 32px;
}
.stats-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.stats-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,12,10,0.92), rgba(0,60,35,0.75));
  z-index: 1;
}
.stats-banner > * {
  position: relative;
  z-index: 2;
}

/* --- Enhanced Section Transitions --- */
.section-fade-in {
  position: relative;
}
.section-fade-in::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--bg-base), transparent);
  pointer-events: none;
  z-index: 1;
}

/* --- Responsive Cinematic Adjustments --- */
@media (max-width: 768px) {
  .hero-bg-image {
    animation: kenBurns 15s ease-in-out infinite alternate;
  }
  .parallax-section {
    background-attachment: scroll;
  }
  .gallery-masonry { column-count: 2; }
  .product-frame { border-radius: 14px; }
}
@media (max-width: 480px) {
  .gallery-masonry { column-count: 1; }
  .cinematic-divider { max-width: 120px; }
}
