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

:root {
  --teal: #2A7F7F;
  --teal-dark: #1F6060;
  --coral: #D4705A;
  --coral-dark: #B85A46;
  --bg: #FAFAFA;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral);
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--teal-dark);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 0 2rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--coral);
}

.nav-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

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

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a.active {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 35vh;
  min-height: 220px;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 64px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Page hero (same size as home) */
.hero-page .hero-content h1 {
  font-size: 2.5rem;
}

/* ===== Sections ===== */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ===== Home: Bio ===== */
.bio-section {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.bio-photo {
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.bio-text h2 {
  color: var(--coral);
}

.bio-text p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.bio-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-link {
  color: var(--teal);
  font-weight: 600;
  padding: 0;
  font-size: 0.95rem;
}

.btn-link:hover {
  color: var(--coral);
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.contact-email {
  font-size: 1.05rem;
  color: var(--teal);
  font-weight: 500;
}

.contact-email:hover {
  color: var(--coral);
}

/* ===== Research Page ===== */
.research-area {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.research-area h3 {
  color: var(--teal-dark);
}

.research-area p {
  color: var(--text-light);
  margin-bottom: 0;
}

.positions-timeline {
  margin-top: 3rem;
}

.position-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.position-item:last-child {
  border-bottom: none;
}

.position-date {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coral);
  padding-top: 0.15rem;
}

.position-info h3 {
  margin-bottom: 0.25rem;
}

.position-info .org {
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.position-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.position-bullets {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.position-bullets li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.research-themes {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.research-themes li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Publications ===== */
.pub-item {
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pub-item h3 {
  color: var(--teal-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pub-item .pub-authors {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.pub-item .pub-venue {
  font-size: 0.9rem;
  color: var(--coral);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.pub-item .btn {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

/* ===== CV Page ===== */
.cv-html {
  text-align: left;
}

.cv-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--teal);
}

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section-title {
  color: var(--teal);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.25rem;
}

.cv-entry {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.cv-date {
  flex-shrink: 0;
  width: 130px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coral);
  padding-top: 0.1rem;
}

.cv-detail {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cv-bullets {
  margin-top: 0.4rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.cv-bullets li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.cv-list {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.cv-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.cv-pub {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Creative / Sewing Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  cursor: pointer;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.gallery-card-body {
  padding: 1.25rem;
}

.gallery-card-body h3 {
  color: var(--coral);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== Philosophy Page ===== */
.philosophy-block {
  margin-bottom: 3rem;
}

.philosophy-block h2 {
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.philosophy-block p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 2rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-page .hero-content h1 {
    font-size: 1.8rem;
  }

  .bio-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-links {
    justify-content: center;
  }

  .bio-photo {
    width: 180px;
    height: 230px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-wide {
    padding: 3rem 1.5rem;
  }

  .position-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .position-date {
    width: auto;
  }

  .cv-entry {
    flex-direction: column;
    gap: 0.25rem;
  }

  .cv-date {
    width: auto;
  }

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
