/* ═══════════════════════════════════════════════════════════════
   THE COSMIC MUSEUM - A Space Odyssey
   Cinematic deep-space experience with parallax and immersive visuals
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ─────────────────────────────────────────────────────────────────
   CSS Variables - The Cosmic Palette
   ───────────────────────────────────────────────────────────────── */
:root {
  /* Deep space colors */
  --void: #010104;
  --deep-space: #060610;
  --nebula-purple: #120822;
  --nebula-blue: #06101e;

  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.5);

  /* Accent colors */
  --aurora-cyan: #00d4ff;
  --aurora-pink: #c850ff;
  --aurora-green: #00e088;
  --star-gold: #ffc857;
  --cosmic-blue: #4a72ff;
  --soft-white: rgba(255, 255, 255, 0.92);
  --muted-white: rgba(255, 255, 255, 0.55);
  --dim-white: rgba(255, 255, 255, 0.3);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.14);
}

body {
  font-family: var(--font-display);
  background: var(--void);
  color: var(--soft-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--void);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-cinematic);
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─────────────────────────────────────────────────────────────────
   Deep Space Background System
   ───────────────────────────────────────────────────────────────── */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

.cosmos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 10%, rgba(18, 8, 34, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 80% 90%, rgba(6, 16, 30, 0.95) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 60% 20%, rgba(74, 114, 255, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, var(--void) 0%, var(--deep-space) 50%, var(--nebula-blue) 100%);
}

.nebula-layer-1 {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 40% 30% at 30% 30%, rgba(200, 80, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
  animation: nebulaDrift1 80s ease-in-out infinite;
  filter: blur(80px);
}

.nebula-layer-2 {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 35% 50% at 60% 40%, rgba(74, 114, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 25% 70%, rgba(0, 224, 136, 0.03) 0%, transparent 50%);
  animation: nebulaDrift2 60s ease-in-out infinite;
  filter: blur(100px);
}

.aurora {
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 60vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 224, 136, 0.015) 20%,
    rgba(0, 212, 255, 0.025) 40%,
    rgba(200, 80, 255, 0.015) 60%,
    transparent 100%
  );
  animation: auroraWave 25s ease-in-out infinite;
  filter: blur(50px);
  transform-origin: bottom center;
}

@keyframes nebulaDrift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(5%, 3%) rotate(1.5deg) scale(1.03); }
  66% { transform: translate(-3%, -2%) rotate(-1deg) scale(0.98); }
}

@keyframes nebulaDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4%, 4%) rotate(-1.5deg); }
}

@keyframes auroraWave {
  0%, 100% { transform: scaleY(1) translateX(0); opacity: 0.5; }
  50% { transform: scaleY(1.15) translateX(2%); opacity: 0.7; }
}

#starfield {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

/* ─────────────────────────────────────────────────────────────────
   Navigation - Floating Glass Bar
   ───────────────────────────────────────────────────────────────── */
.nav-container {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0 var(--space-md);
  width: 100%;
  max-width: 1200px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  background: rgba(6, 6, 16, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--soft-white);
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--aurora-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  font-size: 0;
  color: transparent;
}

.logo-icon::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--aurora-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--aurora-cyan);
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  transform: rotate(45deg) scale(1.5);
}

.logo-text {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.nav-link {
  position: relative;
  padding: 0.45rem 0.85rem;
  color: var(--muted-white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out-expo);
  border-radius: 100px;
}

.nav-link:hover {
  color: var(--soft-white);
}

.nav-link.active {
  color: var(--soft-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-cyan), transparent);
  transition: all 0.3s var(--ease-out-expo);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 50%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--soft-white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

/* ─────────────────────────────────────────────────────────────────
   Glass Card System
   ───────────────────────────────────────────────────────────────── */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.6s var(--ease-out-expo);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 50%,
    transparent 100%
  );
  opacity: 0.5;
  pointer-events: none;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.04) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.glass-card:hover::after {
  opacity: 1;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow:
    0 20px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 40px -20px rgba(0, 212, 255, 0.15);
}

/* Glow variants */
.glass-card--cyan:hover {
  box-shadow:
    0 20px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 50px -10px rgba(0, 212, 255, 0.15);
}

.glass-card--pink:hover {
  box-shadow:
    0 20px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 50px -10px rgba(200, 80, 255, 0.15);
}

