:root {
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --brand-soft: #ccfbf1;
  --ink: #172a2a;
  --muted: #617173;
  --paper: #ffffff;
  --surface: #f3f7f6;
  --line: #d9e6e3;
  --shadow: 0 18px 45px rgba(15, 76, 70, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7fbfa 0%, var(--surface) 42%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 76, 70, 0.12);
  backdrop-filter: blur(16px);
}

.navbar-brand,
.nav-link {
  color: var(--brand-dark);
}

.nav-link {
  font-weight: 650;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 5rem;
  color: white;
  background:
    linear-gradient(135deg, rgba(19, 78, 74, 0.94), rgba(15, 118, 110, 0.88)),
    url("../images/og-image.jpg") center / cover;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -6rem -12rem auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: rgba(204, 251, 241, 0.16);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: var(--brand-soft);
}

h1,
.section-title {
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.25rem, 11vw, 6.8rem);
  font-weight: 850;
  line-height: 0.92;
}

.hero-copy {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card {
  display: grid;
  gap: 1.4rem;
  max-width: 24rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.profile-photo {
  width: min(100%, 18rem);
  aspect-ratio: 4 / 5;
  height: auto;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.22);
}

.section-pad {
  padding: 5rem 0;
}

.resume-card {
  border: 1px solid rgba(15, 76, 70, 0.1);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--brand-dark);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 820;
  line-height: 1.02;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
}

.detail-list i {
  color: var(--brand);
  margin-right: 0.35rem;
}

.timeline-note {
  color: var(--muted);
  font-weight: 700;
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.25rem 2.5rem;
  border-left: 2px solid var(--line);
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.timeline-item h3,
.education-grid h3 {
  margin-bottom: 0.15rem;
  color: #173534;
  font-size: 1.15rem;
  font-weight: 800;
}

.timeline-item p:last-child,
.education-grid p:last-child {
  margin-bottom: 0;
}

.org {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-weight: 700;
}

.research-band {
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.34), rgba(255, 255, 255, 0.88));
}

.publication-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 76, 70, 0.12);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15, 76, 70, 0.08);
}

.publication-accordion .accordion-button {
  color: var(--brand-dark);
  background: white;
  font-weight: 800;
}

.publication-accordion .accordion-button:not(.collapsed) {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: none;
}

.publication-accordion .accordion-body p {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.publication-accordion .accordion-body p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.education-grid {
  display: grid;
  gap: 1.25rem;
}

.education-grid > div {
  padding-left: 1rem;
  border-left: 4px solid var(--brand);
}

.education-grid span {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
}

.accent-card {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.accent-card .section-kicker,
.accent-card p {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 2rem 0;
  color: white;
  background: var(--brand-dark);
}

.site-footer a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 7.5rem 0 4rem;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 3.5rem 0;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .hero-card {
    border-radius: 1rem;
  }
}
