:root {
  --bg: #08111f;
  --bg-soft: #101c2f;
  --panel: rgba(11, 23, 41, 0.72);
  --panel-strong: rgba(9, 17, 31, 0.92);
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(247, 250, 255, 0.92);
  --surface-border: rgba(148, 163, 184, 0.2);
  --text: #dbe7ff;
  --text-strong: #f8fbff;
  --muted: #92a4c8;
  --ink: #11213d;
  --ink-soft: #40516f;
  --primary: #4ecdc4;
  --primary-strong: #14b8a6;
  --accent: #ffc857;
  --accent-soft: rgba(255, 200, 87, 0.18);
  --shadow-lg: 0 30px 70px rgba(3, 9, 20, 0.35);
  --shadow-md: 0 18px 40px rgba(10, 20, 38, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(78, 205, 196, 0.18), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(255, 200, 87, 0.14), transparent 30%),
    linear-gradient(180deg, #09111e 0%, #0f1728 45%, #f1f5fb 45%, #f5f8fd 100%);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  z-index: 300;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 24px rgba(78, 205, 196, 0.6);
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 92%);
}

.container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.nav-shell {
  position: sticky;
  top: 18px;
  z-index: 120;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(7, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(2, 8, 23, 0.25);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.menu a {
  color: rgba(232, 240, 255, 0.86);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a.is-active {
  background: rgba(78, 205, 196, 0.16);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.music-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff4c4;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.music-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.music-toggle.is-playing {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.22), rgba(255, 200, 87, 0.2));
  color: #fff8dd;
  box-shadow:
    inset 0 0 0 1px rgba(78, 205, 196, 0.28),
    0 10px 24px rgba(20, 184, 166, 0.18);
}

.music-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.music-toggle.is-playing .music-icon {
  animation: notePulse 1.4s ease-in-out infinite;
}

main {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.hero,
.section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 38px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(8, 17, 31, 0.94), rgba(12, 31, 55, 0.86)),
    linear-gradient(120deg, rgba(78, 205, 196, 0.08), rgba(255, 200, 87, 0.04));
  min-height: 420px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.75;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  width: 260px;
  height: 260px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.35), transparent 70%);
}

.orb-b {
  width: 220px;
  height: 220px;
  left: 36%;
  bottom: -60px;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.24), transparent 70%);
  animation-delay: -4s;
}

.orb-c {
  width: 140px;
  height: 140px;
  left: -30px;
  top: 60px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.3), transparent 70%);
  animation-delay: -8s;
}

.hero-aside,
.hero-content,
.dream-section > * {
  position: relative;
  z-index: 1;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.avatar-shell {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(78, 205, 196, 0.9), rgba(255, 200, 87, 0.9), rgba(78, 205, 196, 0.9));
  animation: spin 14s linear infinite;
}

