/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #2c2c2c;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #1a5c5c;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4e4e0;
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #2c2c2c;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c2c2c;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #1a5c5c;
  text-decoration: none;
}

.nav-link.active {
  color: #1a5c5c;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.75rem 0;
  border-bottom: 1px solid #e4e4e0;
}

.section:last-of-type {
  border-bottom: none;
}

.section-heading {
  font-weight: 300;
  font-size: 1.5rem;
  color: #1a5c5c;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.sub-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  margin: 2rem 0 0.9rem;
}

.sub-label:first-of-type {
  margin-top: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

.about-photo-col {
  flex: 0 0 230px;
  width: 230px;
  text-align: center;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
}

.profile-name {
  font-weight: 500;
  font-size: 1.3rem;
  color: #1a5c5c;
  margin-bottom: 0.35rem;
}

.profile-role,
.profile-institution {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin: 0.15rem 0;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c2c2c;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  color: #1a5c5c;
  border-color: #1a5c5c;
  text-decoration: none;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.about-text-col {
  flex: 1;
  min-width: 0;
}

.welcome-heading {
  font-weight: 300;
  font-size: 2.2rem;
  color: #1a5c5c;
  margin-bottom: 1.25rem;
}

.bio {
  margin: 0 0 2rem;
  color: #2c2c2c;
}

.about-columns {
  display: flex;
  gap: 3rem;
}

.about-col {
  flex: 1;
  min-width: 0;
}

.about-col-heading {
  font-weight: 500;
  font-size: 0.95rem;
  color: #2c2c2c;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.interest-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.interest-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 6px;
  background: #1a5c5c;
}

.edu-entry {
  margin: 0 0 0.9rem;
}

.edu-degree {
  display: block;
  font-size: 0.92rem;
  color: #2c2c2c;
}

.edu-school {
  display: block;
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.15rem;
}

/* ---------- Research ---------- */
.pub-entry {
  margin-bottom: 1.5rem;
}

.pub-title {
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.pub-authors {
  color: #2c2c2c;
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
}

.pub-venue {
  color: #666;
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Teaching ---------- */
.teaching-subtitle {
  color: #666;
  font-size: 0.92rem;
  margin: -0.75rem 0 1.75rem;
}

.teaching-row {
  padding: 1.1rem 0;
  border-top: 1px solid #e4e4e0;
}

.teaching-row:last-child {
  border-bottom: 1px solid #e4e4e0;
}

.teaching-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.course-name {
  font-weight: 500;
}

.course-term {
  color: #666;
  font-size: 0.88rem;
  white-space: nowrap;
  text-align: right;
}

.course-prof {
  color: #666;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.teaching-note {
  margin-top: 1.75rem;
  color: #2c2c2c;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.75rem 1rem;
  border-top: 1px solid #e4e4e0;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .nav-inner {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.1rem;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .content-wrap {
    padding: 0 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .about-photo-col {
    width: 100%;
    flex: none;
  }

  .about-text-col {
    width: 100%;
  }

  .welcome-heading {
    font-size: 1.9rem;
    text-align: center;
  }

  .bio {
    text-align: left;
  }

  .about-columns {
    flex-direction: column;
    gap: 1.75rem;
  }

  .teaching-row-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 375px) {
  .nav-links {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }
}
