/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #FFFFFF;
  --bg-subtle:  #F9F9F8;
  --border:     #EBEBEA;
  --text:       #111110;
  --text-muted: #6F6D69;
  --text-light: #B5B3B0;

  --purple:     #4C1D95;
  --purple-dim: #EDE9FE;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);

  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;

  --nav-h: 60px;
  --max-w: 720px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section { padding: 88px 0; }

/* ── Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Section labels ───────────────────────────────────────── */
.section__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  margin-bottom: 36px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.88; }

.btn--primary { background: var(--text); color: var(--bg); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); opacity: 1; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav__logo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }

.nav__resume {
  font-family: var(--font-mono);
  font-size: 12px !important;
  color: var(--purple) !important;
  border: 1px solid var(--purple-dim) !important;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}
.nav__resume:hover { background: var(--purple-dim); opacity: 1 !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px 28px;
  z-index: 99;
  opacity: 0;
  transform: translateY(-6px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}
.nav__drawer.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.nav__drawer ul { display: flex; flex-direction: column; gap: 16px; }
.nav__drawer a { font-size: 15px; color: var(--text); }

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: block; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.header-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}

.header-page__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 52px;
  align-items: center;
}

.header-page__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid var(--border);
}

.header-page__greeting {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.header-page__name {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 10px;
  color: var(--purple);
}

.header-page__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.header-page__bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 24px;
}

.header-page__currently {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.header-page__currently div {
  font-size: 13px;
  color: var(--text-muted);
}

.header-page__currently span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-right: 10px;
}

.header-page__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-page__socials {
  display: flex;
  gap: 16px;
}

.header-page__socials a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.header-page__socials a:hover { color: var(--text); }

@media (max-width: 600px) {
  .header-page__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .header-page__photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .header-page__bio { max-width: 100%; }
  .header-page__actions { justify-content: center; }
  .header-page__socials { justify-content: center; }
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

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

/* ── About ────────────────────────────────────────────────── */
.about { background: var(--bg); }

.about__text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 580px;
}
.about__text p:last-child { margin-bottom: 0; }

/* ── Skills ───────────────────────────────────────────────── */
.skills { background: var(--bg-subtle); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skills__group {
  background: var(--bg);
  padding: 28px 24px 32px;
}

.skills__group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  display: block;
  margin-bottom: 6px;
}

.skills__group h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.skills__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills__list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills__sub-item {
  font-size: 12px;
  color: var(--text-light);
  padding-left: 16px;
}

.skills__sub-item::before {
  display: none;
}

.skills__list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  opacity: 0.5;
}

@media (max-width: 640px) {
  .skills__grid { grid-template-columns: 1fr; }
}

/* ── Projects ─────────────────────────────────────────────── */
.projects { background: var(--bg); }

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

.project-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  transition: background 0.15s;
}
.project-card:first-child { border-top: 1px solid var(--border); }

.project-card__left { min-width: 0; }

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-card__domain {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}

.project-card__year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light);
}

.project-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.project-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-card__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.project-card__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.project-card__link:hover { color: var(--text); }
.project-card__link svg { opacity: 0.6; }

@media (max-width: 500px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-card__links {
    flex-direction: row;
    align-items: center;
  }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact { background: var(--bg-subtle); }

.contact__body {
  max-width: 480px;
}

.contact__body p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple);
  border-bottom: 1px solid var(--purple-dim);
  padding-bottom: 2px;
  margin-bottom: 28px;
  transition: border-color 0.15s;
}
.contact__email:hover { border-color: var(--purple); }

.contact__icons {
  display: flex;
  gap: 12px;
}

.contact__icon-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  transition: color 0.15s, border-color 0.15s;
}
.contact__icon-link:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light);
}
.footer a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light);
  transition: color 0.15s;
}
.footer a:hover { color: var(--text-muted); }

/* ── Stagger ──────────────────────────────────────────────── */
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }
