/* ===== CSS Variables ===== */
:root {
  --primary: #2d5016;
  --primary-light: #4a7c28;
  --primary-lighter: #6b9b3a;
  --accent: #c9a227;
  --accent-light: #e8c84a;
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-lighter: #8a8a8a;
  --border: #e8e5df;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 1px;
}

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

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(45, 80, 22, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-name-en {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(45, 80, 22, 0.06);
  border: 1px solid rgba(45, 80, 22, 0.12);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.hero-tag:hover {
  background: rgba(45, 80, 22, 0.1);
  transform: translateY(-1px);
}

.hero-tag i {
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.avatar-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-light), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate 20s linear infinite;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0.15;
  filter: blur(20px);
}

.avatar-photo {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar-dots {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.4);
}

.avatar-dots:nth-child(3) { top: 10%; right: 15%; animation: pulse 2s ease-in-out infinite; }
.avatar-dots:nth-child(4) { bottom: 20%; left: 5%; animation: pulse 2s ease-in-out infinite 0.5s; }
.avatar-dots:nth-child(5) { top: 50%; right: -2%; animation: pulse 2s ease-in-out infinite 1s; }

/* ===== Section Common ===== */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ===== About / Info Cards ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(45, 80, 22, 0.2);
}

.info-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.info-card .label {
  font-size: 0.8rem;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-card .value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  transform: translateX(-50%);
  margin-left: 1px;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.15);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-lighter);
  font-style: italic;
}

/* ===== Publications ===== */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pub-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.pub-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(45, 80, 22, 0.15);
  transform: translateX(4px);
}

.pub-item:hover::before {
  opacity: 1;
}

.pub-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(45, 80, 22, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.pub-authors {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.pub-authors strong {
  color: var(--primary);
}

.pub-journal {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.pub-journal span {
  display: inline-block;
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
}

.pub-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pub-section-title i {
  color: var(--primary);
}

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

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Awards ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1rem;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.award-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.3);
}

.award-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.award-icon i {
  color: var(--accent);
  font-size: 1rem;
}

.award-content {
  flex: 1;
}

.award-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.award-date {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* ===== Projects ===== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: var(--transition);
}

.project-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.project-meta i {
  margin-right: 0.25rem;
  color: var(--primary-light);
}

/* ===== Contact / Footer ===== */
.contact-section {
  background: linear-gradient(135deg, var(--primary), #1a3a0a);
  color: white;
  border-radius: 24px;
  padding: 4rem 3rem;
  margin: 2rem auto;
  max-width: 1000px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-section p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .avatar-container {
    width: 290px;
    height: 290px;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tags {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-name-en {
    font-size: 1.1rem;
  }

  .avatar-container {
    width: 220px;
    height: 220px;
  }

  section {
    padding: 3rem 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .contact-section {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    margin: 2rem 1rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
