:root {
  color-scheme: dark;
  --bg: #08111d;
  --bg-soft: #0e1726;
  --panel: rgba(13, 20, 33, 0.78);
  --panel-strong: rgba(15, 23, 39, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #edf3ff;
  --muted: #a7b4ca;
  --accent: #7dd3fc;
  --accent-strong: #f59e0b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(125, 211, 252, 0.16), transparent 26%),
    linear-gradient(180deg, #06101c 0%, #091325 42%, #050b14 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.bg-orb {
  position: fixed;
  inset: auto;
  width: 34vw;
  height: 34vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

.orb-one {
  top: -8vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0));
}

.orb-two {
  right: -10vw;
  top: 16vh;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.3), rgba(125, 211, 252, 0));
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.site-header,
.section-shell,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 29, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
}

.nav a,
.header-cta,
.primary-button,
.secondary-button,
.contact-links a {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav a:hover,
.contact-links a:hover {
  color: var(--text);
}

.header-cta,
.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.header-cta,
.primary-button {
  background: linear-gradient(135deg, #f59e0b, #7dd3fc);
  color: #07111d;
  font-weight: 700;
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 36px 0 10px;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2,
.profile-card h2,
.project-card h3,
.glass-card h3 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.highlight {
  display: block;
  background: linear-gradient(135deg, #fbbf24 0%, #7dd3fc 42%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
}

.lede,
.card-text,
.contact-text,
.glass-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats li,
.profile-card,
.glass-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stats li {
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stats strong {
  display: block;
  font-size: 1.55rem;
  color: var(--text);
}

.stats span {
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.92), rgba(10, 18, 31, 0.88));
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(125, 211, 252, 0.95));
  color: #07111d;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.card-label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

.profile-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.profile-meta {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.profile-meta div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-meta dt {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 5px;
}

.profile-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.section-block {
  padding: 24px 0 0;
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.glass-card,
.project-card,
.contact-card {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.glass-card h3,
.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-row span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(18, 26, 40, 0.95), rgba(10, 16, 28, 0.9)),
    rgba(255, 255, 255, 0.03);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 70%);
  pointer-events: none;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #d8f3ff;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.18);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 25, 40, 0.95), rgba(12, 19, 32, 0.9));
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.contact-links a::after {
  content: "↗";
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 29, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 30;
}

@media (max-width: 960px) {
  .hero,
  .about-grid,
  .project-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 20px, var(--max-width));
  }

  .site-header {
    top: 10px;
    padding: 12px 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4.4rem);
  }

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

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card,
  .glass-card,
  .contact-card,
  .profile-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
  }
}
