:root {
  --bg:          #0f1117;
  --bg-alt:      #13161f;
  --surface:     #1a1f2e;
  --border:      rgba(255, 255, 255, 0.07);
  --accent:      #2dd4bf;
  --accent-dim:  rgba(45, 212, 191, 0.1);
  --text:        #e2e8f0;
  --text-muted:  #8892a4;
  --text-subtle: #4a5568;
  --nav-h:       66px;
  --radius:      10px;
  --max-w:       900px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ──────────────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

#nav.scrolled { border-bottom-color: var(--border); }

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

.nav-logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-apps {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 24px 80px;
  position: relative;
  background-image:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(45, 212, 191, 0.08) 0%, transparent 65%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 100% 100%, 32px 32px;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.hero-title {
  font-size: clamp(1.05rem, 2.5vw, 1.375rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-subtle);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-accent {
  background: var(--accent);
  color: #0c1012;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #5eead4;
  border-color: #5eead4;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.3);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.btn-lg { padding: 14px 32px; font-size: 0.9375rem; }

/* ── Sections ─────────────────────────────────────────────────────── */

.section { padding: 88px 24px; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

/* ── About ────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.meta-item:first-child { padding-top: 0; }
.meta-item:last-child { border-bottom: none; padding-bottom: 0; }

.meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-item > span:last-child {
  font-size: 0.875rem;
  color: var(--text);
}

/* ── Timeline ─────────────────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  transform: translateX(0.5px);
}

.timeline-item--earlier .timeline-dot {
  border-color: rgba(255,255,255,0.15);
  background: var(--bg-alt);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.15s;
}

.timeline-card:hover { border-color: rgba(45, 212, 191, 0.2); }

.timeline-item--earlier .timeline-card {
  background: transparent;
  border-color: transparent;
  padding: 8px 0;
  border-radius: 0;
}

.timeline-item--earlier .timeline-card:hover { border-color: transparent; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.job-company {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.job-period {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-subtle);
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

.job-location {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.job-bullets {
  margin: 12px 0 0 0;
  padding-left: 18px;
}

.job-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.job-bullets li:last-child { margin-bottom: 0; }

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ── Tags ─────────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Skills ───────────────────────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.skill-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Education ────────────────────────────────────────────────────── */

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.edu-school {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.edu-orgs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Contact ──────────────────────────────────────────────────────── */

.contact-wrap { text-align: center; }

.contact-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-portal {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-portal:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(15, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 24px;
    font-size: 0.9375rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .job-header { flex-direction: column; gap: 2px; }

  .edu-card { flex-direction: column; align-items: flex-start; }

  .section { padding: 64px 20px; }

  .timeline { padding-left: 24px; }

  .timeline-dot { left: -24px; }

  .hero { padding-bottom: 64px; }
}
