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

:root {
  --navy:   #1a2744;
  --blue:   #2563a8;
  --light:  #f5f7fb;
  --white:  #ffffff;
  --gray:   #6b7280;
  --border: #e2e8f0;
  --text:   #1e293b;
  --accent: #3b82f6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 40, 0.68);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-sub {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.65);
}

.hero-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-links a {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.25);
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.2s;
}

.hero-links a:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* ── Sections ── */
section { padding: 5rem 0; }
.alt-bg { background: var(--light); }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.8;
}

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

.info-block { margin-bottom: 2rem; }
.info-block:last-child { margin-bottom: 0; }

.info-block h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 1rem;
}

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-list li {
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}

.edu-list .date {
  color: var(--gray);
  font-size: 0.8rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--navy);
}

/* ── Research ── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.project-org {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.project-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #374151;
}

/* ── Publications ── */
.section-note {
  margin-bottom: 2rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1.5rem;
}

.pub-list li { padding-left: 0.5rem; }

.pub-authors {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0.2rem;
}

.pub-title {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.pub-venue {
  font-size: 0.825rem;
  color: var(--gray);
}

.pub-note {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-style: italic;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

/* ── Teaching ── */
.teach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.teach-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  background: var(--white);
}

.teach-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.teach-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.teach-term {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.teach-card p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #4b5563;
}

/* ── Awards ── */
.award-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.award-list li {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.award-list li:last-child { border-bottom: none; }

.award-year {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  width: 40px;
  padding-top: 0.1rem;
}

.award-body strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.award-body p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid,
  .project-grid,
  .teach-grid {
    grid-template-columns: 1fr;
  }

  .nav-links { gap: 1.2rem; }

  h2 { font-size: 1.6rem; }

  .award-list li { flex-direction: column; gap: 0.5rem; }
}
