:root {
  --bg: #050816;
  --bg-soft: rgba(9, 14, 33, 0.68);
  --panel: rgba(11, 16, 37, 0.58);
  --border: rgba(136, 194, 255, 0.22);
  --text: #e9f6ff;
  --muted: #98a8d8;
  --blue: #4cc9ff;
  --cyan: #66fff2;
  --purple: #7b61ff;
  --pink: #ff4fd8;
  --shadow: 0 25px 80px rgba(30, 90, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(74, 0, 224, 0.2), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(76, 201, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #030611 0%, #040816 45%, #02040b 100%);
  font-family: "Space Grotesk", "Microsoft YaHei", sans-serif;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

#starfield,
.noise,
.grid,
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: -4;
}

.noise {
  z-index: -3;
  opacity: 0.06;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 6px 6px;
  mix-blend-mode: soft-light;
}

.grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(102, 255, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 255, 242, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 20%, black 100%);
}

.aurora {
  z-index: -1;
  filter: blur(80px);
  opacity: 0.45;
}

.aurora-one {
  background: radial-gradient(circle, rgba(76, 201, 255, 0.35), transparent 55%);
  transform: translate(-10%, -10%);
  animation: floatGlow 12s ease-in-out infinite;
}

.aurora-two {
  background: radial-gradient(circle, rgba(255, 79, 216, 0.22), transparent 52%);
  transform: translate(60%, 20%);
  animation: floatGlow 15s ease-in-out infinite reverse;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
}

.brand {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
  text-shadow: 0 0 16px rgba(102, 255, 242, 0.6);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 42px 0 64px;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 42px;
  padding-top: 20px;
}

.hero-copy {
  align-self: start;
  padding-top: 12px;
}

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

h1,
h2,
h3,
.brand,
.panel-label,
.trait-index {
  font-family: "Orbitron", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 0 25px rgba(76, 201, 255, 0.36), 0 0 60px rgba(123, 97, 255, 0.18);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.hero-text,
.glass-card p,
.contact-copy,
.stat-card span {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 24px 0 30px;
}

.hero-text span,
.glass-card span,
.contact-quote {
  color: var(--cyan);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.4), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.button:hover::before {
  transform: translateX(120%);
}

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

.button.primary {
  background: linear-gradient(135deg, rgba(76, 201, 255, 0.35), rgba(123, 97, 255, 0.35));
  border: 1px solid rgba(128, 214, 255, 0.35);
  box-shadow: 0 0 26px rgba(76, 201, 255, 0.24);
}

.button.ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.project-nav-card {
  display: block;
  margin-top: 18px;
  max-width: 650px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-nav-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, rgba(76, 201, 255, 0.08), rgba(123, 97, 255, 0.18), rgba(102, 255, 242, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-nav-card > * {
  position: relative;
  z-index: 1;
}

.project-nav-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 221, 255, 0.5);
  box-shadow: 0 0 40px rgba(76, 201, 255, 0.18);
}

.project-nav-card:hover::before {
  opacity: 1;
}

.project-nav-label {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-nav-card strong {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.project-nav-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.stat-card,
.glass-card {
  background: linear-gradient(180deg, rgba(14, 20, 44, 0.72), rgba(6, 10, 24, 0.54));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
}

.stat-card strong,
.contact-card strong,
.hero-info-card strong,
.signature-bar strong,
.project-nav-card strong {
  display: block;
  color: var(--text);
}

.stat-card strong {
  margin-bottom: 8px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  perspective: 1600px;
  padding-left: 36px;
}

.hero-visual-core {
  position: relative;
  --orbit-inset: clamp(110px, 10vw, 152px);
  --orbit-x-radius: clamp(240px, 24vw, 368px);
  --orbit-y-radius: clamp(220px, 22vw, 338px);
  --orbit-z-y: clamp(250px, 24vw, 372px);
  --orbit-z-x: clamp(190px, 19vw, 294px);
  width: min(100%, 620px);
  min-height: clamp(560px, 62vw, 760px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform: translateX(34px);
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(26px);
}

.hero-deco-a {
  width: 180px;
  height: 180px;
  top: 8%;
  left: 4%;
  background: rgba(76, 201, 255, 0.16);
}

.hero-deco-b {
  width: 220px;
  height: 220px;
  right: 2%;
  bottom: 14%;
  background: rgba(123, 97, 255, 0.14);
}

.avatar-shell {
  position: relative;
  z-index: 2;
  width: clamp(260px, 30vw, 370px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: rgba(5, 8, 22, 0.88);
  border: 1px solid rgba(130, 206, 255, 0.28);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(102, 255, 242, 0.08), 0 34px 90px rgba(13, 23, 52, 0.48);
}

.avatar-core-glow {
  position: absolute;
  inset: 19%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 201, 255, 0.1), rgba(123, 97, 255, 0.08), transparent 72%);
  filter: blur(26px);
  pointer-events: none;
}

.avatar-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(76, 201, 255, 0.12), transparent 35%, transparent 65%, rgba(123, 97, 255, 0.12)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 34%);
  pointer-events: none;
}

.avatar {
  position: relative;
  z-index: 2;
  width: calc(100% - 54px);
  height: calc(100% - 54px);
  object-fit: cover;
  border-radius: 30px;
  filter: saturate(1.05) contrast(1.06);
}

.avatar-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 16, 28, 0.76);
  border: 1px solid rgba(102, 255, 242, 0.3);
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.avatar-orbit-layer {
  position: absolute;
  inset: calc(var(--orbit-inset) * -1);
  z-index: 4;
  transform-style: preserve-3d;
}

.orbit-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: clamp(132px, 14vw, 168px);
  max-width: clamp(160px, 18vw, 210px);
  padding: clamp(14px, 1.4vw, 18px) clamp(14px, 1.6vw, 20px);
  transform-style: preserve-3d;
  will-change: transform;
}

