/* ── 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ─────────────── */

/* This applies globally to the entire website with the help of CSS variables and changes accordingly wherever called */

:root {
  /* Dark Theme (Default) */
  --bg-primary:    #050c14;
  --bg-secondary:  #080f1a;
  --bg-card:       #0d1929;
  --bg-card-hover: #111f30;
  --bg-input:      #0a1520;
  --bg-alt:        #060d16;

  --border:        rgba(0, 168, 255, 0.12);
  --border-hover:  rgba(0, 168, 255, 0.35);
  --border-accent: rgba(0, 168, 255, 0.6);

  --text-primary:  #e8f4ff;
  --text-secondary:#7fa8c8;
  --text-muted:    #3d6280;
  --text-accent:   #00a8ff;

  --accent:        #00a8ff;
  --accent-glow:   rgba(0, 168, 255, 0.25);
  --accent-dim:    rgba(0, 168, 255, 0.1);
  --accent2:       #00e5ff;
  --accent3:       #0066ff;

  --success:       #00d68f;
  --success-bg:    rgba(0, 214, 143, 0.1);
  --warning:       #ffb347;
  --warning-bg:    rgba(255, 179, 71, 0.1);
  --danger:        #ff4757;
  --danger-bg:     rgba(255, 71, 87, 0.1);
  --info:          #7bed9f;

  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 30px rgba(0, 168, 255, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(0, 168, 255, 0.25);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --font-display:  'Orbitron', monospace;
  --font-body:     'Syne', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --nav-height:    68px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary:    #f0f4f8;
  --bg-secondary:  #e4eaf2;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f9ff;
  --bg-input:      #eaf0f8;
  --bg-alt:        #e8eef6;

  --border:        rgba(0, 100, 180, 0.15);
  --border-hover:  rgba(0, 100, 180, 0.4);
  --border-accent: rgba(0, 100, 180, 0.6);

  --text-primary:  #0c1a2e;
  --text-secondary:#2a5278;
  --text-muted:    #6a8aa8;
  --text-accent:   #0055cc;

  --accent:        #0055cc;
  --accent-glow:   rgba(0, 85, 204, 0.15);
  --accent-dim:    rgba(0, 85, 204, 0.08);
  --accent2:       #0088ee;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow:   0 0 30px rgba(0, 85, 204, 0.1);
}

/* ── 2. RESET & BASE ───────────────────────────────────────── */

/* :: is for pseudo elements i.e. a particular element  */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; opacity: 0.5; }

::selection { background: var(--accent); color: #fff; }

/* ── 3. LOADING OVERLAY ────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin: 0 auto 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
}

.loading-bar {
  width: 280px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 12px;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent);
}

.loading-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── 4. NAVIGATION ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(5, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(240, 244, 248, 0.88);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.toggle-icon {
  position: absolute;
  transition: all 0.3s ease;
}

[data-theme="dark"] .toggle-icon.sun { opacity: 0; transform: translateY(20px); }
[data-theme="dark"] .toggle-icon.moon { opacity: 1; transform: translateY(0); }
[data-theme="light"] .toggle-icon.moon { opacity: 0; transform: translateY(-20px); }
[data-theme="light"] .toggle-icon.sun { opacity: 1; transform: translateY(0); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── 5. HERO SECTION ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0, 168, 255, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  padding-top: var(--nav-height);
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  opacity: 0.5;
}

/* Radar */
.radar-container {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  opacity: 0.4;
}

.radar-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
}
.radar-circle.c2 { inset: 20%; opacity: 0.3; }
.radar-circle.c3 { inset: 40%; opacity: 0.5; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 340deg,
    rgba(0, 168, 255, 0.4) 355deg,
    rgba(0, 168, 255, 0.6) 360deg
  );
  animation: radar-rotate 4s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: radar-blink 2s ease-in-out infinite;
}
.radar-dot.d1 { top: 25%; left: 60%; animation-delay: 0s; }
.radar-dot.d2 { top: 55%; left: 35%; animation-delay: 0.7s; }
.radar-dot.d3 { top: 70%; left: 65%; animation-delay: 1.4s; }

/* Flight paths decoration */
.flight-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
}
.path-svg { width: 100%; height: 100%; }
.flight-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 8 4;
  animation: dash 20s linear infinite;
}
.flight-path.p2 { stroke: var(--accent2); animation-duration: 25s; animation-delay: -5s; }
.flight-path.p3 { stroke: var(--accent3); animation-duration: 30s; animation-delay: -10s; opacity: 0.5; }

