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

:root {
  --primary: #1a56b0;
  --primary-light: #e8f0fe;
  --text: #334155;
  --text-light: #6b7280;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 8px;
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: url("../img/bg.jpg") center / cover no-repeat fixed;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(255,255,255,0.25);
}

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

a:hover {
  color: #0d3b7a;
  text-decoration: underline;
}

/* === Layout === */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header / Profile === */
.header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.profile-photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
}

.profile-info h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.profile-info .title {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.profile-info .affiliation {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.profile-info .contact {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.profile-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.icon-inline {
  display: inline;
  vertical-align: -2px;
  margin-right: 1px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: var(--primary-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.profile-links a img {
  flex-shrink: 0;
}

.profile-links a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* === Main Content === */
.main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 60px;
}

.section {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.5);
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.section h2 svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* === Education === */
.edu-list {
  list-style: none;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-icon.postdoc {
  background: #dcfce7;
  color: #166534;
}

.edu-icon.phd {
  background: var(--primary-light);
  color: var(--primary);
}

.edu-icon.bs {
  background: #fef3c7;
  color: #92400e;
}

.edu-info {
  flex: 1;
}

.edu-degree {
  font-weight: 700;
  font-size: 0.98rem;
  color: #1a202c;
  margin-bottom: 2px;
}

.edu-school {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.edu-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

.edu-date {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .edu-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .edu-date {
    text-align: left;
    width: 100%;
    order: 3;
  }
}

/* === Bio === */
.bio p {
  color: #64748b;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.bio p:last-child {
  margin-bottom: 0;
}

/* === Research Interests === */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* === Publications === */
.pub-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.pub-year:first-child {
  margin-top: 0;
}

.pub-item {
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.pub-item:hover {
  background: var(--bg);
  border-left-color: var(--primary);
}

.pub-item .pub-authors {
  font-size: 0.92rem;
  color: var(--text-light);
}

.pub-item .pub-authors b {
  color: #0f172a;
  font-weight: 700;
}

.pub-item .pub-title {
  font-weight: 600;
  color: var(--text);
}

.pub-item .pub-venue {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 2px;
  font-style: italic;
}

.pub-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.badge-j {
  background: #dbeafe;
  color: #1e40af;
}

.badge-c {
  background: #fef3c7;
  color: #92400e;
}

.badge-best {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  background: #dcfce7;
  color: #166534;
  margin-left: 4px;
}

/* === Honors === */
.honors-list {
  list-style: none;
}

.honors-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #64748b;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.honors-list li:last-child {
  border-bottom: none;
}

.honors-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 20px 0 18px;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.8;
  background: #334155;
}

.footer a {
  color: #94b8e8;
  font-weight: 500;
}

.footer a:hover {
  color: var(--primary);
}

/* === Responsive === */
@media (max-width: 768px) {
  .header {
    padding: 28px 0;
  }

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

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .section {
    padding: 24px 20px;
  }

  .profile-info h1 {
    font-size: 1.6rem;
  }
}