.glass-card--green:hover {
  box-shadow:
    0 20px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 50px -10px rgba(0, 224, 136, 0.15);
}

.glass-card--gold:hover {
  box-shadow:
    0 20px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 50px -10px rgba(255, 200, 87, 0.15);
}

/* ─────────────────────────────────────────────────────────────────
   Typography System
   ───────────────────────────────────────────────────────────────── */
.text-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.8em;
  letter-spacing: 0.02em;
}

.heading-xl {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 40%,
    var(--aurora-cyan) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading-lg {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.heading-md {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.heading-sm {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.text-lg {
  font-size: 1.2rem;
  line-height: 1.8;
}

.text-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted-white);
}

.text-sm {
  font-size: 0.85rem;
  color: var(--dim-white);
}

.text-gradient {
  background: linear-gradient(135deg, var(--aurora-cyan), var(--aurora-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────────────────────────────────────────────────────────────
   Layout Components
   ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--aurora-cyan);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--aurora-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--aurora-cyan);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ─────────────────────────────────────────────────────────────────
   Divider
   ───────────────────────────────────────────────────────────────── */
.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-cyan), transparent);
  margin: 0 auto var(--space-md);
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--aurora-cyan);
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-label .dot {
  width: 5px;
  height: 5px;
  background: var(--aurora-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--aurora-cyan);
}

.hero-title {
  margin-bottom: var(--space-md);
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.4s both;
}

.hero-title .line {
  display: block;
}

.hero-title .line:nth-child(2) {
  color: var(--muted-white);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--muted-white);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.9;
  font-weight: 300;
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.6s both;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.8s both;
  margin-bottom: var(--space-xl);
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 1s var(--ease-out-expo) 1.4s both;
  pointer-events: none;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim-white);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--aurora-cyan), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.4); opacity: 0.8; }
}

/* ─────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--aurora-cyan), var(--cosmic-blue));
  color: var(--void);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: var(--soft-white);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────────────────
   Exhibition Grid
   ───────────────────────────────────────────────────────────────── */
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.exhibition-card {
  position: relative;
  padding: var(--space-lg);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}

.exhibition-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: all 0.8s var(--ease-out-expo);
  border-radius: 20px;
}

.exhibition-card:hover .exhibition-card__bg {
  opacity: 0.55;
  transform: scale(1.05);
}

.exhibition-card__content {
  position: relative;
  z-index: 1;
}

.exhibition-card__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--aurora-cyan);
  letter-spacing: 0.25em;
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.exhibition-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.exhibition-card__desc {
  color: var(--muted-white);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.exhibition-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aurora-cyan);
  letter-spacing: 0.02em;
  transition: gap 0.3s var(--ease-out-expo);
}

.exhibition-card:hover .exhibition-card__link {
  gap: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────────
   Stats Section
   ───────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.stat-card {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(160deg, var(--soft-white), var(--aurora-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim-white);
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   Image Card System (for pioneers, phenomena, etc.)
   ───────────────────────────────────────────────────────────────── */
.image-card {
  overflow: hidden;
}

.image-card__visual {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin: -1px -1px 0 -1px;
  width: calc(100% + 2px);
}

.image-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
  opacity: 0.8;
}

.image-card:hover .image-card__visual img {
  transform: scale(1.08);
  opacity: 0.95;
}

.image-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 1, 4, 0.8) 0%, transparent 60%);
}

.image-card__body {
  padding: var(--space-md);
  text-align: center;
}

.image-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.image-card__subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--aurora-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.image-card__text {
  font-size: 0.88rem;
  color: var(--muted-white);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────
   Timeline Component
   ───────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.06) 10%,
    rgba(255, 255, 255, 0.06) 90%,
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) - 3.5px);
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora-cyan);
  box-shadow: 0 0 20px var(--aurora-cyan), 0 0 40px rgba(0, 212, 255, 0.3);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--aurora-cyan);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.timeline-desc {
  color: var(--muted-white);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────
   Planet Cards
   ───────────────────────────────────────────────────────────────── */
.planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.planet-card {
  padding: var(--space-md);
  text-align: center;
}

.planet-visual {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
  box-shadow:
    inset -20px -20px 40px rgba(0,0,0,0.5),
    0 0 60px rgba(0, 212, 255, 0.15);
  transition: all 0.6s var(--ease-out-expo);
  overflow: hidden;
}

.planet-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.planet-card:hover .planet-visual {
  transform: scale(1.05);
  box-shadow:
    inset -20px -20px 40px rgba(0,0,0,0.5),
    0 0 80px rgba(0, 212, 255, 0.25);
}

.planet-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.planet-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--aurora-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.planet-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.planet-stat {
  text-align: center;
}

.planet-stat__value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--soft-white);
}

.planet-stat__label {
  font-size: 0.7rem;
  color: var(--dim-white);
}

/* ─────────────────────────────────────────────────────────────────
   Mission Cards
   ───────────────────────────────────────────────────────────────── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
}

.mission-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
}

.mission-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  border-radius: 14px;
  overflow: hidden;
}

.mission-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.mission-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--aurora-cyan);
  stroke-width: 1.5;
  fill: none;
}

.mission-content {
  flex: 1;
}

.mission-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--aurora-cyan);
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.mission-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.mission-agency {
  font-size: 0.75rem;
  color: var(--dim-white);
  margin-bottom: 0.5rem;
}

.mission-desc {
  font-size: 0.88rem;
  color: var(--muted-white);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────
   News Cards
   ───────────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-image {
  height: 220px;
  background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-blue));
  border-radius: 20px 20px 0 0;
  margin: -1px -1px 0 -1px;
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: all 0.6s var(--ease-out-expo);
}

.news-card:hover .news-image img {
  opacity: 0.9;
  transform: scale(1.05);
}

.news-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.news-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aurora-cyan);
  padding: 0.2rem 0.7rem;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 100px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--dim-white);
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--muted-white);
  flex: 1;
  line-height: 1.7;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aurora-cyan);
  text-decoration: none;
  transition: gap 0.3s var(--ease-out-expo);
}

.news-link:hover {
  gap: 0.8rem;
}

/* ─────────────────────────────────────────────────────────────────
   Cosmic Phenomena Cards
   ───────────────────────────────────────────────────────────────── */
.phenomena-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.phenomena-card {
  padding: 0;
  overflow: hidden;
}

.phenomena-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.phenomena-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: all 0.6s var(--ease-out-expo);
}

.phenomena-card:hover .phenomena-card__image img {
  opacity: 0.8;
  transform: scale(1.05);
}

.phenomena-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 1, 4, 0.9) 0%, transparent 70%);
}

.phenomena-card__body {
  padding: var(--space-md);
  text-align: center;
}

.phenomena-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.phenomena-desc {
  font-size: 0.88rem;
  color: var(--muted-white);
  line-height: 1.7;
}

/* Old phenomena icon fallback */
.phenomena-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent);
  border-radius: 50%;
}

/* ─────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--dim-white);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-link {
  font-size: 0.82rem;
  color: var(--muted-white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--aurora-cyan);
}

/* ─────────────────────────────────────────────────────────────────
   Page Header (for inner pages)
   ───────────────────────────────────────────────────────────────── */
.page-header {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--space-xl) + 80px) var(--space-md) var(--space-lg);
  position: relative;
}

.page-header__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--aurora-cyan);
  margin-bottom: var(--space-sm);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.page-header__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
  animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

.page-header__desc {
  font-size: 1.1rem;
  color: var(--muted-white);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
  animation: fadeInUp 1s var(--ease-out-expo) 0.35s both;
}

/* ─────────────────────────────────────────────────────────────────
   Blockquote
   ───────────────────────────────────────────────────────────────── */
.quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.15;
  font-family: var(--font-serif);
  color: var(--aurora-cyan);
  margin-bottom: var(--space-xs);
}

/* ─────────────────────────────────────────────────────────────────
   Scroll Animations
   ───────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.54s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────
   Parallax containers
   ───────────────────────────────────────────────────────────────── */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--space-sm);
    right: var(--space-sm);
    margin-top: var(--space-sm);
    flex-direction: column;
    padding: var(--space-sm);
    background: rgba(6, 6, 16, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .mission-card {
    flex-direction: column;
    text-align: center;
  }

  .mission-icon {
    margin: 0 auto;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .planet-stats {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .planet-grid,
  .mission-grid,
  .news-grid,
  .phenomena-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Print Styles
   ───────────────────────────────────────────────────────────────── */
@media print {
  .cosmos,
  .nav-container,
  .scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: #f5f5f5;
    border: 1px solid #ddd;
  }
}
