/* v6 — Cosmic (starfield) */
:root {
  --bg: #05010f;
  --text: #eef1ff;
  --dim: #aab0d0;
  --faint: #6b7196;
  --panel: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --orange: #ff9e5e;
  --cyan: #6ee7ff;
  --violet: #a78bfa;
  --pink: #f472b6;
  --head: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 158, 94, 0.4); }

#stars { position: fixed; inset: 0; z-index: -2; }
.nebula {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(700px 500px at 80% 10%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(600px 500px at 15% 30%, rgba(110, 231, 255, 0.12), transparent 60%),
    radial-gradient(700px 600px at 55% 85%, rgba(244, 114, 182, 0.12), transparent 60%);
}

.glow { color: var(--orange); text-shadow: 0 0 18px rgba(255, 158, 94, 0.7); }
.glow-text {
  background: linear-gradient(120deg, #ff9e5e, #f472b6 50%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; padding: 16px 30px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 1, 15, 0.6); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav__brand { font-family: var(--head); font-weight: 700; font-size: 20px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { font-size: 14.5px; color: var(--dim); transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { font-size: 14px; color: #fff; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid var(--border); transition: background 0.2s; }
.nav__cta:hover { background: rgba(255,255,255,0.15); }

/* hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 30px 80px; max-width: 1200px; margin-inline: auto; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; width: 100%; }
.hero__eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--orange);
  letter-spacing: 1px; margin-bottom: 26px;
}
.hero h1 { font-family: var(--head); font-size: clamp(3rem, 7.5vw, 5.8rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero__sub { color: var(--dim); max-width: 480px; margin-bottom: 34px; font-size: 1.06rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: linear-gradient(120deg, #ff9e5e, #f472b6); color: #1a0b00;
  box-shadow: 0 10px 32px rgba(244, 114, 182, 0.35); transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(244, 114, 182, 0.5); }
.btn--ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.13); }

.hero__media { position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(167,139,250,0.35); animation: spin 40s linear infinite; }
.orbit--o { width: 420px; height: 420px; }
.orbit--i { width: 320px; height: 320px; animation-direction: reverse; animation-duration: 28s; border-color: rgba(110,231,255,0.3); }
.hero__planet {
  width: clamp(240px, 30vw, 340px); aspect-ratio: 1; border-radius: 50%;
  padding: 8px; background: conic-gradient(#ff9e5e, #f472b6, #a78bfa, #6ee7ff, #ff9e5e);
  animation: spin 14s linear infinite;
}
.hero__planet img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid #05010f; }
.moon {
  position: absolute; font-family: var(--mono); font-size: 12.5px; padding: 8px 14px;
  border-radius: 999px; background: rgba(5,1,15,0.7); border: 1px solid var(--border);
  color: var(--dim); backdrop-filter: blur(6px); animation: float 6s ease-in-out infinite;
}
.moon--a { top: 6%; right: 6%; }
.moon--b { bottom: 24%; left: -6%; animation-delay: -2s; }
.moon--c { bottom: 4%; right: 18%; animation-delay: -4s; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 1px;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.stat { text-align: center; padding: 26px 12px; }
.stat__num { font-family: var(--head); font-size: 2.6rem; font-weight: 700; }
.stat__label { display: block; color: var(--dim); font-size: 14px; margin-top: 6px; }

/* panels / sections */
.sec { max-width: 1200px; margin-inline: auto; padding: 90px 30px; }
.sec__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.sec__num { font-family: var(--mono); color: var(--orange); font-size: 15px; }
.sec__head h2 { font-family: var(--head); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 32px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.panel:hover { border-color: rgba(167, 139, 250, 0.4); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.4); }
.lead { font-family: var(--head); font-size: 1.4rem; line-height: 1.4; margin-bottom: 24px; max-width: 760px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--dim); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.skill h3 { font-family: var(--head); font-size: 1.15rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--dim); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.exp:hover { transform: translateX(8px); }
.exp__period { font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.exp h3 { font-family: var(--head); font-size: 1.3rem; margin: 6px 0 12px; }
.exp h3 em { font-weight: 400; color: var(--faint); font-style: normal; font-size: 0.8em; }
.exp p { color: var(--dim); margin-bottom: 16px; }

.proj { display: flex; flex-direction: column; gap: 10px; }
.proj__icon { font-size: 1.8rem; }
.proj h3 { font-family: var(--head); font-size: 1.2rem; }
.proj p { color: var(--dim); font-size: 0.94rem; flex-grow: 1; }
.proj__tag { color: var(--faint); font-size: 12.5px; font-family: var(--mono); }

.edu__year { font-family: var(--mono); font-size: 13px; color: var(--pink); }
.edu h3, .panel h3 { font-family: var(--head); font-size: 1.15rem; margin: 8px 0 10px; }
.panel p { color: var(--dim); }
.list { list-style: none; }
.list li { color: var(--dim); padding: 4px 0; }
.list li::before { content: "✦ "; color: var(--violet); }

.contact { text-align: center; }
.contact h3 { font-family: var(--head); font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: 30px; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
.contact__links a {
  padding: 12px 20px; border-radius: 14px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); color: var(--dim); transition: all 0.25s;
}
.contact__links a:hover { color: #fff; border-color: rgba(255, 158, 94, 0.6); transform: translateY(-3px); }

.footer { display: flex; justify-content: space-between; padding: 30px; max-width: 1200px; margin-inline: auto; color: var(--faint); font-size: 14px; border-top: 1px solid var(--border); }
.footer a:hover { color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); transition-delay: calc(var(--delay,0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .grid--3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
