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

:root {
  --cyan: #00c8ff;
  --cyan-dim: rgba(0,200,255,0.15);
  --cyan-border: rgba(0,200,255,0.25);
  --bg: #050a0f;
  --bg-mid: #050a0f;
  --bg-card: #0b1622;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 1.2rem;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(5,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cyan-border);
}
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900; font-size: 1.2rem;
  color: var(--cyan); letter-spacing: 0.15em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 1.2rem; letter-spacing: 0.12em; font-weight: 500;
  color: #fff; text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1002; position: relative;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (orientation: portrait), (max-aspect-ratio: 1/1) {
  nav { padding: 0 1.5rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 75vw; max-width: 300px; height: 100vh;
    background: rgba(5,10,15,0.98); backdrop-filter: blur(16px);
    border-left: 1px solid var(--cyan-border);
    flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 0;
    padding: 4rem 2rem;
    transition: right 0.35s ease; z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; font-size: 1.2rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--cyan-border);
    letter-spacing: 0.2em;
  }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ── HERO CANVAS ── */
#hero-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
  overflow: hidden;
}
#hero > *:not(#hero-canvas) { position: relative; z-index: 1; }

/* ── HERO LOGO ── */
.hero-logo {
  width: clamp(100px, 28vw, 280px);
  height: clamp(100px, 28vw, 280px);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; flex-shrink: 0;
}
.hero-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,200,255,0.5));
}
.hero-logo-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1px dashed var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; letter-spacing: 0.2em;
  color: #fff; text-transform: uppercase;
}

.hero-eyebrow {
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  letter-spacing: clamp(0.1em, 1vw, 0.45em); font-weight: 500;
  color: #fff; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 11vw, 7rem);
  font-weight: 900; letter-spacing: 0.06em;
  line-height: 1; position: relative; z-index: 1;
  white-space: nowrap;
}
.hero-title .letter {
  display: inline-block;
  color: #1a2a3a;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.hero-title .letter.lit {
  color: #fff;
  text-shadow: 0 0 40px rgba(0,200,255,0.6), 0 0 80px rgba(0,200,255,0.3);
}
.hero-title .letter.cyan { color: #1a3a4a; }
.hero-title .letter.cyan.lit {
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0,200,255,0.8), 0 0 80px rgba(0,200,255,0.4);
}