.plane-dot {
  position: absolute;
  font-size: 1.1rem;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: fly1 20s linear infinite;
}
#plane2 { animation-name: fly2; animation-duration: 25s; animation-delay: -8s; color: var(--accent2); font-size: 0.9rem; }
#plane3 { animation-name: fly3; animation-duration: 30s; animation-delay: -15s; color: var(--accent3); font-size: 0.8rem; }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 24px;
  animation: fadeInUp 1s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.title-line {
  display: block;
  color: var(--text-primary);
}

.title-accent {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 168, 255, 0.1);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  backdrop-filter: blur(10px);
}

.hero-stat {
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 8px;
}

/* CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 168, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ── 6. TICKER BAR ─────────────────────────────────────────── */
.ticker-bar {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 40px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--danger);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  animation: pulse 2s infinite;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ticker-item .t-flight { color: var(--accent); font-weight: 600; }
.ticker-item .t-status.on-time { color: var(--success); }
.ticker-item .t-status.delayed { color: var(--warning); }
.ticker-item .t-status.cancelled { color: var(--danger); }

/* ── 7. SECTION SHARED STYLES ──────────────────────────────── */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.section-subheader {
  margin: 48px 0 24px;
}

.section-subheader h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-subheader h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── 8. FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: all var(--transition);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
  text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── 9. FLIGHT CARDS ───────────────────────────────────────── */
.flights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.flight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}

.flight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--status-color, var(--accent));
  opacity: 0.7;
}

.flight-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.flight-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.flight-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.flight-airline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.flight-status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-on-time   { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0, 214, 143, 0.3); }
.badge-delayed   { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255, 179, 71, 0.3); }
.badge-boarding  { background: var(--accent-dim); color: var(--accent);  border: 1px solid var(--border-accent); }
.badge-cancelled { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(255, 71, 87, 0.3); }
.badge-landed    { background: rgba(123,237,159,0.1); color: var(--info); border: 1px solid rgba(123,237,159,0.3); }
.badge-departed  { background: rgba(116, 185, 255, 0.1); color: #74b9ff; border: 1px solid rgba(116,185,255,0.3); }

.flight-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.route-city {
  text-align: center;
  flex: 1;
}

.city-code {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.city-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.route-arrow {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.arrow-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--text-muted), var(--accent), var(--text-muted));
  position: relative;
}

.arrow-plane {
  font-size: 0.9rem;
  color: var(--accent);
  animation: planeFly 3s ease-in-out infinite;
}

.flight-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.time-block { text-align: center; }

.time-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.time-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.flight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.delay-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.delay-tag span {
  color: var(--warning);
  font-weight: 700;
}

.flight-aircraft {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── 10. WEATHER CARDS ─────────────────────────────────────── */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.weather-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}

.weather-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--wc-color, var(--accent-dim)) 0%, transparent 70%);
  opacity: 0.3;
  transition: opacity var(--transition);
}

.weather-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.weather-card:hover::after { opacity: 0.5; }

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.weather-airport {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.weather-city {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.weather-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.weather-temp {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.weather-condition {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.weather-detail-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.wd-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wd-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  background: var(--warning-bg);
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--warning);
}

/* ── 11. AI DELAY PREDICTOR ────────────────────────────────── */
.predictor-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 16px;
}

.predictor-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-title svg { width: 20px; height: 20px; color: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-input {
  height: 44px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  transition: all var(--transition);
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--bg-card);
}

.form-input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.predict-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.82rem;
}

/* Prediction Result */
.prediction-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.result-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.result-placeholder p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  max-width: 280px;
}

.result-placeholder strong { color: var(--text-secondary); }

/* Prediction Result Content */
.result-content {
  width: 100%;
}

.result-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gauge-ring {
  position: relative;
  width: 130px;
  height: 130px;
}

.gauge-ring svg { transform: rotate(-90deg); }

.gauge-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-percent {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.gauge-risk {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.result-factors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.factor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.factor-icon { font-size: 1rem; }

.factor-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.factor-impact {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.impact-high   { background: var(--danger-bg);  color: var(--danger); }
.impact-medium { background: var(--warning-bg); color: var(--warning); }
.impact-low    { background: var(--success-bg); color: var(--success); }

.result-recommendation {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  border: 1px solid;
}

.rec-low    { background: var(--success-bg); border-color: rgba(0,214,143,0.3); color: var(--success); }
.rec-medium { background: var(--warning-bg); border-color: rgba(255,179,71,0.3); color: var(--warning); }
.rec-high   { background: var(--danger-bg);  border-color: rgba(255,71,87,0.3);  color: var(--danger); }

/* Prediction Cards */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.pred-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition);
  animation: fadeInUp 0.4s ease both;
}

.pred-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pred-flight-id {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.pred-risk-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.risk-low    { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0,214,143,0.3); }
.risk-medium { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255,179,71,0.3); }
.risk-high   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(255,71,87,0.3); }

