/* ==========================================================================
   Design Tokens — Altius Dark/Tech Theme
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-body: #0a0a0b;
  --bg-card: #111113;
  --bg-surface: #1a1a1f;
  --bg-hover: #222228;
  --bg-elevated: #161619;

  /* Brand */
  --brand: #006839;
  --brand-light: #00a85a;
  --brand-glow: rgba(0, 168, 90, 0.4);

  /* Accents */
  --accent-teal: #00d4aa;
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #006839, #00d4aa);
  --gradient-accent: linear-gradient(135deg, #6366f1, #00d4aa);
  --gradient-hero: linear-gradient(135deg, #0a0a0b 0%, #111113 50%, #0d1f15 100%);
  --gradient-cta: linear-gradient(135deg, #0d1f15, #111113);

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a8;
  --text-tertiary: #6b6b73;
  --text-inverse: #0a0a0b;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(12px);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--brand-glow);
  --shadow-glow-strong: 0 0 40px var(--brand-glow);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-py: 80px;
  --section-py-lg: 120px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-index */
  --z-header: 997;
  --z-topbar: 996;
  --z-dropdown: 998;
  --z-overlay: 999;

  scroll-behavior: smooth;
}

/* ==========================================================================
   Light Theme — Variable Overrides & Component Fixes
   ========================================================================== */
[data-theme="light"] {
  /* Backgrounds */
  --bg-body: #f8f9fb;
  --bg-card: #ffffff;
  --bg-surface: #f0f2f5;
  --bg-hover: #e8eaef;
  --bg-elevated: #f2f4f7;

  /* Brand glow — slightly adjusted for light bg */
  --brand-glow: rgba(0, 104, 57, 0.2);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #f8f9fb 0%, #ffffff 50%, #edf7f1 100%);
  --gradient-cta: linear-gradient(135deg, #edf7f1, #ffffff);

  /* Text */
  --text-primary: #1a1d2e;
  --text-secondary: #52556a;
  --text-tertiary: #8c8fa0;
  --text-inverse: #ffffff;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(0, 0, 0, 0.07);
  --glass-border-hover: rgba(0, 0, 0, 0.13);
  --glass-blur: blur(16px);

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.16);

  /* Shadows — lighter, softer */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.09);
  --shadow-glow: 0 0 20px rgba(0, 104, 57, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(0, 104, 57, 0.25);
}

/* --- Light-mode component overrides (hardcoded colors) --- */

/* Header sticked background */
[data-theme="light"] .header.sticked {
  background: rgba(248, 249, 251, 0.92);
}

/* Hero decorative radials */
[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 104, 57, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

/* D3 hero network — slightly dimmed on light */
[data-theme="light"] .hero-network {
  opacity: 0.45;
}

/* Client logos — no brightness boost needed */
[data-theme="light"] .clients .swiper-slide img {
  filter: grayscale(100%);
}

/* Stats counter decorative bg */
[data-theme="light"] .stats-counter::before {
  background: linear-gradient(135deg, rgba(0, 104, 57, 0.03), transparent);
}

/* CTA decorative bg */
[data-theme="light"] .call-to-action::before {
  background: radial-gradient(ellipse at center, rgba(0, 104, 57, 0.06), transparent 70%);
}

/* FAQ accordion chevron — no invert in light mode */
[data-theme="light"] .faq .accordion-button::after {
  filter: none;
}

/* Portfolio overlay */
[data-theme="light"] .portfolio .portfolio-item .portfolio-info {
  background: rgba(255, 255, 255, 0.9);
}

/* Blog breadcrumbs overlay */
[data-theme="light"] .blog .breadcrumbs::before {
  background: linear-gradient(180deg, rgba(248, 249, 251, 0.65), rgba(248, 249, 251, 0.9));
}

/* Selection */
[data-theme="light"] ::selection {
  background: rgba(0, 104, 57, 0.15);
  color: var(--text-primary);
}

/* Mobile nav overlay */
[data-theme="light"] body.mobile-nav-active::before {
  background: rgba(0, 0, 0, 0.3);
}

/* Preloader */
[data-theme="light"] #preloader {
  background: var(--bg-body);
}

/* Logo — make white SVG visible on light bg */
[data-theme="light"] .header .header-logo {
  filter: brightness(0);
}
