/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary: #023047;
  --accent: #2090fe;
  --light-gray: #e5e5e5;
  --light-accent: #b0dfff;
  
  /* Utilities */
  --text-dark: #09090b;
  --text-muted: #71717a;
  --bg-color: #f4f4f5;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f4f5;
  
  /* Radii */
  --radius-card: 40px;
  --radius-pill: 99px;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

/* ══════════════════════════════════════
   DARK MODE THEME
══════════════════════════════════════ */
[data-theme="dark"] {
  --text-dark: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-color: #0f172a;
  --white: #1e293b;
  --surface: #1e293b;
  --surface-alt: #0f172a;
  --primary: #38bdf8;
  --light-accent: #0ea5e9;
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4);
}

[data-theme="dark"] html,
[data-theme="dark"] body { background-color: #0a1628 !important; }

[data-theme="dark"] .card { background: rgba(30, 41, 59, 0.95); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .navbar.scrolled { background: rgba(15, 23, 42, 0.95); }
[data-theme="dark"] section:not(.bg-dark-gradient) { background: rgba(10, 22, 40, 0.88) !important; }
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4 { color: #f1f5f9; }
[data-theme="dark"] p { color: #94a3b8; }
[data-theme="dark"] .badge.primary { background: rgba(56,189,248,0.1); color: #38bdf8; }
[data-theme="dark"] .dropdown-menu { background: rgba(15, 23, 42, 0.98); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .dropdown-menu a { color: #e2e8f0 !important; }
[data-theme="dark"] .dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: #38bdf8 !important; }
[data-theme="dark"] .svg-icon-wrap { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.2); }
[data-theme="dark"] .stat-num { color: #f1f5f9; }

/* ══════════════════════════════════════
   1. LOADING SCREEN
══════════════════════════════════════ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #011b29, #023047);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  width: 200px;
  height: auto;
  opacity: 0;
  animation: loaderFadeIn 0.5s ease 0.2s forwards;
}

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

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00e5ff);
  border-radius: 2px;
  animation: loaderProgress 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ══════════════════════════════════════
   2. BACK TO TOP BUTTON
══════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 8000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(2, 48, 71, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(32, 144, 254, 0.4);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════
   3. STICKY CTA BAR
══════════════════════════════════════ */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  background: linear-gradient(90deg, #011b29, #023047);
  color: white;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255,255,255,0.08);
}

#sticky-cta.visible { transform: translateY(0); }

#sticky-cta span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

#sticky-cta-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  transition: color 0.2s;
  line-height: 1;
}

#sticky-cta-close:hover { color: white; }

/* ══════════════════════════════════════
   4. DARK MODE TOGGLE BUTTON
══════════════════════════════════════ */
#theme-toggle {
  position: fixed;
  bottom: 92px;
  right: 32px;
  z-index: 8000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  transform: translateY(-3px) rotate(20deg);
  box-shadow: var(--shadow-lg);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

[data-theme="dark"] #theme-toggle {
  background: #1e293b;
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.1);
}

/* ══════════════════════════════════════
   5. COOKIE CONSENT BANNER
══════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.visible { transform: translateY(0); }

[data-theme="dark"] #cookie-banner {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}

.cookie-inner { display: flex; flex-direction: column; gap: 16px; }

.cookie-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text-dark);
}

.cookie-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions { display: flex; gap: 12px; align-items: center; }

@media (max-width: 768px) {
  #sticky-cta span { display: none; }
  #sticky-cta { justify-content: space-between; padding: 12px 20px; }
  #cookie-banner { left: 12px; right: 12px; max-width: 100%; }
  #back-to-top, #theme-toggle { bottom: 24px; right: 20px; }
  #theme-toggle { bottom: 82px; }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--white);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Ensure all content sits above the background canvas (z-index 0) */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem); /* Resizes down from ~96px */
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white), var(--light-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Resizes down from ~72px */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title.light {
  color: var(--white);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.bg-dark-gradient {
  background: linear-gradient(135deg, #011b29, var(--primary));
  color: var(--white);
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.15);
}

.card {
  background: var(--bg-color);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), var(--shadow-lg);
  background-color: #022333;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), var(--shadow-md);
}

.btn-accent:hover {
  background-color: #177ce0;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-pill);
  pointer-events: auto;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-links a {
  color: var(--primary) !important;
}

/* ══════════════════════════════════════
   ANIMATED SVG LOGO
══════════════════════════════════════ */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 40px;
  width: auto;
  overflow: visible;
}

/* ── Path draw animation ── */
.logo-draw {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* Initial state: fully hidden (dashoffset = dasharray value in HTML) */
}

/* Trigger: add class .logo-animated to the SVG (via JS after delay) */
.site-logo.logo-animated .logo-draw {
  stroke-dashoffset: 0 !important;
}

/* Delay chain matching inline style animation-delay values */
.site-logo.logo-animated .logo-draw[style*="animation-delay:.35s"] { transition-delay: 0.35s; }
.site-logo.logo-animated .logo-draw[style*="animation-delay:.7s"]  { transition-delay: 0.70s; }

/* ── Pop-in circles ── */
.logo-pop {
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.5s;
}

.site-logo.logo-animated .logo-pop   { transform: scale(1); }
.site-logo.logo-animated .logo-pop[style*="animation-delay:.45s"] { transition-delay: 0.45s; }
.site-logo.logo-animated .logo-pop[style*="animation-delay:.50s"] { transition-delay: 0.50s; }
.site-logo.logo-animated .logo-pop[style*="animation-delay:.55s"] { transition-delay: 0.55s; }
.site-logo.logo-animated .logo-pop[style*="animation-delay:.60s"] { transition-delay: 0.60s; }

/* ── Wordmark fade + slide in ── */
.logo-wordmark {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s cubic-bezier(0.16,1,0.3,1) 0.6s;
}

.site-logo.logo-animated .logo-wordmark {
  opacity: 1;
  transform: translateX(0);
}

/* ── Wordmark text fill ── */
.logo-text-svg {
  fill: white;
  transition: fill 0.3s ease;
}

/* When navbar is scrolled: switch text to primary dark */
.navbar.scrolled .logo-text-svg { fill: var(--primary); }

/* ── Icon hover spin ── */
.logo-link:hover .logo-icon {
  animation: logo-spin 0.6s ease;
}

@keyframes logo-spin {
  0%   { transform: rotate(0deg) scale(1); transform-origin: 26px 20px; }
  40%  { transform: rotate(20deg) scale(1.05); transform-origin: 26px 20px; }
  100% { transform: rotate(0deg) scale(1); transform-origin: 26px 20px; }
}

/* ── Dark mode ── */
[data-theme="dark"] .logo-text-svg { fill: #f1f5f9; }
[data-theme="dark"] .navbar.scrolled .logo-text-svg { fill: #38bdf8; }

/* ── Scrolled state accent preserves icon strokes ── */
.navbar.scrolled .logo-draw    { stroke: var(--primary) !important; }
.navbar.scrolled .logo-pop     { fill: var(--primary) !important; }
.navbar.scrolled .logo-pop[fill="none"] { fill: none !important; stroke: var(--primary) !important; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--light-gray);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

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

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  min-width: 260px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  list-style: none;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.navbar.scrolled .dropdown-menu {
  background: var(--white);
}

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

.dropdown-menu a {
  padding: 10px 24px;
  color: var(--text-dark) !important;
  display: block;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--bg-color);
  color: var(--primary) !important;
}

/* Submenu */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: auto;
  bottom: 0;
  left: 100%;
  transform: translateX(10px);
  margin-bottom: -10px;
}

.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-submenu > a::after {
  content: "▸";
  float: right;
  margin-right: 10px;
}

.caret {
  font-size: 0.8em;
  margin-left: 4px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.navbar.scrolled .mobile-toggle span {
  background: var(--primary);
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Utilities */
.text-center { text-align: center; }

/* Scroll Animations (Aigocy Style) */
.reveal, .fade-up, .fade-down, .fade-left, .fade-right, .zoom-in, .blur-in {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal, .fade-up { transform: translateY(50px); }
.fade-down { transform: translateY(-50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.85); }
.blur-in { filter: blur(10px); transform: scale(1.05); }

.reveal.active, .fade-up.active, .fade-down.active, .fade-left.active, .fade-right.active, .zoom-in.active, .blur-in.active {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* Custom Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.3; }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 8s ease-in-out infinite;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
}

.badge.light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-accent);
  border: 1px solid rgba(255,255,255,0.2);
}

.badge.primary {
  background: var(--bg-color);
  color: var(--primary);
}

/* ═══════════════════════════════════════
   SVG ICON ANIMATIONS
═══════════════════════════════════════ */

/* Card wrapper */
.svg-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.svg-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(32, 144, 254, 0.15);
}

.svg-card:hover .svg-icon-wrap {
  background: linear-gradient(135deg, rgba(32,144,254,0.15), rgba(0,229,255,0.08));
}

/* Icon container */
.svg-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(176, 223, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background 0.4s ease;
  border: 1px solid rgba(32,144,254,0.12);
}

/* SVG sizing */
.svg-icon-anim {
  width: 44px;
  height: 44px;
}

/* SVG path draw – plays when .svg-card is .active (toggled by IntersectionObserver) */
.svg-draw {
  stroke-dashoffset: inherit;
  animation: none;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.svg-card.active .svg-draw {
  stroke-dashoffset: 0 !important;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Delay chaining – honour inline animation-delay as transition-delay */
.svg-card.active .svg-draw[style*="animation-delay:0.15s"] { transition-delay: 0.15s; }
.svg-card.active .svg-draw[style*="animation-delay:0.3s"]  { transition-delay: 0.30s; }
.svg-card.active .svg-draw[style*="animation-delay:0.35s"] { transition-delay: 0.35s; }
.svg-card.active .svg-draw[style*="animation-delay:0.4s"]  { transition-delay: 0.40s; }
.svg-card.active .svg-draw[style*="animation-delay:0.45s"] { transition-delay: 0.45s; }
.svg-card.active .svg-draw[style*="animation-delay:0.5s"]  { transition-delay: 0.50s; }
.svg-card.active .svg-draw[style*="animation-delay:0.6s"]  { transition-delay: 0.60s; }
.svg-card.active .svg-draw[style*="animation-delay:0.65s"] { transition-delay: 0.65s; }
.svg-card.active .svg-draw[style*="animation-delay:0.7s"]  { transition-delay: 0.70s; }
.svg-card.active .svg-draw[style*="animation-delay:0.75s"] { transition-delay: 0.75s; }

/* Pop-in circles */
.svg-pop {
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svg-card.active .svg-pop {
  transform: scale(1);
  transition-delay: 0.7s;
}

.svg-card.active .svg-pop[style*="animation-delay:0.5s"] { transition-delay: 0.50s; }
.svg-card.active .svg-pop[style*="animation-delay:0.6s"] { transition-delay: 0.60s; }
.svg-card.active .svg-pop[style*="animation-delay:0.7s"] { transition-delay: 0.70s; }

/* ═══════════════════════════════════════
   STATS ROW
═══════════════════════════════════════ */
.stats-row {
  background: linear-gradient(135deg, var(--primary), #034a71);
  border-radius: var(--radius-card);
  padding: 60px 40px;
  gap: 0;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), var(--light-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════
   HOVER LIFT GLOW (cards in dark sections)
═══════════════════════════════════════ */
.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(32, 144, 254, 0.2);
}

/* ═══════════════════════════════════════
   SECTION WAVE DIVIDER (used in capabilities)
═══════════════════════════════════════ */
.wave-divider svg path {
  animation: wave-shift 8s ease-in-out infinite alternate;
}

@keyframes wave-shift {
  from { d: path("M0,30 C300,60 900,0 1200,30 L1200,0 L0,0 Z"); }
  to   { d: path("M0,20 C400,50 800,10 1200,40 L1200,0 L0,0 Z"); }
}

/* ═══════════════════════════════════════
   TILT CARD (JS-driven)
═══════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 600px;
  transition: transform 0.1s ease;
}

/* Responsiveness */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .section-padding { padding: 80px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat-item:not(:last-child)::after { display: none; }
  
  .mobile-toggle { display: flex; }
  .mobile-toggle.active span { background: #ffffff !important; }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(2, 48, 71, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px;
    transition: left 0.4s ease;
    align-items: flex-start;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; /* Enable scrolling for tall menus */
  }
  
  .nav-links.active { left: 0; }
  .nav-links > li { width: 100%; list-style-type: none; }
  .nav-links a, .navbar.scrolled .nav-links a { font-size: 1.25rem; color: #ffffff !important; display: block; width: 100%; }
  
  .dropdown-menu,
  .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu,
  .navbar.scrolled .dropdown-menu,
  [data-theme="dark"] .dropdown-menu {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 12px 0 0 16px !important;
    min-width: unset !important;
  }
  
  .dropdown-menu {
    display: none !important;
  }
  
  .dropdown.active > .dropdown-menu,
  .dropdown-submenu.active > .dropdown-menu { display: flex !important; }
  
  .dropdown-menu a { color: var(--light-gray) !important; font-size: 1rem !important; padding: 10px 0 !important; }
  .dropdown-menu a:hover { background: transparent; color: var(--light-accent) !important; }
  
  /* Active states for caret and arrow icons */
  .dropdown.active > a .caret { display: inline-block; transform: rotate(180deg); }
  .dropdown-submenu > a::after { transition: 0.3s transform; }
  .dropdown-submenu.active > a::after { transform: rotate(90deg); }
  
  .nav-actions { display: none; }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