.orbit-chip strong {
  display: block;
  color: var(--text);
}

.orbit-chip-a {
  animation: orbitXFront 11s linear infinite;
}

.orbit-chip-b {
  animation: orbitXBack 14s linear infinite;
}

.orbit-chip-c {
  animation: orbitYTop 13s linear infinite;
}

.orbit-chip-d {
  animation: orbitYBottom 15s linear infinite;
}

.orbit-chip-e {
  animation: orbitZFront 12s linear infinite;
}

.orbit-chip-f {
  animation: orbitZBack 16s linear infinite;
}

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

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

.glass-card {
  border-radius: 28px;
  padding: 28px;
}

.wide-card {
  max-width: 880px;
}

.wide-card p {
  margin: 0 0 16px;
  line-height: 1.9;
  font-size: 1.03rem;
}

.wide-card p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

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

.trait-card {
  min-height: 260px;
}

.trait-index {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(102, 255, 242, 0.75);
  font-size: 1.1rem;
}

.trait-card p,
.contact-copy p,
.contact-tip {
  line-height: 1.8;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.contact-quote {
  margin-top: 20px;
  font-size: 1.05rem;
}

.contact-cards {
  display: grid;
  gap: 18px;
}

.contact-card {
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(76, 201, 255, 0.28), rgba(255, 79, 216, 0.24), rgba(102, 255, 242, 0.2));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 221, 255, 0.48);
  box-shadow: 0 0 36px rgba(76, 201, 255, 0.2);
}

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

.contact-type {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}

.contact-card strong {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.site-footer {
  padding: 20px 20px 34px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(6, 14, 28, 0.88);
  border: 1px solid rgba(102, 255, 242, 0.3);
  color: var(--text);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  z-index: 30;
}

.toast.show {
  transform: translate(-50%, 0);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(-10%, -10%) scale(1);
  }

  50% {
    transform: translate(6%, 3%) scale(1.1);
  }
}

@keyframes orbitXFront {
  0% { transform: translate(-50%, -50%) rotateZ(0deg) translateX(var(--orbit-x-radius)) translateZ(74px) rotateZ(0deg) rotateX(-9deg) scale(1.02); }
  50% { transform: translate(-50%, -50%) rotateZ(180deg) translateX(var(--orbit-x-radius)) translateZ(-72px) rotateZ(-180deg) rotateX(10deg) scale(0.9); }
  100% { transform: translate(-50%, -50%) rotateZ(360deg) translateX(var(--orbit-x-radius)) translateZ(74px) rotateZ(-360deg) rotateX(-9deg) scale(1.02); }
}

@keyframes orbitXBack {
  0% { transform: translate(-50%, -50%) rotateZ(180deg) translateX(var(--orbit-x-radius)) translateZ(-72px) rotateZ(-180deg) rotateX(10deg) scale(0.9); }
  50% { transform: translate(-50%, -50%) rotateZ(360deg) translateX(var(--orbit-x-radius)) translateZ(74px) rotateZ(-360deg) rotateX(-9deg) scale(1.02); }
  100% { transform: translate(-50%, -50%) rotateZ(540deg) translateX(var(--orbit-x-radius)) translateZ(-72px) rotateZ(-540deg) rotateX(10deg) scale(0.9); }
}

