:root {
  --bg: #0d0e17;
  --bg-alt: #12131f;
  --surface: #171826;
  --surface-2: #1d1f30;
  --border: rgba(160, 150, 220, 0.14);

  --indigo: #6366f1;
  --indigo-soft: #8385f5;
  --lavender: #b8a6ff;
  --lavender-soft: #d8cdff;
  --teal: #2dd4bf;
  --teal-soft: #5eead4;

  --text: #eae8f5;
  --text-dim: #a7a4c2;
  --text-faint: #706d8c;

  --radius: 16px;
  --max-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--indigo);
  color: #fff;
}

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(650px circle at 12% -5%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(700px circle at 90% 10%, rgba(45, 212, 191, 0.14), transparent 55%),
    radial-gradient(900px circle at 50% 100%, rgba(184, 166, 255, 0.10), transparent 60%),
    var(--bg);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(13, 14, 23, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--lavender-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--teal-soft); }

.nav-cv {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--indigo-soft);
  color: var(--lavender-soft);
  background: rgba(99, 102, 241, 0.08);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-cv:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--lavender);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 28px 60px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-contact { justify-content: center; }
  .hero-actions { justify-content: center; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-soft);
  margin: 0 0 14px;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 20px;
  background: linear-gradient(120deg, var(--lavender-soft) 0%, var(--text) 45%, var(--teal-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-sub span {
  color: var(--lavender-soft);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--indigo), var(--teal));
  color: #060712;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn-ghost:hover {
  border-color: var(--lavender);
  color: var(--lavender-soft);
}

.hero-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--text-faint);
}

.hero-contact a:hover { color: var(--teal-soft); }
.hero-contact .dot { color: var(--text-faint); }

.hero-photo { display: flex; justify-content: center; }

.photo-frame {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 748 / 936;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(184,166,255,0.05), 0 30px 60px -20px rgba(45, 212, 191, 0.25), 0 20px 50px -25px rgba(99,102,241,0.35);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(99,102,241,0.18), transparent 40%, rgba(45,212,191,0.14));
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 999px;
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto;
  border-radius: 999px;
  background: var(--teal-soft);
  animation: scrollcue 1.8s infinite ease-in-out;
}

@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Summary band */
.summary {
  padding: 50px 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.summary p {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-dim);
}

/* Section title */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 48px;
  color: var(--text);
}

.section-title .tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--indigo-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(99,102,241,0.08);
}

section { padding: 88px 0; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}

.tl-item {
  position: relative;
  padding-bottom: 52px;
}

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

.tl-marker {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15), 0 0 20px rgba(45,212,191,0.5);
}

.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tl-content:hover {
  border-color: rgba(184,166,255,0.3);
  transform: translateY(-2px);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}

.tl-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--lavender-soft);
}

.tl-date {
  font-size: 0.85rem;
  color: var(--teal-soft);
  font-weight: 600;
  white-space: nowrap;
}

.tl-org {
  margin: 4px 0 14px;
  color: var(--text-faint);
  font-size: 0.92rem;
  font-weight: 600;
}

.tl-role {
  color: var(--text-dim);
  margin: 0 0 14px;
}

.tl-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
}

.tl-content li { margin-bottom: 8px; }
.tl-content li:last-child { margin-bottom: 0; }
.tl-content li::marker { color: var(--indigo-soft); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,0.35);
  box-shadow: 0 16px 40px -20px rgba(45,212,191,0.25);
}

.skill-card h4 {
  margin: 0 0 10px;
  color: var(--teal-soft);
  font-size: 1rem;
}

.skill-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* Education */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  border-left: 3px solid var(--indigo-soft);
}

.edu-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
}

.edu-head h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--lavender-soft);
}

.edu-item ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
}
.edu-item li::marker { color: var(--indigo-soft); }

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.awards-col h4 {
  color: var(--teal-soft);
  margin: 0 0 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.awards-col h4.mt { margin-top: 28px; }

.inline-link {
  color: var(--teal-soft);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.inline-link:hover {
  color: var(--lavender-soft);
  border-color: currentColor;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plain-list li {
  color: var(--text-dim);
  font-size: 0.94rem;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.plain-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.plain-list span {
  color: var(--indigo-soft);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Contact */
.contact-lede {
  color: var(--text-dim);
  margin: -24px 0 36px;
  max-width: 60ch;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--lavender);
}

.cc-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cc-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lavender-soft);
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