.hero-sub {
  font-size: clamp(0.85rem, 2.5vw, 1.3rem);
  color: #fff; margin-top: 1.2rem; font-weight: 300;
  letter-spacing: 0.05em; position: relative; z-index: 1;
}
.hero-badges {
  display: flex; gap: 0.6rem; margin-top: 2rem; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.badge {
  font-size: clamp(0.7rem, 1.8vw, 1.2rem);
  letter-spacing: clamp(0.05em, 0.5vw, 0.15em); font-weight: 500;
  text-transform: uppercase; padding: 0.4rem 0.9rem;
  border: 1px solid var(--cyan-border); color: #fff;
  border-radius: 2px; background: var(--cyan-dim);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  background: rgba(5,10,15,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--cyan-border); border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: #fff; border-color: #fff; }

/* ── GALLERY ── */
#gallery { background: var(); padding: 0; position: relative; }
#gallery::before {
  content: 'GALLERY';
  position: absolute; top: 1.8rem; left: 3rem; z-index: 2;
  font-family: 'Orbitron', monospace; font-size: 1.2rem;
  letter-spacing: 0.4em; color: #fff;
}
.gallery-stage {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.7s ease;
  padding: 5rem 2rem 4rem; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-img-wrap {
  width: min(82vw, 580px); aspect-ratio: 16/9;
  border: 1px solid var(--cyan-border); border-radius: 3px;
  overflow: hidden; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.slide-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; width: 100%; height: 100%;
  background: linear-gradient(135deg, #08131e 0%, #0b1d2e 100%);
}
.ph-icon { width: 56px; height: 56px; opacity: 0.2; }
.ph-label { font-size: 1rem; letter-spacing: 0.2em; color: #fff; text-transform: uppercase; }
.slide-label {
  font-family: 'Orbitron', monospace; font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700; color: var(--cyan); letter-spacing: 0.2em;
  text-align: center; margin-top: 1.4rem;
}
.slide-caption {
  font-size: clamp(0.9rem, 2vw, 1.2rem); letter-spacing: 0.1em; color: #fff;
  text-align: center; margin-top: 0.4rem;
}
.gallery-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.dot.lit { background: var(--cyan); transform: scale(1.5); }

/* ── SECTIONS ── */
section { padding: 7rem 2rem; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-eyebrow {
  font-size: clamp(0.85rem, 2vw, 1.2rem); letter-spacing: 0.3em; color: #fff;
  text-transform: uppercase; font-weight: 500; margin-bottom: 0.8rem; display: block;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.3rem, 4vw, 2.8rem);
  font-weight: 700; color: #fff; letter-spacing: 0.08em;
  line-height: 1.1; margin-bottom: 2.5rem;
}
.section-divider { width: 40px; height: 2px; background: var(--cyan); margin-bottom: 2.5rem; opacity: 0.6; }

/* ── ABOUT ── */
#about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-grid p { font-size: 1.2rem; color: #fff; margin-bottom: 1.2rem; line-height: 1.85; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--cyan-border);
  border-radius: 3px; padding: 1.2rem 1.4rem;
}
.stat-card .num { font-family: 'Orbitron', monospace; font-size: 1.8rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.stat-card .lbl { font-size: 1rem; letter-spacing: 0.1em; color: #fff; text-transform: uppercase; margin-top: 0.3rem; display: block; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── STORY ── */
#story { background: var(--bg); }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 1px; background: var(--cyan-border);
}
.tl-item { display: flex; gap: 2rem; padding-bottom: 3rem; position: relative; }
.tl-dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
  font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.05em;
}
.tl-content h3 {
  font-family: 'Orbitron', monospace; font-size: clamp(0.9rem, 2vw, 1.2rem); font-weight: 700;
  color: var(--cyan); letter-spacing: 0.1em; margin-bottom: 0.5rem; text-transform: uppercase;
}
.tl-content p { font-size: clamp(0.9rem, 2vw, 1.2rem); color: #fff; line-height: 1.8; }

/* ── SEASONS ── */
#seasons { background: var(--bg); }
.seasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.season-card {
  background: var(--bg-card); border: 1px solid var(--cyan-border);
  border-radius: 3px; padding: 2rem; position: relative; overflow: hidden;
}
.season-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--cyan); opacity: 0.5; }
.season-card .year { font-family: 'Orbitron', monospace; font-size: 1rem; letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 0.6rem; display: block; }
.season-card h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 0.8rem; }
.season-card p { font-size: 1rem; color: #fff; line-height: 1.75; }
.season-tag {
  display: inline-block; margin-top: 1rem;
  font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border: 1px solid var(--cyan-border);
  color: #fff; border-radius: 2px; background: var(--cyan-dim);
}
@media (max-width: 600px) { .seasons-grid { grid-template-columns: 1fr; } }

/* ── ROBOT ── */
#robot { padding: 0; background: transparent; }
.robot-reveal-anchor { position: relative; height: 300vh; }
.robot-reveal-stage {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.robot-video-bg {
  position: absolute; inset: 0; background: var(--bg);
  opacity: 0; transition: opacity 0.5s ease;
}
.robot-video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
}
.robot-reveal-title {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 7vw, 6rem);
  font-weight: 900; color: #fff;
  letter-spacing: 0.1em; text-align: center; padding: 2rem;
  background: transparent;
  will-change: transform, opacity;
}
.robot-info { background: transparent; padding: 7rem 2rem; }
.robot-intro-text {
  font-size: clamp(0.9rem, 2vw, 1.2rem); color: #fff; line-height: 1.85;
  margin-bottom: 3rem; max-width: 640px;
}
.robot-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .robot-steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--bg-card); border: 1px solid var(--cyan-border);
  border-radius: 3px; padding: 1.2rem 1.4rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.step-card.revealed { opacity: 1; transform: translateY(0); }
