:root {
  --bg: #0a0e17;
  --bg-alt: #0f1523;
  --surface: #141b2d;
  --border: #1f2a40;
  --text: #e6ecf5;
  --text-dim: #9aa7bd;
  --accent: #64ffda;
  --accent-2: #7aa2ff;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --radius: 14px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --border: #dfe6f0;
  --text: #12203a;
  --text-dim: #566985;
  --accent: #0d9488;
  --accent-2: #3b5bdb;
  --shadow: 0 10px 30px -14px rgba(20, 40, 80, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.85em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #04121a;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 4px 10px;
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover {
  color: var(--accent);
}
.nav__toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease;
}
.nav__toggle:hover {
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: clamp(80px, 15vh, 160px) 0 80px;
}
.hero__eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.hero__name {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.hero__role {
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: -0.5px;
}
.hero__role .mono {
  color: var(--text);
  font-weight: 700;
}
.hero__tagline {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 24px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
}
.stat__label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--accent);
  color: #04121a;
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--lg {
  padding: 15px 34px;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}
.section__title--center {
  justify-content: center;
  text-align: center;
}
.section__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Timeline / jobs */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.job:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.job__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.job__title {
  font-size: 1.2rem;
  font-weight: 700;
}
.job__at {
  color: var(--accent);
  font-weight: 600;
}
.job__meta {
  color: var(--text-dim);
}
.job__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job__points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
}
.job__points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.job__points strong {
  color: var(--text);
  font-weight: 600;
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.skills__group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skills__group h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--accent-2);
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 5px 10px;
  border-radius: 8px;
}

/* Education grid */
.edu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.card__meta {
  color: var(--text-dim);
  margin-bottom: 8px;
}
.card p {
  color: var(--text-dim);
}
.card p strong {
  color: var(--text);
}
.card--mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card--mini h3 {
  margin-bottom: 0;
}
.card--mini p {
  color: var(--accent);
}

/* Contact */
.contact__inner {
  text-align: center;
  max-width: 640px;
}
.contact__text {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.contact__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.contact__links a:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-dim);
}

/* Reveal animation */
.section, .hero__inner > * {
  opacity: 1;
}
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__stats {
    gap: 28px;
  }
}
