/* ============================================
   XUDONG WU — ACADEMIC HOMEPAGE
   Modern Design System
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #dc2626;
  --accent-light: #fee2e2;

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --nav-height: 70px;
  --container-width: 1100px;
  --section-gap: 5rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --primary-light: #1e3a5f;
  --accent-light: #3b1111;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.3;
}

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

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.85);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

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

.brand-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- Main Content --- */
.main-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Sections --- */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
}

/* --- Hero / About Section --- */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-photo::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 280px;
  height: 280px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
  transition: var(--transition);
}

.hero-photo:hover img {
  transform: translate(-5px, -5px);
}

.hero-photo:hover::after {
  transform: translate(5px, 5px);
}

.hero-name {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -1px;
}

.hero-name-cn {
  font-size: 1.6rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
}

.hero-title a {
  color: var(--primary);
  font-weight: 500;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.hero-link.primary {
  background: var(--primary);
  color: #fff;
}

.hero-link.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hero-link.outline {
  border: 2px solid var(--border);
  color: var(--text);
}

.hero-link.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.hero-contact i {
  width: 20px;
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Affiliations */
.affiliations {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.affiliation-logo {
  height: 65px;
  opacity: 0.8;
  transition: var(--transition);
  filter: grayscale(20%);
}

.affiliation-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

/* About Text */
.about-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

/* --- News Section --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 100px;
  padding-top: 2px;
}

.news-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.card-title a {
  color: var(--text);
}

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

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
}

.tag.accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* --- 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), var(--primary-light));
}

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

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
  transform: translateX(-6px);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-left: 1rem;
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

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

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
}

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

.timeline-details {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-details ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.timeline-details li {
  margin-bottom: 0.3rem;
}

/* Timeline with logo */
.timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

/* --- Research Page --- */
.research-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.research-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.research-venue {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.research-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.research-authors {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.research-authors .highlight {
  font-weight: 600;
  color: var(--text);
}

.research-abstract {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.research-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.research-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.research-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* --- Projects --- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card-body {
  padding: 1.75rem;
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.project-title a {
  color: var(--text);
}

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

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-tech {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-link:hover {
  gap: 0.5rem;
}

/* --- CV Page --- */
.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.cv-download:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cv-section {
  margin-bottom: 3rem;
}

.cv-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

/* Awards */
.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
}

.award-item:last-child {
  border-bottom: none;
}

.award-name {
  font-weight: 500;
}

.award-org {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-category {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.skill-category-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.skill-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.skill-list li {
  padding: 0.2rem 0;
}

/* --- Blog --- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.blog-card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0;
  font-family: var(--font-sans);
}

.blog-card-title a {
  color: var(--text);
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.blog-card-readmore:hover {
  gap: 0.5rem;
}

/* Blog Post Layout */
.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.post-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body code {
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-body pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-body pre code {
  background: none;
  padding: 0;
}

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: var(--section-gap);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-info .cn-name {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Utility --- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-photo {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
  }

  .hero-photo::after {
    width: 200px;
    height: 200px;
  }

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

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

  .hero-contact {
    align-items: center;
  }

  .affiliations {
    justify-content: center;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .award-item {
    flex-direction: column;
    gap: 0.25rem;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

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