@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --blue-dark:    #0a2342;
  --blue-mid:     #1a4a7c;
  --blue-light:   #3474b5;
  --blue-pale:    #d6e9f8;
  --yellow:       #f5c842;
  --yellow-dark:  #c99a00;
  --yellow-light: #fef8e1;
  --white:        #ffffff;
  --off-white:    #f7f9fc;
  --gray-100:     #eef1f6;
  --gray-200:     #dde3ed;
  --gray-400:     #8a97a8;
  --gray-600:     #4a5568;
  --text:         #1a2634;
  --text-muted:   #5a6e84;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --nav-h:        64px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(10,35,66,0.08);
  --shadow-md:    0 4px 16px rgba(10,35,66,0.12);
  --content-max:  900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--off-white); min-height: 100vh; }

/* TOP NAVBAR */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--blue-dark);
  display: flex; align-items: center; z-index: 100;
  border-bottom: 3px solid var(--yellow);
  padding: 0 1.75rem; gap: 0;
}
.topnav-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex-shrink: 0; margin-right: 1.5rem; }
.avatar-ring {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--yellow);
  overflow: hidden; background: var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; color: var(--yellow); flex-shrink: 0;
}
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 0.67rem; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; white-space: nowrap; }

.topnav-links { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
  display: flex; align-items: center; height: var(--nav-h);
  padding: 0 0.85rem; color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.8rem; font-weight: 400; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: color 0.2s, border-color 0.2s;
}
.topnav-links a:hover { color: var(--white); }
.topnav-links a.active { color: var(--white); border-bottom-color: var(--yellow); }

.topnav-social { display: flex; align-items: center; gap: 0.5rem; margin-left: 1.25rem; flex-shrink: 0; }
.topnav-social a {
  color: rgba(255,255,255,0.5); font-size: 1rem; text-decoration: none;
  transition: color 0.2s; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.topnav-social a:hover { color: var(--yellow); }

.hamburger { display: none; margin-left: auto; background: transparent; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--blue-dark); z-index: 99; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.65rem 2rem; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; border-left: 3px solid transparent; }
.mobile-menu a.active, .mobile-menu a:hover { color: var(--white); border-left-color: var(--yellow); background: rgba(255,255,255,0.05); }

/* PAGE LAYOUT */
.main { padding-top: var(--nav-h); }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.page-header { background: var(--blue-dark); padding: 2.5rem 0 2rem; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--yellow) 0%, var(--blue-light) 100%); }
.page-header-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 2.5rem; }
.page-header-accent { font-size: 0.67rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.4rem; }
.page-header h1 { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); line-height: 1.15; }

.page-body { max-width: var(--content-max); margin: 0 auto; padding: 2.5rem 2.5rem 4rem; }
#page-posters .page-body { max-width: 1100px; }

/* HOME */
.home-top { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; margin-bottom: 2rem; }
.home-photo { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--yellow); overflow: hidden; flex-shrink: 0; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-intro { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 2.25rem; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.home-intro p { color: var(--gray-600); margin-bottom: 0.8rem; font-size: 0.97rem; }
.home-intro p:last-child { margin-bottom: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0.25rem; }
.tag { background: var(--blue-pale); color: var(--blue-mid); font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.7rem; border-radius: 100px; }
.tag.yellow { background: var(--yellow-light); color: var(--yellow-dark); }

/* NEWS */
.section-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--blue-dark); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--gray-100); align-items: start; }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.72rem; color: var(--yellow-dark); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 0.15rem; }
.news-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }
.news-text a { color: var(--blue-light); text-decoration: none; }
.news-text a:hover { text-decoration: underline; }
.news-text strong { color: var(--text); font-weight: 500; }

