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

:root {
  --navy:    #0a1628;
  --navy-mid:#112240;
  --accent:  #2563eb;
  --accent-light: #3b82f6;
  --gold:    #c9a84c;
  --white:   #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --text:    #1e293b;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --nav-h: 68px;
  --section-pad: 100px;
  --radius: 12px;
  --transition: 0.25s ease;
}

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

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

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

p { color: var(--gray-700); }
p + p { margin-top: 1rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.0);
  backdrop-filter: blur(0px);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

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

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--white); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(10,22,40,0.97);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile.open { display: flex; }

.nav__mobile-link {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover { color: var(--white); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a6b 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.hero__content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__md {
  color: var(--gold);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__subtitle strong {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Decoration circles */
.hero__decoration { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero__circle--1 {
  width: 600px; height: 600px;
  right: -150px; top: -150px;
}
.hero__circle--2 {
  width: 900px; height: 900px;
  right: -350px; top: -350px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ─── Section Shared ────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 2rem;
}

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

.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about__photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__photo-wrap {
  width: 240px;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,22,40,0.18);
  border: 3px solid var(--white);
  background: var(--gray-300);
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% top;
  display: block;
}

.about__body p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about__stats {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.stat__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ─── Experience / Timeline ─────────────────────────────────────────────────── */
.experience {
  background: var(--white);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--gray-300);
  margin-left: 12px;
}

.timeline__item {
  position: relative;
  padding: 0 0 3rem 2.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline__meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.timeline__org {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.timeline__desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

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

.projects .section__label { color: var(--gold); }
.projects .section__heading { color: var(--white); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: color var(--transition);
}
.card__link:hover { color: var(--white); }

/* ─── Publications ──────────────────────────────────────────────────────────── */
.pub__sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  margin-top: -1rem;
}

.pub__grid {
  grid-template-columns: repeat(3, 1fr);
}

.pub__card {
  display: flex;
  flex-direction: column;
}

.pub__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pub__cite {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

.pub__card .card__title {
  font-size: 0.975rem;
  line-height: 1.5;
  flex: 1;
}

.pub__authors {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  margin-top: auto;
  flex: 1;
}

.pub__footer {
  margin-top: 2.5rem;
  text-align: center;
}

.pub__scholar-btn {
  display: inline-block;
  font-size: 0.875rem;
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */
.contact {
  background: var(--off-white);
}

.contact__sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 3rem;
}

.contact__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.contact__card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.contact__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact__card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.contact__card-handle {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 28px 0;
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo-col {
    align-items: flex-start;
  }
  .about__stats {
    flex-direction: row;
  }
  .stat { flex: 1; }

  .projects__grid,
  .pub__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  :root { --section-pad: 70px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .about__stats {
    flex-direction: column;
  }

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

  .pub__card-header {
    flex-wrap: wrap;
  }

  .about__stats {
    flex-direction: column;
  }

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

  .hero__cta { flex-direction: column; }
  .btn { text-align: center; }
}