.pred-route {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pred-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pred-bar-track {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pred-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s ease;
}

.bar-low    { background: linear-gradient(90deg, var(--success), #00b276); }
.bar-medium { background: linear-gradient(90deg, var(--warning), #e09032); }
.bar-high   { background: linear-gradient(90deg, var(--danger), #cc2d3e); }

.pred-reason {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 12. ANALYTICS SECTION ─────────────────────────────────── */
.analytics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sc-color, var(--accent));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.stat-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sc-color, var(--accent));
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-card-delta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.delta-up   { color: var(--success); }
.delta-down { color: var(--danger); }

/* Charts */
.analytics-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Bar Chart */
.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bcr-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}

.bcr-track {
  flex: 1;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
}

.bcr-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  transition: width 1.2s ease;
  position: relative;
}

.bcr-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  width: 45px;
  flex-shrink: 0;
}

/* Horizontal bar chart */
.bar-chart.horizontal .bcr-label {
  text-align: right;
  width: 110px;
}

/* Donut chart */
.donut-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-pct {
  margin-left: auto;
  color: var(--text-primary);
  font-weight: 600;
}

/* ── 13. NEWS SECTION ──────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  animation: fadeInUp 0.4s ease both;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card-image {
  height: 160px;
  background: var(--nc-gradient, linear-gradient(135deg, var(--bg-secondary), var(--bg-card)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card));
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.news-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.news-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.news-source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 10px;
  border-radius: 4px;
}

/* ── 14. AI INSIGHTS SECTION ───────────────────────────────── */
.insights-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.insights-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.insight-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.insight-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-align: left;
  transition: all var(--transition);
}

.insight-cat:hover, .insight-cat.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-accent);
}

.insights-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.insights-counter span {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

/* Insight Feed */
.insights-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
  animation: slideInRight 0.4s ease both;
}

.insight-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.insight-item.hidden {
  display: none;
}

.insight-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.insight-body { flex: 1; }

.insight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.insight-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.insight-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.insight-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.insight-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.insight-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Insight severity */
.severity-critical .insight-icon { background: var(--danger-bg); border: 1px solid rgba(255,71,87,0.3); }
.severity-warning  .insight-icon { background: var(--warning-bg); border: 1px solid rgba(255,179,71,0.3); }
.severity-info     .insight-icon { background: var(--accent-dim);  border: 1px solid var(--border-accent); }
.severity-success  .insight-icon { background: var(--success-bg);  border: 1px solid rgba(0,214,143,0.3); }

/* ── 15. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-badges {
  display: flex;
  gap: 8px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}

.badge.live {
  color: var(--success);
  border-color: rgba(0,214,143,0.3);
  background: var(--success-bg);
  animation: pulse 2s infinite;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-status h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.status-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot.yellow { background: var(--warning); box-shadow: 0 0 6px var(--warning); animation: pulse 2s infinite; }
.dot.red { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-time {
  color: var(--accent) !important;
}

/* ── 16. SCROLL TO TOP ─────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 168, 255, 0.4);
}

/* ── 17. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes radar-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes radar-blink {
  0%, 80%, 100% { opacity: 0; transform: scale(0.5); }
  40%            { opacity: 1; transform: scale(1.5); }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes dash {
  to { stroke-dashoffset: -1000; }
}

@keyframes planeFly {
  0%   { left: -2%; top: 50%; }
  100% { left: 102%; top: 30%; }
}

@keyframes fly2 {
  0%   { left: -2%; top: 70%; }
  100% { left: 102%; top: 40%; }
}

@keyframes fly3 {
  0%   { left: 102%; top: 30%; }
  100% { left: -2%;  top: 60%; }
}

@keyframes planeFly {
  0%   { left: -2%;  top: 55%; }
  100% { left: 102%; top: 35%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin { animation: spin 1s linear infinite; }

/* ── 18. RESPONSIVE DESIGN ─────────────────────────────────── */
@media (max-width: 1100px) {
  .predictor-panel { grid-template-columns: 1fr; }
  .analytics-charts { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .radar-container { display: none; }
}

@media (max-width: 900px) {
  .insights-panel { grid-template-columns: 1fr; }
  .insights-sidebar { position: static; }
  .insight-categories { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link { padding: 12px 16px; }
  .hamburger { display: flex; }

  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .flights-grid { grid-template-columns: 1fr; }
  .weather-grid { grid-template-columns: 1fr; }
  .analytics-stats { grid-template-columns: 1fr 1fr; }
  .predictions-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .donut-wrapper { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-ctas { flex-direction: column; }
  .btn { justify-content: center; }
  .analytics-stats { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}