*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg-alt: #161922;
  --surface: #1e2230;
  --accent: #4f8ef7;
  --accent-soft: rgba(79,142,247,0.12);
  --text: #e8eaf0;
  --muted: #8892a4;
  --border: rgba(255,255,255,0.07);
  --radius: 12px;
  --max: 900px;
}

html { scroll-behavior: smooth; }

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

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name { font-weight: 600; font-size: 15px; color: var(--text); }
nav ul { list-style: none; display: flex; gap: 4px; }
nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
nav ul a:hover { color: var(--text); background: var(--surface); }

/* Header */
header {
  padding: 100px 24px 80px;
  background: linear-gradient(160deg, #0f1117 0%, #131726 100%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.header-text { flex: 1; }
h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.subtitle {
  margin-top: 10px;
  font-size: 17px;
  color: var(--accent);
  font-weight: 500;
}
.affil {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.bio {
  margin-top: 18px;
  font-size: 15px;
  color: #b0bac8;
  max-width: 580px;
}
.links { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: opacity .2s;
}
.btn:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface); opacity: 1; }

/* Avatar */
.header-avatar { flex-shrink: 0; }
.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

/* Sections */
.section { padding: 72px 24px; }
.section.alt { background: var(--bg-alt); }
.container { max-width: var(--max); margin: 0 auto; }
h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.section-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.section-note a { color: var(--accent); text-decoration: none; }
.section-note a:hover { text-decoration: underline; }

/* Research cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--accent); }
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Publications */
.pub-list { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.pub {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pub:last-of-type { border-bottom: none; }
.pub-year {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  min-width: 36px;
  padding-top: 2px;
}
.pub-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.pub-authors { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.pub-venue { font-size: 13px; color: #6a7a8f; font-style: italic; }
.award-tag {
  font-style: normal;
  background: rgba(255,195,0,0.15);
  color: #f5c518;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
}
.pub-note {
  margin-top: 20px;
  font-size: 12px;
  color: #6a7a8f;
  background: rgba(255,180,0,0.07);
  border: 1px solid rgba(255,180,0,0.15);
  border-radius: 8px;
  padding: 10px 14px;
}
.pub-note a { color: var(--accent); }

/* Patents */
.patent-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.patent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.patent-icon { font-size: 24px; }
.patent-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  text-decoration: none;
}
.patent-title:hover { color: var(--accent); }
.patent-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.patent-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}
.patent-status.granted {
  background: rgba(72, 199, 142, 0.12);
  color: #48c78e;
}
.patent-date { font-size: 12px; color: var(--muted); }
.patent-inventors { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.patent-assignee { font-size: 12px; color: #6a7a8f; margin-bottom: 8px; font-style: italic; }
.patent-abstract { font-size: 13px; color: #8892a4; line-height: 1.6; margin-top: 8px; }

/* Awards */
.award-list { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.award-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.award-item:last-child { border-bottom: none; }
.award-year {
  font-size: 13px;
  color: #f5c518;
  font-weight: 600;
  min-width: 36px;
  padding-top: 2px;
}
.award-item strong { font-size: 15px; font-weight: 500; }
.award-item p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Service */
.service-list {
  margin-top: 20px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #b0bac8;
  font-size: 14px;
}
.service-list li::marker { color: var(--accent); }

/* Contact */
.contact-inner { text-align: center; }
.contact-inner p { color: var(--muted); margin-top: 10px; margin-bottom: 32px; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.contact-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Footer */
footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.stat-link:hover { text-decoration: underline; }

.cite-count {
  font-style: normal;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-direction: column-reverse; gap: 24px; text-align: center; }
  .links { justify-content: center; }
  .pub, .award-item { flex-direction: column; gap: 4px; }
  nav ul { display: none; }
}
