@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
  background-color: #000;
  color: #fff;
  font-family: 'Orbitron', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Starfield */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 10%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.12) 1px, transparent 1px),
    radial-gradient(ellipse at 10% 80%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(ellipse at 90% 70%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(ellipse at 35% 15%, rgba(255,255,255,0.12) 1px, transparent 1px),
    radial-gradient(ellipse at 65% 90%, rgba(255,255,255,0.09) 1px, transparent 1px),
    radial-gradient(ellipse at 5% 45%, rgba(255,255,255,0.11) 1px, transparent 1px),
    radial-gradient(ellipse at 75% 50%, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 45% 40%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 200px 200px, 180px 180px, 220px 220px, 160px 160px, 240px 240px,
                   170px 170px, 210px 210px, 190px 190px, 230px 230px, 200px 200px;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
  width: 100%;
  max-width: 1100px;
}

h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #a0c8ff 40%, #4488ff 70%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(100, 160, 255, 0.6));
  margin-bottom: 0.3em;
  animation: glow 3s ease-in-out infinite alternate;
}

.subtitle {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  letter-spacing: 0.4em;
  color: #6aa0e8;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0.8;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px rgba(100, 160, 255, 0.4)); }
  to   { filter: drop-shadow(0 0 35px rgba(100, 160, 255, 0.9)); }
}

.media-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.video-wrapper {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  border: 1px solid rgba(100, 160, 255, 0.3);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(50, 120, 255, 0.25), 0 0 80px rgba(0, 60, 180, 0.15);
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Timeline */
.timeline {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(100,160,255,0.5), rgba(100,160,255,0.1));
}

.tl-dot {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #4488ff;
  background: #000;
  box-shadow: 0 0 8px rgba(68,136,255,0.7);
  margin-top: 3px;
}

.tl-dot.done {
  background: #4488ff;
  box-shadow: 0 0 12px rgba(68,136,255,1);
}

.tl-body {
  padding-bottom: 1.6rem;
}

.tl-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: #4488ff;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.tl-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e0eeff;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.tl-desc {
  font-size: 0.55rem;
  font-family: monospace;
  color: rgba(180, 200, 255, 0.55);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.nasa-badge {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

@media (max-width: 700px) {
  h1 { font-size: clamp(1.4rem, 8vw, 2.5rem); }
  .subtitle { font-size: 0.6rem; margin-bottom: 1.5rem; }
  .media-row { flex-direction: column; }
  .video-wrapper { flex: none; width: 100%; padding-bottom: 56.25%; }
  .timeline { flex: none; width: 100%; }
  .tl-item::after { display: none; }
  .tl-body { padding-bottom: 1rem; }
  .tl-title { font-size: 0.8rem; }
  .tl-label, .tl-desc { font-size: 0.65rem; }
}