.step-num {
  font-family: 'Orbitron', monospace; font-size: 1rem; letter-spacing: 0.2em;
  color: var(--cyan); margin-bottom: 0.4rem; display: block;
}
.step-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.step-card p { font-size: 1rem; color: #fff; line-height: 1.7; }

/* ── CODING ── */
#coding { background: var(--bg); }

/* ── OUTREACH ── */
#outreach { background: var(--bg); }
.outreach-body { font-size: clamp(0.9rem, 2vw, 1.2rem); color: #fff; line-height: 1.85; max-width: 700px; }
.outreach-body p { margin-bottom: 1.2rem; }
.outreach-highlight {
  border-left: 2px solid var(--cyan); padding-left: 1.5rem;
  margin: 2rem 0; font-style: italic; color: #fff;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

/* ── CONTACT / FOOTER ── */
#contact {
  background: var(--bg);
  text-align: center; padding: 6rem 2rem 4rem;
}
.contact-email {
  font-family: 'Orbitron', monospace; font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--cyan); letter-spacing: 0.15em; text-decoration: none;
  display: inline-block; margin: 1.5rem 0;
  border-bottom: 1px solid var(--cyan-border); padding-bottom: 0.3rem;
  transition: color 0.2s;
}
.contact-email:hover { color: #fff; }
.social-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.social-links a {
  font-size: clamp(0.9rem, 2vw, 1.2rem); letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: 0.8rem 2rem;
  border: 1px solid var(--cyan-border); border-radius: 3px;
  background: var(--cyan-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-links a:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(0,200,255,0.25); }

footer {
  background: var(--bg); border-top: 1px solid var(--cyan-border);
  padding: 1.5rem 3rem; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer p { font-size: 1rem; letter-spacing: 0.1em; color: #fff; }
footer a { color: #fff; text-decoration: none; transition: color 0.2s; font-size: 1rem; }
footer a:hover { color: var(--cyan); }

/* ── NARROW MOBILE ── */
@media (max-width: 500px) {
  section { padding: 4rem 1rem; }
  .robot-info { padding: 4rem 1rem; }
  .social-links { flex-direction: column; align-items: center; }
  .social-links a { width: 85%; text-align: center; }
  footer { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; }
  #gallery::before { font-size: 0.9rem; left: 1.2rem; letter-spacing: 0.2em; }
  .slide { padding: 4rem 1rem 3rem; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ── MATH GRAPH SLOT ── */
#math { background: var(--bg); }
.math-graph-slot {
  display: flex; align-items: center; justify-content: center;
}
.trajectory-graph {
  width: 100%;
  border: 1px solid var(--cyan-border);
  border-radius: 3px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,200,255,0.2));
}

/* ── FUTURE ── */
#future { background: var(--bg); }

.future-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.future-text p {
  font-size: 1.2rem; color: #fff;
  margin-bottom: 1.2rem; line-height: 1.85;
}

.future-slideshow {
  display: flex; flex-direction: column;
  gap: 1rem; align-items: center;
}

.future-slides {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border: 1px solid var(--cyan-border); border-radius: 3px;
  overflow: hidden; background: var(--bg-card);
}

.future-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s ease;
  pointer-events: none;
}
.future-slide.active { opacity: 1; pointer-events: auto; }

.future-slide .slide-placeholder {
  width: 100%; height: 100%; border-radius: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(135deg, #08131e 0%, #0b1d2e 100%);
}

.future-dots {
  display: flex; gap: 10px;
  align-items: center; justify-content: center;
}
.future-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.future-dot.lit { background: var(--cyan); transform: scale(1.5); }

/* 4 cards in a row on desktop */
.future-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* Mobile: stack everything */
@media (max-width: 700px) {
  .future-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .future-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .future-cards {
    grid-template-columns: 1fr;
  }
}

body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.03) 2px,rgba(0,0,0,0.03) 3px);
}
