* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05060a;
  --bg2: #0f1222;
  --card: rgba(14, 20, 40, 0.78);
  --line: rgba(147, 170, 255, 0.2);
  --text: #f4f6ff;
  --muted: #9ca7c7;
  --accent: #71f0cf;
  --accent2: #8ba5ff;
}

html, body { height: 100%; scroll-behavior: smooth; }

body {
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(113, 240, 207, 0.12), transparent 38%),
    radial-gradient(circle at 88% 74%, rgba(139, 165, 255, 0.14), transparent 35%),
    var(--bg);
  color: var(--text);
  overflow: hidden;
}

#journey {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.panel {
  min-height: 100vh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 20%) var(--my, 30%), rgba(113, 240, 207, 0.12), transparent 35%),
    radial-gradient(circle at 80% 65%, rgba(139, 165, 255, 0.1), transparent 38%);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: drift 14s linear infinite;
}

.panel.is-active::before { opacity: 1; }

.wrap { width: min(1160px, 92vw); }

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.label {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.hero-main, .hero-spotlight, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  transform: translateY(8px) scale(0.995);
  transition: transform 0.45s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.panel.is-active .hero-main,
.panel.is-active .hero-spotlight,
.panel.is-active .card {
  transform: translateY(0) scale(1);
  border-color: rgba(147, 170, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero-main h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.9;
}

.hero-main h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  margin: 0.4rem 0 1rem;
  color: var(--accent2);
}

.hero-main p { color: var(--muted); line-height: 1.8; max-width: 65ch; }

.hero-spotlight {
  position: relative;
  overflow: hidden;
}

.hero-spotlight::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 240, 207, 0.26), transparent 70%);
  filter: blur(2px);
}

.spotlight-kicker {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent2);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-spotlight h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.hero-spotlight > p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.spotlight-metrics div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 28, 0.62);
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.spotlight-metrics span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
}

.spotlight-metrics small {
  font-size: 0.72rem;
  color: var(--muted);
}

.spotlight-strip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7fff5;
  border: 1px solid rgba(113, 240, 207, 0.35);
  background: rgba(113, 240, 207, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #001711;
}

.btn.alt {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card h3 { margin-bottom: 0.8rem; font-size: 1.4rem; }
.card p { color: var(--muted); line-height: 1.8; }

.timeline-item {
  display: grid;
  gap: 0.2rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg2);
}
.timeline-item span { color: var(--muted); font-size: 0.92rem; }

.project-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.project-left, .project-right {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.panel.is-active .project-left,
.panel.is-active .project-right,
.panel.is-active .skill-box {
  border-color: rgba(147, 170, 255, 0.38);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.project-index {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.project-domain {
  margin: 0.45rem 0 0.6rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.project-left h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.project-sub {
  margin: 0.6rem 0 0.9rem;
  color: var(--accent2);
  font-size: 0.95rem;
}

.project-left p, .impact-list li { color: var(--muted); line-height: 1.8; }

.impact-list {
  padding-left: 1rem;
  display: grid;
  gap: 0.55rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}

.skills-head { margin-bottom: 0.9rem; }
.skills-head h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}
.skills-head p { color: var(--muted); margin-top: 0.35rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.skill-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: var(--card);
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.skill-box h4 { margin-bottom: 0.35rem; }
.skill-box p { color: var(--muted); line-height: 1.65; font-size: 0.92rem; }

.center { text-align: center; }
.center p { max-width: 700px; margin: 0 auto; }
.center .cta-row { justify-content: center; }

#dots {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  gap: 0.45rem;
}

#dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #3a4676;
  cursor: pointer;
}

#dots button.active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(113, 240, 207, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% { transform: translateX(-2%) translateY(0) rotate(0deg); }
  50% { transform: translateX(2%) translateY(2%) rotate(180deg); }
  100% { transform: translateX(-2%) translateY(0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .panel::before { animation: none; }
  .reveal { transition: none; transform: none; opacity: 1; }
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .hero-layout, .split, .project-layout, .skills-grid { grid-template-columns: 1fr; }
  #dots { display: none; }
}
