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

:root {
  --primary: #1a1a2e;
  --accent: #4f7cff;
  --accent-light: #e8eeff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
.lang-btn:hover, .lang-btn.active { color: var(--accent); font-weight: 600; }

/* ===== SECTIONS ===== */
section { padding: 5rem 1.5rem; }
.container { max-width: 900px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ===== HERO ===== */
.hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 60%);
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-light);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.tagline {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.bio {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.bio strong { color: var(--text); }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

/* ===== EDUCATION ===== */
.edu-list { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.edu-degree { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.edu-school { font-size: 0.92rem; color: var(--text-muted); margin: 0.15rem 0; }
.edu-detail { font-size: 0.85rem; color: var(--text-muted); }
.edu-focus { font-size: 0.82rem; color: var(--accent); margin-top: 0.2rem; }
.edu-right { text-align: right; flex-shrink: 0; }
.edu-date { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); }
.edu-location { display: block; font-size: 0.82rem; color: var(--text-muted); }

/* ===== SKILLS ===== */
.skills-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.skills-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.skill-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}
.skill-row:last-child { border-bottom: none; }
.skill-label {
  font-weight: 600;
  color: var(--text);
  min-width: 130px;
  flex-shrink: 0;
}
.skill-tags { color: var(--text-muted); }

/* ===== PUBLICATIONS ===== */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.pub-card:hover { box-shadow: var(--shadow-md); }
.pub-venue {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.55rem;
}
.venue-acl   { background: #dbeafe; color: #1d4ed8; }
.venue-emnlp { background: #d1fae5; color: #065f46; }
.venue-review{ background: #fef3c7; color: #92400e; }
.venue-report{ background: #f3e8ff; color: #6b21a8; }

.pub-title {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  line-height: 1.45;
}
.pub-authors { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.pub-authors strong { color: var(--text); }
.pub-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.pub-links { display: flex; gap: 0.8rem; }
.pub-links a { font-size: 0.82rem; font-weight: 500; }

/* pub card with figure */
.pub-card-fig {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.pub-fig {
  width: 180px;
  min-width: 180px;
  height: 130px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.pub-body { flex: 1; min-width: 0; }
.pub-card-fig .pub-venue,
.pub-card-fig .pub-title,
.pub-card-fig .pub-authors,
.pub-card-fig .pub-desc,
.pub-card-fig .pub-links { display: block; }

@media (max-width: 680px) {
  .pub-card-fig { flex-direction: column; }
  .pub-fig { width: 100%; min-width: unset; height: 160px; }
}

/* ===== PROJECTS ===== */
.proj-list { display: flex; flex-direction: column; gap: 1.2rem; }
.proj-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.proj-card:hover { box-shadow: var(--shadow-md); }
.proj-header { margin-bottom: 0.8rem; }
.proj-title { font-size: 1rem; font-weight: 700; color: var(--primary); }
.proj-collab { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.2rem; }
.proj-collab a { color: var(--accent); }
.proj-bullets {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proj-bullets li { font-size: 0.87rem; color: var(--text-muted); }
.proj-bullets strong { color: var(--text); }

/* ===== EXPERIENCE ===== */
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.exp-item:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.exp-role { font-weight: 700; font-size: 0.97rem; color: var(--primary); }
.exp-org { font-size: 0.9rem; color: var(--text-muted); }
.exp-location { font-size: 0.83rem; color: var(--text-muted); }
.exp-date { font-size: 0.85rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.exp-bullets {
  padding-left: 1.2rem;
  margin: 0.6rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.exp-bullets li { font-size: 0.87rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-inner { text-align: center; }
.contact-inner p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .hero-links { justify-content: center; }
  .nav-links { display: none; }
  .edu-item { flex-direction: column; gap: 0.5rem; }
  .edu-right { text-align: left; }
  .exp-item { flex-direction: column; gap: 0.2rem; }
}