@keyframes orbitYTop {
  0% { transform: translate(-50%, -50%) rotateZ(90deg) translateX(var(--orbit-y-radius)) translateZ(66px) rotateZ(-90deg) rotateX(-12deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotateZ(270deg) translateX(var(--orbit-y-radius)) translateZ(-62px) rotateZ(-270deg) rotateX(10deg) scale(0.9); }
  100% { transform: translate(-50%, -50%) rotateZ(450deg) translateX(var(--orbit-y-radius)) translateZ(66px) rotateZ(-450deg) rotateX(-12deg) scale(1); }
}

@keyframes orbitYBottom {
  0% { transform: translate(-50%, -50%) rotateZ(270deg) translateX(var(--orbit-y-radius)) translateZ(-62px) rotateZ(-270deg) rotateX(10deg) scale(0.9); }
  50% { transform: translate(-50%, -50%) rotateZ(450deg) translateX(var(--orbit-y-radius)) translateZ(66px) rotateZ(-450deg) rotateX(-12deg) scale(1); }
  100% { transform: translate(-50%, -50%) rotateZ(630deg) translateX(var(--orbit-y-radius)) translateZ(-62px) rotateZ(-630deg) rotateX(10deg) scale(0.9); }
}

@keyframes orbitZFront {
  0% { transform: translate(-50%, -50%) translate3d(0, calc(var(--orbit-z-y) * -1), 118px) scale(1.03); }
  25% { transform: translate(-50%, -50%) translate3d(var(--orbit-z-x), 0, 36px) rotateY(-16deg) scale(0.98); }
  50% { transform: translate(-50%, -50%) translate3d(0, var(--orbit-z-y), -108px) scale(0.88); }
  75% { transform: translate(-50%, -50%) translate3d(calc(var(--orbit-z-x) * -1), 0, 30px) rotateY(16deg) scale(0.98); }
  100% { transform: translate(-50%, -50%) translate3d(0, calc(var(--orbit-z-y) * -1), 118px) scale(1.03); }
}

@keyframes orbitZBack {
  0% { transform: translate(-50%, -50%) translate3d(0, var(--orbit-z-y), -108px) scale(0.88); }
  25% { transform: translate(-50%, -50%) translate3d(calc(var(--orbit-z-x) * -1), 0, 24px) rotateY(16deg) scale(0.96); }
  50% { transform: translate(-50%, -50%) translate3d(0, calc(var(--orbit-z-y) * -1), 118px) scale(1.03); }
  75% { transform: translate(-50%, -50%) translate3d(var(--orbit-z-x), 0, 28px) rotateY(-16deg) scale(0.96); }
  100% { transform: translate(-50%, -50%) translate3d(0, var(--orbit-z-y), -108px) scale(0.88); }
}

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

  .hero {
    padding-top: 10px;
  }

  .hero-copy {
    align-self: auto;
    padding-top: 0;
  }

  .hero-visual {
    min-height: 520px;
    order: -1;
    padding-left: 0;
  }

  .hero-visual-core {
    --orbit-inset: 110px;
    --orbit-x-radius: 250px;
    --orbit-y-radius: 228px;
    --orbit-z-y: 260px;
    --orbit-z-x: 198px;
    min-height: 520px;
    transform: translateX(18px);
  }

  .orbit-chip {
    min-width: 152px;
    max-width: 180px;
    padding: 16px 17px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .site-header {
    padding: 18px 18px 6px;
    flex-direction: column;
    gap: 14px;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 28px 0 44px;
  }

  .hero {
    gap: 28px;
    min-height: auto;
  }

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

  .project-nav-card {
    max-width: none;
  }

  .avatar-shell {
    width: min(340px, 88vw);
    border-radius: 28px;
  }

  .avatar {
    border-radius: 22px;
  }

  .hero-visual-core {
    min-height: auto;
    gap: 16px;
  }

  .avatar-orbit-layer {
    display: none;
  }

  .avatar-core-glow {
    display: none;
  }

  .hero-visual {
    padding-left: 0;
  }

  .hero-visual-core {
    transform: none;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .glass-card,
  .stat-card {
    padding: 22px;
  }
}

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

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

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

  .orbit-chip {
    animation: none;
    transform: none;
  }

}