.avatar {
  position: relative;
  width: 194px;
  height: 194px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

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

.hero-mini-card {
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.mini-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.mini-value {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-mini-card p {
  color: rgba(219, 231, 255, 0.82);
  font-size: 0.95rem;
}

.eyebrow,
.section-kicker,
.dream-badge,
.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow {
  color: var(--accent);
  background: rgba(255, 200, 87, 0.12);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin-bottom: 10px;
}

.hero h2 {
  max-width: 780px;
  font-size: 1.06rem;
  font-weight: 500;
  color: rgba(219, 231, 255, 0.78);
  margin-bottom: 16px;
}

.hero-intro {
  max-width: 760px;
  font-size: 1.03rem;
  color: rgba(231, 239, 255, 0.9);
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
}

.meta-chip span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tagline {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.16);
  color: #b9fff8;
  font-weight: 600;
}

.hero-links,
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.pub-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.pub-links a:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  color: #042522;
  font-weight: 700;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.hero-strip span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 244, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  text-align: center;
}

.section {
  padding: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.section-kicker,
.dream-badge,
.contact-label {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
}

.section h3,
.dream-section h3 {
  color: #10213f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.section p,
.section li {
  color: var(--ink-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
}

.focus-panel,
.focus-card,
.contact-card,
.service-item,
.timeline-item,
.pub-item,
.exp-item,
.award-item,
.card,
.stat-box {
  position: relative;
  overflow: hidden;
}

.focus-card,
.contact-card,
.service-item,
.timeline-item,
.pub-item,
.exp-item,
.award-item,
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(242, 247, 254, 0.92));
  box-shadow: 0 14px 28px rgba(10, 20, 40, 0.06);
}

.focus-card {
  height: 100%;
  padding: 24px;
}

.focus-title,
.timeline-title,
.pub-title,
.exp-title,
.card h4 {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.focus-card ul {
  padding-left: 18px;
}

.focus-card li {
  margin-bottom: 10px;
}

.highlight-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.95)),
    radial-gradient(circle at top right, rgba(78, 205, 196, 0.12), transparent 36%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-box {
  padding: 24px 20px;
  border-radius: 24px;
  border: 1px solid rgba(78, 205, 196, 0.22);
  background:
    linear-gradient(145deg, rgba(240, 253, 250, 0.98), rgba(255, 250, 239, 0.98)),
    radial-gradient(circle at top right, rgba(255, 200, 87, 0.18), transparent 34%);
}

.num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #0f766e;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.label {
  color: #4b5f80;
  font-weight: 600;
}

.note {
  margin-top: 16px;
  color: #64748b;
  font-size: 0.94rem;
}

.grid-2,
.grid-3,
.project-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item,
.pub-item,
.exp-item,
.award-item,
.card,
.service-item {
  padding: 18px 20px;
}

.timeline-year,
.timeline-meta,
.pub-meta,
.exp-meta {
  font-size: 0.94rem;
  color: #60718d;
  margin-bottom: 6px;
}

.research-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.research-cloud span {
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 200, 87, 0.16));
  color: #124f58;
  border: 1px solid rgba(20, 184, 166, 0.16);
  font-weight: 600;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pub-desc,
.exp-desc {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.compact-stack,
.service-list {
  display: grid;
  gap: 14px;
}

.top-gap {
  margin-top: 14px;
}

.contact-card {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(9, 24, 43, 0.95), rgba(12, 42, 60, 0.92)),
    radial-gradient(circle at top right, rgba(78, 205, 196, 0.3), transparent 42%);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.contact-card h4 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 16px 0 10px;
}

.contact-card p {
  color: rgba(231, 239, 255, 0.84);
  margin-bottom: 18px;
}

.dream-section {
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(6, 16, 28, 0.95), rgba(17, 39, 71, 0.92)),
    radial-gradient(circle at top right, rgba(255, 200, 87, 0.12), transparent 34%);
  color: var(--text);
  padding: 34px 34px 38px;
}

#dream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.72;
}

.dream-subtitle {
  color: rgba(219, 231, 255, 0.76);
  margin: 10px 0 18px;
}

.dream-section p {
  position: relative;
  color: rgba(229, 238, 255, 0.9);
  margin-bottom: 14px;
}

.dream-quote {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8df;
  font-style: italic;
}

.footer {
  padding: 24px 0 12px;
  color: #7687a6;
  text-align: center;
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tilt-card:hover {
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(20, 184, 166, 0.26);
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 18px, 0);
  }
}

@keyframes notePulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.08) rotate(-8deg);
  }
  75% {
    transform: scale(1.08) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .intro-grid,
  .grid-2,
  .grid-3,
  .project-grid,
  .contact-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 12px;
  }

  .nav-shell {
    top: 10px;
  }

  .nav {
    position: relative;
    padding: 14px 16px;
  }

  .menu {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(7, 14, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero,
  .section,
  .dream-section {
    padding: 24px 20px;
  }

  .hero {
    gap: 22px;
  }

  .hero-aside {
    order: -1;
  }

  .avatar-shell {
    width: 184px;
    height: 184px;
  }

  .avatar {
    width: 162px;
    height: 162px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-strip,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cursor-glow {
    display: none;
  }
}