/* PUBLICATIONS */
.pub-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-btn { padding: 0.3rem 0.9rem; border-radius: 100px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600); font-family: var(--font-body); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--blue-light); color: var(--blue-light); }
.filter-btn.active { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.pub-list { display: flex; flex-direction: column; gap: 1.1rem; }
.pub-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--gray-400); transition: box-shadow 0.2s, transform 0.2s; }
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
/* journal → green */
.pub-card.venue-journal { border-left-color: #1d9e75; }
/* conference → blue */
.pub-card.venue-conf, .pub-card.venue-cscw, .pub-card.venue-emnlp { border-left-color: var(--blue-light); }
/* workshop → yellow */
.pub-card.venue-workshop { border-left-color: var(--yellow-dark); }
/* preprint/arxiv → gray */
.pub-card.venue-arxiv { border-left-color: var(--gray-400); }

.pub-title { font-size: 0.94rem; font-weight: 500; color: var(--blue-dark); line-height: 1.4; margin-bottom: 0.35rem; }
.pub-authors { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 0.3rem; line-height: 1.5; }
.pub-authors .me { font-weight: 500; color: var(--text); }
.pub-meta { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.5rem; }
/* venue badge base = blue (conference) */
.venue-badge { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 4px; background: var(--blue-pale); color: var(--blue-mid); }
/* journal badge → green */
.venue-badge.green { background: #e1f5ee; color: #0f6e56; }
/* workshop badge → yellow */
.venue-badge.yellow { background: var(--yellow-light); color: var(--yellow-dark); }
/* preprint/arxiv badge → gray */
.venue-badge.gray { background: var(--gray-100); color: var(--gray-600); }
.pub-year { font-size: 0.75rem; color: var(--gray-400); }
.pub-links { display: flex; gap: 0.5rem; margin-left: auto; }
.pub-link { font-size: 0.72rem; color: var(--blue-light); text-decoration: none; font-weight: 500; border: 1px solid var(--blue-pale); padding: 0.12rem 0.55rem; border-radius: 4px; transition: all 0.2s; }
.pub-link:hover { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.award-honorable-mention {
  background-color: #fff4cc;
  color: #7a5800;
  border: 1px solid #f0c832;
}

.award-best-paper {
  background-color: #ffd700;
  color: #5a3e00;
  border: 1px solid #c9a800;
}

.award-distinguished {
  background-color: #e8f0fe;
  color: #1a3a7a;
  border: 1px solid #4a6bc8;
}

.status-under-review {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: middle;
  background-color: #f0f0f0;
  color: #555555;
}

.status-under-review::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px dashed #aaaaaa;
  margin-right: 5px;
  vertical-align: middle;
}
/* SERVICE */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.service-card-title { font-family: var(--font-display); font-size: 1rem; color: var(--blue-dark); margin-bottom: 0.85rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--yellow); display: inline-block; }
.service-list-plain { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.service-list-plain li { font-size: 0.85rem; color: var(--gray-600); display: flex; align-items: baseline; gap: 0.5rem; }
.service-list-plain li::before { content: '→'; color: var(--yellow-dark); font-size: 0.72rem; flex-shrink: 0; }

/* POSTERS — full-width rows */
.poster-list { display: flex; flex-direction: column; gap: 1.75rem; }
.poster-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 340px 1fr; min-height: 260px; transition: box-shadow 0.2s, transform 0.2s; }
.poster-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.poster-thumb { position: relative; background: var(--blue-dark); overflow: hidden; display: flex; align-items: stretch; }
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.poster-thumb .pdf-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; gap: 0.6rem; padding: 2rem; }
.poster-thumb .pdf-icon { font-size: 2.5rem; color: var(--yellow); }
.poster-thumb .pdf-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); text-align: center; }
.poster-venue-chip { position: absolute; bottom: 0.75rem; left: 0.75rem; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; background: var(--yellow); color: var(--blue-dark); padding: 0.2rem 0.6rem; border-radius: 4px; }
.poster-body { padding: 1.75rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.poster-body h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--blue-dark); line-height: 1.35; }
.poster-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.poster-links { display: flex; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }
.poster-link { font-size: 0.77rem; font-weight: 500; color: var(--blue-light); text-decoration: none; border: 1px solid var(--blue-pale); padding: 0.25rem 0.75rem; border-radius: 5px; transition: all 0.2s; }
.poster-link:hover { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.contact-block { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.contact-block h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue-dark); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--yellow); }
.contact-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.87rem; }
.contact-row:last-child { border-bottom: none; }
.contact-label { color: var(--gray-400); font-size: 0.76rem; width: 60px; flex-shrink: 0; }
.contact-val { color: var(--text); }
.contact-val a { color: var(--blue-light); text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }
.highlight-box { background: var(--blue-dark); border-radius: var(--radius-lg); padding: 1.75rem 2.25rem; color: var(--white); margin-bottom: 2rem; position: relative; overflow: hidden; }
.highlight-box::before { content: ''; position: absolute; top: -30px; right: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(245,200,66,0.1); }
.highlight-box p { font-size: 0.9rem; line-height: 1.7; opacity: 0.82; margin-top: 0.6rem; }
.highlight-box h3 { font-family: var(--font-display); font-size: 1.15rem; }

/* NON-ACADEMIC */
.nonacad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.nonacad-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.nonacad-icon { font-size: 1.6rem; margin-bottom: 0.65rem; display: block; }
.nonacad-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue-dark); margin-bottom: 0.6rem; }
.nonacad-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }

/* CV */
.cv-section { margin-bottom: 2.5rem; }
.cv-entry { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--gray-100); }
.cv-entry:last-child { border-bottom: none; }
.cv-year { font-size: 0.76rem; color: var(--yellow-dark); font-weight: 500; letter-spacing: 0.04em; padding-top: 0.15rem; }
.cv-title { font-size: 0.93rem; font-weight: 500; color: var(--text); margin-bottom: 0.15rem; }
.cv-place { font-size: 0.82rem; color: var(--text-muted); }
.cv-desc { font-size: 0.81rem; color: var(--gray-400); margin-top: 0.2rem; line-height: 1.5; }
.cv-download-bar { background: var(--blue-dark); border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.cv-download-bar p { color: rgba(255,255,255,0.75); font-size: 0.87rem; }
.cv-download-btn { background: var(--yellow); color: var(--blue-dark); font-weight: 500; font-size: 0.84rem; padding: 0.45rem 1.15rem; border-radius: 6px; text-decoration: none; transition: background 0.2s; white-space: nowrap; }
.cv-download-btn:hover { background: var(--yellow-dark); color: var(--white); }

/* BLOG */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem 2rem; box-shadow: var(--shadow-sm); text-decoration: none; display: block; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-tag { display: inline-block; font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow-dark); background: var(--yellow-light); padding: 0.18rem 0.6rem; border-radius: 100px; margin-bottom: 0.6rem; }
.blog-card h2 { font-family: var(--font-display); font-size: 1.2rem; color: var(--blue-dark); line-height: 1.35; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--gray-400); }
.blog-read-more { font-size: 0.78rem; font-weight: 500; color: var(--blue-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .topnav-links { display: none; }
  .topnav-social { display: none; }
  .hamburger { display: flex; }
  .poster-card { grid-template-columns: 1fr; grid-template-rows: 280px auto; }
}
@media (max-width: 680px) {
  .page-header-inner, .page-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .service-grid, .contact-grid, .nonacad-grid { grid-template-columns: 1fr; }
  .home-top { grid-template-columns: 1fr; }
  .pub-links { margin-left: 0; }
  .news-item { grid-template-columns: 70px 1fr; }
}
