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

:root {
  --bg:       #0d0d0d;
  --surface:  #141414;
  --surface2: #1c1c1c;
  --gold:     #c9a96e;
  --gold-lt:  #e2c99a;
  --white:    #f5f3ef;
  --muted:    #7a7672;
  --radius:   4px;
  --ease:     cubic-bezier(.22,.68,0,1.2);
  --font:     'Georgia', 'Times New Roman', serif;
  --sans:     'Helvetica Neue', Arial, sans-serif;
  --nav-h:    64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.section-label {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-sublabel {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.5rem 0 .75rem;
}

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background .4s, backdrop-filter .4s;
}
#navbar.scrolled {
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 94vw);
  margin-inline: auto;
}
.nav-logo {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .18em;
  color: var(--gold);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .75;
  transition: opacity .25s, color .25s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #0d0d0d 40%, #1a1208 100%);
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 30%, rgba(201,169,110,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,169,110,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
#hero h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 2.4rem;
}
.btn-hero {
  display: inline-block;
  padding: .75rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-hero:hover { background: var(--gold); color: var(--bg); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.1); }
}

/* ── Sections shared ────────────────────────────────────────── */
section { padding: 7rem 0; }
section:nth-child(even) { background: var(--surface); }

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 2.2rem;
}

/* ── About ──────────────────────────────────────────────────── */
.about-text {
  max-width: 680px;
  font-size: 1.05rem;
  color: rgba(245,243,239,.8);
  margin-bottom: 2rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.tags span {
  padding: .35rem .9rem;
  border: 1px solid rgba(201,169,110,.35);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  border-radius: var(--radius);
}

/* ── Stats ──────────────────────────────────────────────────── */
#stats { padding: 4rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  background: var(--surface2);
  text-align: center;
}
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 0 0 3rem 1.8rem;
}
.timeline-dot {
  position: absolute;
  left: -4.5px;
  top: .4rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.2);
}
.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-top: .25rem;
}
.timeline-meta time {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--gold);
}
.timeline-location {
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--muted);
}
.timeline-body h3 {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .2rem;
}
.timeline-company {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.timeline-body p {
  font-size: .9rem;
  color: rgba(245,243,239,.7);
}

/* ── Education ──────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.edu-card {
  padding: 2rem;
  border: 1px solid rgba(201,169,110,.18);
  border-radius: var(--radius);
  background: var(--surface2);
  transition: border-color .25s;
}
.edu-card:hover { border-color: rgba(201,169,110,.5); }
.edu-year {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .7rem;
}
.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .35rem;
}
.edu-school {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .5rem;
}
.edu-note {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--gold-lt);
  margin-bottom: .6rem;
}
.edu-thesis {
  font-size: .85rem;
  color: rgba(245,243,239,.65);
}
.edu-thesis a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,169,110,.45);
  transition: color .2s, text-decoration-color .2s;
}
.edu-thesis a:hover {
  color: #e8c97a;
  text-decoration-color: rgba(201,169,110,.9);
}

.cert-row {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--sans);
  font-size: .78rem;
  color: rgba(245,243,239,.7);
}
.cert-icon {
  color: var(--gold);
  font-size: .5rem;
}

/* ── Featured ───────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.featured-card {
  display: block;
  padding: 2.2rem;
  border: 1px solid rgba(201,169,110,.12);
  background: var(--surface2);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
  cursor: pointer;
  text-decoration: none;
}
.featured-card:hover {
  border-color: rgba(201,169,110,.45);
  transform: translateY(-4px);
}
.featured-index {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: .8rem;
}
.featured-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .7rem;
}
.featured-card p {
  font-size: .88rem;
  color: rgba(245,243,239,.65);
}

/* ── Skills ─────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 3rem;
  margin-bottom: 3rem;
}
.skill-bar-wrap span {
  display: block;
  font-family: var(--sans);
  font-size: .73rem;
  letter-spacing: .06em;
  color: rgba(245,243,239,.8);
  margin-bottom: .4rem;
}
.skill-bar {
  height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 1px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--gold), var(--gold-lt));
  border-radius: 1px;
  transition: width 1.2s var(--ease);
}

.lang-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.lang-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.lang-name {
  font-size: 1rem;
  color: var(--white);
}
.lang-level {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Contact ────────────────────────────────────────────────── */
#contact {
  text-align: center;
  background: linear-gradient(160deg, #0d0d0d 0%, #1a1208 100%);
}
.contact-inner { padding: 2rem 0; }
.contact-sub {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
  font-family: var(--sans);
}
.btn-contact {
  display: inline-block;
  padding: .85rem 2.8rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .25s, transform .2s;
}
.btn-contact:hover { background: var(--gold-lt); transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  padding: 1.8rem 0;
  border-top: 1px solid rgba(201,169,110,.12);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--gold);
}
.footer-copy {
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--muted);
}

/* ── Mobile nav overlay ─────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(13,13,13,.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 1.1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .timeline-item { grid-template-columns: 1fr; gap: .4rem; }
  .timeline-meta { padding-top: 0; }

  .edu-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 1.2rem; }
  .timeline-item { padding-left: 1.2rem; }
}
