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

:root {
  --bg-dark: #000;
  --bg-section: #0a0d14;
  --bg-section-alt: #0d1117;
  --accent: #4f8eff;
  --accent-glow: rgba(79, 142, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

.quick-nav {
  display: none;
}

.nasa-branding {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
}

.nasa-logo {
  width: 50px;
  height: auto;
}

.nasa-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  max-width: 150px;
  line-height: 1.3;
  display: none;
}

@media (min-width: 768px) {
  .nasa-text {
    display: block;
  }
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero {
  position: relative;
  height: 200vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("assets/background.png") center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0) 70%,
    rgba(10,13,20,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  padding-top: 10vh;
}

.hero-title {
  font-size: clamp(3.5rem, 18vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Rocket */
.rocket-container {
  position: fixed;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.rocket {
  height: 130vh;
  width: auto;
  filter: drop-shadow(0 20px 100px rgba(0, 0, 0, 0.8));
  will-change: transform;
}

.rocket-glow {
  position: absolute;
  bottom: -30px;
  width: 100px;
  height: 150px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 140, 50, 0.7) 0%,
    rgba(255, 80, 20, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  filter: blur(20px);
  will-change: opacity, transform;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue svg {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.main-content {
  position: relative;
  z-index: 5;
  background: var(--bg-section);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

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

.section-accent {
  background: linear-gradient(135deg, #0a1628 0%, #0d1117 100%);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-body {
  opacity: 0;
  transform: translateY(20px);
}

.section-body p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.8;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.crew-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.crew-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-glow);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.crew-image-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.crew-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
  transition: transform 0.4s ease;
}

.crew-flag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.crew-card:hover .crew-image {
  transform: scale(1.05);
}

.crew-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.crew-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.crew-agency {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-wrapper {
  position: relative;
  max-width: 800px;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), #a855f7);
  transition: height 1s ease;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-section);
  border: 3px solid var(--accent);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  opacity: 0.3;
  transform: scale(2);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-phase {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-phase {
  color: var(--accent);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-card {
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.mini-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mini-player.hidden {
  transform: translateY(100%) translateX(50%);
  opacity: 0;
  pointer-events: none;
}

.mini-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mini-player-header span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mini-player-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.mini-player-close:hover {
  color: #fff;
}

.mini-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.section-video {
  background: linear-gradient(180deg, var(--bg-section) 0%, #0a1020 100%);
  padding-bottom: 8rem;
}

.video-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.video-player-wrapper {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

.video-thumbnail {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.play-button svg {
  width: 30px;
  height: 30px;
  color: #000;
  margin-left: 4px;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 50px rgba(79, 142, 255, 0.4);
}

.video-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.fullscreen-video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-video-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.close-fullscreen svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.close-fullscreen:hover {
  background: rgba(255, 255, 255, 0.2);
}

.fullscreen-video-container {
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 16/9;
}

.fullscreen-video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.footer {
  padding: 4rem 1.5rem;
  background: var(--bg-section-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-credit {
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-credit strong {
  color: var(--accent);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sources {
  text-align: right;
}

.footer-sources-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.section-posters {
  background: #f5f5f5;
  color: #111;
}

.posters-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

.posters-text .section-tag {
  color: #e53935;
}

.posters-text .section-title {
  color: #111;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.posters-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.posters-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: gap 0.3s ease;
}

.posters-link:hover {
  gap: 0.75rem;
}

.posters-link svg {
  width: 20px;
  height: 20px;
  color: #e53935;
}

.posters-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.posters-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.posters-image:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .posters-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .posters-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-sources {
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mini-player {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .crew-card {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .scroll-cue {
    bottom: 1.5rem;
  }
  
  .rocket {
    height: 100vh;
  }
  
  .mini-player {
    width: 240px;
    bottom: 10px;
    right: 10px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button svg {
    width: 24px;
    height: 24px;
  }
  
  .quick-nav {
    left: 10px;
    bottom: 10px;
  }
  
  .quick-nav-link {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .crew-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .crew-card {
    padding: 1.5rem;
  }
  
  .hero-content {
    padding-top: 15vh;
  }
  
  .mini-player {
    width: 180px;
  }
  
  .quick-nav {
    display: none;
  }
}
