:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --white: #ffffff;
  --text: #152033;
  --muted: #5f6f86;
  --primary: #2b6ef2;
  --secondary: #14b8a6;
  --border: #dce5f1;
  --shadow: 0 16px 40px rgba(24, 39, 75, 0.08);
  --shadow-soft: 0 8px 24px rgba(24, 39, 75, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef4fb 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 229, 241, 0.9);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  color: #10203a;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #405168;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

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

.hero {
  padding: 72px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: #0f1d33;
}

.hero-role {
  margin: 0 0 18px;
  font-size: 1.22rem;
  font-weight: 600;
  color: #37507a;
}

.hero-description {
  max-width: 760px;
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4a86ff);
  color: white;
  box-shadow: 0 14px 28px rgba(43, 110, 242, 0.24);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #25d0be);
  color: white;
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.22);
}

.btn-light {
  background: var(--white);
  color: #24334d;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.mini-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 229, 241, 0.95);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.mini-label {
  display: block;
  margin-bottom: 6px;
  color: #6a7a90;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image-card {
  width: min(420px, 100%);
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(239,245,252,0.94));
  border: 1px solid rgba(220, 229, 241, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.section {
  padding: 44px 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(238,243,249,0.74));
  border-top: 1px solid rgba(220, 229, 241, 0.8);
  border-bottom: 1px solid rgba(220, 229, 241, 0.8);
}

.section-header {
  margin-bottom: 24px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  background: rgba(43, 110, 242, 0.1);
  border: 1px solid rgba(43, 110, 242, 0.12);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.light-tag {
  color: #d9e6ff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.section-header h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  color: #10203a;
}

.section-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

.about-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-card p {
  margin: 0 0 16px;
  color: #42536b;
  font-size: 1.03rem;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(24, 39, 75, 0.08);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #14243d;
}

.info-card p {
  margin: 0;
  color: #5c6d84;
  font-size: 0.98rem;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), #9ab8ff);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 18px;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7aa4ff);
  border: 4px solid #eff5ff;
  box-shadow: 0 0 0 4px rgba(43, 110, 242, 0.08);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-content h3 {
  margin: 0 0 6px;
  color: #15253d;
  font-size: 1.08rem;
}

.timeline-content p {
  margin: 0;
  color: #617289;
}

.publication-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.publication-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f3ea8, #2b6ef2);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.publication-content {
  min-width: 0;
}

.publication-citation {
  margin: 0 0 12px;
  color: #25354d;
  font-size: 1.03rem;
}

.publication-doi {
  margin: 0;
  color: #52647d;
}

.publication-doi a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.publication-doi a:hover {
  text-decoration: underline;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.stack-year {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stack-card h3 {
  margin: 0 0 8px;
  color: #13233c;
  font-size: 1.14rem;
}

.stack-card p {
  margin: 0;
  color: #5d6d85;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(24, 39, 75, 0.08);
}

.gallery-card a {
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #edf2f9;
}

.gallery-card figcaption {
  padding: 14px 16px;
  color: #51627b;
  font-size: 0.96rem;
  font-weight: 600;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.link-card {
  display: block;
  padding: 24px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(24, 39, 75, 0.08);
  border-color: #bfd2f4;
}

.link-title {
  display: block;
  margin-bottom: 8px;
  color: #13233c;
  font-size: 1.08rem;
  font-weight: 800;
}

.link-desc {
  color: #617289;
  font-size: 0.96rem;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f1f3b, #17325f 55%, #1d4aa2 100%);
  color: white;
  box-shadow: 0 22px 44px rgba(15, 31, 59, 0.18);
}

.contact-panel p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.18s ease, transform 0.18s ease;
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(220, 229, 241, 0.9);
  background: rgba(255,255,255,0.72);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #6a7a90;
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .gallery-grid,
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-mini-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrapper {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    gap: 12px;
  }

  .main-nav {
    justify-content: center;
    gap: 16px;
  }

  .hero {
    padding-top: 46px;
  }

  .card-grid,
  .gallery-grid,
  .links-grid,
  .publication-item {
    grid-template-columns: 1fr;
  }

  .about-card,
  .info-card,
  .timeline-content,
  .link-card,
  .stack-card,
  .contact-panel,
  .publication-item {
    padding: 22px;
  }

  .publication-label {
    min-height: 72px;
  }

  .gallery-card img {
    height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }
}

@media (max-width: 520px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.92rem;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

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