:root {
  --bg: #030713;
  --panel: rgba(14, 24, 54, 0.64);
  --panel-strong: rgba(20, 34, 78, 0.78);
  --text: #ecf6ff;
  --muted: #a9bbd8;
  --cyan: #44e8ff;
  --blue: #4b7dff;
  --purple: #a855f7;
  --pink: #ff5bc8;
  --line: rgba(122, 209, 255, 0.28);
  --shadow: 0 0 38px rgba(68, 232, 255, 0.28);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 15%, rgba(68, 232, 255, 0.16), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(168, 85, 247, 0.17), transparent 30%),
    radial-gradient(circle at 52% 78%, rgba(75, 125, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #02040b 0%, #061634 46%, #120724 100%);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

#starfield,
.cursor-glow,
.page-fade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: -3;
}

.cursor-glow {
  z-index: -1;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(68, 232, 255, 0.17), transparent 24rem);
  mix-blend-mode: screen;
}

.page-fade {
  z-index: -2;
  background:
    linear-gradient(rgba(68, 232, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 82%, transparent 100%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  width: min(1120px, calc(100% - 32px));
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 10, 25, 0.7);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32), inset 0 0 24px rgba(68, 232, 255, 0.08);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(68, 232, 255, 0.5);
  color: #051020;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(68, 232, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(68, 232, 255, 0.12), 0 0 18px rgba(168, 85, 247, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--cyan);
  border-radius: 2px;
}

.section {
  position: relative;
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
}

.hero-grid,
.split-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.28rem;
}

.gradient-text,
.section-heading h2,
.dream-slogan strong {
  background: linear-gradient(100deg, #fff 0%, var(--cyan) 30%, var(--purple) 68%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShine 5s ease-in-out infinite;
}

.subtitle {
  color: #dceaff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
}

.intro,
.glass-panel p,
.project-card p,
.dream-list,
.contact-panel {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.glow-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(68, 232, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #effaff;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(68, 232, 255, 0.16);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glow-button::before {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.36), transparent 64%);
  transform: translateX(-70%) rotate(8deg);
  transition: transform 0.45s ease;
}

.glow-button:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 28px rgba(68, 232, 255, 0.4), 0 0 50px rgba(168, 85, 247, 0.22);
}

.glow-button:hover::before {
  transform: translateX(70%) rotate(8deg);
}

.glow-button:active {
  transform: scale(0.96);
}

.glow-button.primary {
  background: linear-gradient(135deg, rgba(68, 232, 255, 0.92), rgba(168, 85, 247, 0.92));
  color: #06101f;
  box-shadow: 0 0 30px rgba(68, 232, 255, 0.42);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.hero-stats div,
.glass-panel,
.skills-board,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 28px rgba(68, 232, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.26);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--cyan);
}

.hero-stats span {
  color: var(--muted);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.tech-ring {
  position: absolute;
  border: 1px solid rgba(68, 232, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(68, 232, 255, 0.1), 0 0 40px rgba(168, 85, 247, 0.18);
}

.ring-one {
  width: min(430px, 90vw);
  aspect-ratio: 1;
  animation: spin 18s linear infinite;
}

.ring-two {
  width: min(330px, 70vw);
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 12s linear infinite reverse;
}

.circuit-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: drop-shadow(0 0 12px var(--cyan));
}

.line-a {
  width: 220px;
  top: 22%;
  right: 4%;
  transform: rotate(-18deg);
}

.line-b {
  width: 250px;
  bottom: 20%;
  left: 3%;
  transform: rotate(22deg);
}

.chip {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(68, 232, 255, 0.5);
  border-radius: 18px;
  background: rgba(8, 20, 48, 0.78);
  box-shadow: 0 0 24px rgba(68, 232, 255, 0.25);
  animation: float 4s ease-in-out infinite;
}

.chip::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.chip span {
  position: absolute;
  width: 14px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.chip span:nth-child(1) { left: -12px; top: 25px; }
.chip span:nth-child(2) { left: -12px; top: 56px; }
.chip span:nth-child(3) { right: -12px; top: 25px; }
.chip span:nth-child(4) { right: -12px; top: 56px; }

.chip-one {
  top: 18%;
  left: 7%;
}

.chip-two {
  right: 6%;
  bottom: 13%;
  animation-delay: -1.5s;
}

.robot {
  position: relative;
  z-index: 2;
  width: 250px;
  animation: float 5s ease-in-out infinite;
}

.antenna {
  width: 6px;
  height: 54px;
  margin: 0 auto -4px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.antenna::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 24px var(--pink);
}

.robot-head,
.robot-body {
  border: 2px solid rgba(68, 232, 255, 0.55);
  background: linear-gradient(145deg, rgba(240, 250, 255, 0.92), rgba(122, 209, 255, 0.18));
  box-shadow: 0 0 40px rgba(68, 232, 255, 0.46), inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.robot-head {
  height: 150px;
  border-radius: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.robot-eye {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 14%, var(--cyan) 15% 55%, #092241 56%);
  box-shadow: 0 0 24px var(--cyan);
  animation: blink 5s infinite;
}

.robot-smile {
  position: absolute;
  bottom: 34px;
  width: 58px;
  height: 20px;
  border-bottom: 4px solid #0e2350;
  border-radius: 0 0 40px 40px;
}

.robot-body {
  position: relative;
  width: 185px;
  height: 140px;
  margin: 14px auto 0;
  border-radius: 32px;
}

.core {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--cyan) 36%, var(--purple) 70%);
  box-shadow: 0 0 34px var(--cyan);
  transform: translateX(-50%);
}

.panel-bars {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.panel-bars i {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: #13214b;
}

.robot-shadow {
  width: 170px;
  height: 22px;
  margin: 24px auto 0;
  border-radius: 50%;
  background: rgba(68, 232, 255, 0.22);
  filter: blur(14px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.glass-panel {
  padding: 34px;
}

.quote-line {
  margin: 24px 0 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
}

.learning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.learning-list span {
  padding: 15px 18px;
  border: 1px solid rgba(68, 232, 255, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(68, 232, 255, 0.13), rgba(168, 85, 247, 0.14));
  color: #eaf8ff;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(68, 232, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learning-list span:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.project-card {
  position: relative;
  contain: paint;
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(68, 232, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(68, 232, 255, 0.12), rgba(168, 85, 247, 0.13)),
    rgba(11, 21, 49, 0.65);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06), 0 22px 70px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  z-index: -1;
  background: conic-gradient(from 180deg, transparent, rgba(68, 232, 255, 0.35), transparent, rgba(168, 85, 247, 0.35), transparent);
  animation: spin 9s linear infinite;
  opacity: 0.55;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow: 0 0 42px rgba(68, 232, 255, 0.28), 0 28px 90px rgba(0, 0, 0, 0.38);
}

.project-art {
  position: relative;
  height: 150px;
  margin-bottom: 22px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(68, 232, 255, 0.28), rgba(168, 85, 247, 0.28));
}

.project-art::before,
.project-art::after {
  content: "";
  position: absolute;
}

.art-city::before {
  inset: auto 18px 20px;
  height: 72px;
  background:
    linear-gradient(to top, #5be7ff 0 52%, transparent 52%) 0 100% / 24px 100%,
    linear-gradient(to top, #a855f7 0 74%, transparent 74%) 38px 100% / 28px 100%,
    linear-gradient(to top, #ffffff 0 38%, transparent 38%) 84px 100% / 22px 100%,
    linear-gradient(to top, #4b7dff 0 64%, transparent 64%) 126px 100% / 26px 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 16px var(--cyan));
}

.art-city::after {
  width: 58px;
  height: 58px;
  right: 25px;
  top: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--cyan), transparent 72%);
}

.art-video::before {
  inset: 32px 36px;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 20px var(--cyan);
}

.art-video::after {
  left: 50%;
  top: 50%;
  border-left: 38px solid #fff;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  transform: translate(-36%, -50%);
  filter: drop-shadow(0 0 16px var(--cyan));
}

.art-game::before {
  left: 30px;
  top: 30px;
  width: 112px;
  height: 76px;
  border: 4px solid #fff;
  border-radius: 28px;
  box-shadow: 0 0 22px var(--cyan);
}

.art-game::after {
  left: 56px;
  top: 58px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 64px 0 0 #fff, 92px -14px 0 var(--pink), 92px 16px 0 var(--cyan);
}

.art-site::before {
  inset: 30px 26px;
  border-radius: 16px;
  border: 3px solid #fff;
  box-shadow: 0 0 22px var(--cyan);
}

.art-site::after {
  left: 46px;
  right: 46px;
  top: 58px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 24px 0 var(--purple), 0 48px 0 rgba(255, 255, 255, 0.86);
}

.difficulty {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.difficulty span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(68, 232, 255, 0.1);
  color: #dff9ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.showcase-lab,
.game-lab {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(68, 232, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(68, 232, 255, 0.1), rgba(168, 85, 247, 0.12)),
    rgba(7, 13, 33, 0.66);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.showcase-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.showcase-heading h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.showcase-heading p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

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

.ai-gallery-card {
  position: relative;
  min-height: 220px;
  margin: 0;
  border: 1px solid rgba(68, 232, 255, 0.28);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 34px rgba(68, 232, 255, 0.26), 0 24px 70px rgba(0, 0, 0, 0.35);
}

.ai-gallery-card::before,
.ai-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ai-gallery-card::after {
  background: linear-gradient(to top, rgba(3, 7, 19, 0.78), transparent 60%);
}

.ai-gallery-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
}

.gallery-city::before {
  background:
    radial-gradient(circle at 74% 20%, #fff 0 4%, var(--cyan) 5% 13%, transparent 14%),
    linear-gradient(to top, rgba(68, 232, 255, 0.75) 0 34%, transparent 35%) 12% 100% / 16% 62% no-repeat,
    linear-gradient(to top, rgba(168, 85, 247, 0.78) 0 44%, transparent 45%) 36% 100% / 18% 74% no-repeat,
    linear-gradient(to top, rgba(75, 125, 255, 0.82) 0 50%, transparent 51%) 65% 100% / 20% 84% no-repeat,
    linear-gradient(135deg, #09204b, #26105c);
}

.gallery-space::before {
  background:
    radial-gradient(circle at 30% 30%, #fff 0 2%, transparent 3%),
    radial-gradient(circle at 70% 24%, var(--cyan) 0 3%, transparent 4%),
    radial-gradient(circle at 48% 55%, #ffebff 0 9%, #9b5cff 10% 17%, transparent 18%),
    linear-gradient(135deg, #061231, #22104c);
}

.gallery-space::after {
  background:
    linear-gradient(to top, rgba(3, 7, 19, 0.72), transparent 58%),
    linear-gradient(110deg, transparent 40%, rgba(68, 232, 255, 0.75) 41% 43%, transparent 44%);
}

.gallery-robot::before {
  background:
    radial-gradient(circle at 50% 38%, var(--cyan) 0 9%, transparent 10%),
    linear-gradient(#d9f8ff, #78dfff) 34% 34% / 32% 27% no-repeat,
    linear-gradient(#c3f3ff, #8b6bff) 39% 64% / 22% 22% no-repeat,
    linear-gradient(135deg, #07152f, #251158);
}

.gallery-video::before {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.86) 19% 22%, transparent 23% 77%, rgba(255, 255, 255, 0.86) 78% 81%, transparent 82%),
    radial-gradient(circle at 50% 50%, rgba(68, 232, 255, 0.48), transparent 36%),
    linear-gradient(135deg, #081a3c, #2b0d51);
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.game-tab,
.mini-button,
.direction-pad button,
.space-pad button,
.word-options button,
.mole-hole {
  border: 1px solid rgba(68, 232, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
  color: #effaff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.game-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

.game-tab:hover,
.game-tab.active,
.mini-button:hover,
.direction-pad button:hover,
.space-pad button:hover,
.word-options button:hover,
.mole-hole:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(68, 232, 255, 0.28), rgba(168, 85, 247, 0.22));
  box-shadow: 0 0 24px rgba(68, 232, 255, 0.25);
}

.game-panel {
  display: none;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 24px;
  align-items: center;
}

.game-panel.active {
  display: grid;
}

.game-stage,
.mole-board,
.word-card {
  border: 1px solid rgba(68, 232, 255, 0.32);
  border-radius: 24px;
  background: rgba(3, 10, 28, 0.7);
  box-shadow: inset 0 0 26px rgba(68, 232, 255, 0.08), 0 20px 55px rgba(0, 0, 0, 0.28);
}

.game-stage {
  display: grid;
  place-items: center;
  padding: 16px;
}

.game-stage canvas {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: rgba(2, 8, 22, 0.9);
}

.game-controls {
  color: var(--muted);
  line-height: 1.7;
}

.game-controls h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.45rem;
}

.game-controls label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  color: #dff9ff;
  font-weight: 900;
}

.game-controls select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(68, 232, 255, 0.36);
  border-radius: 12px;
  background: #07152f;
  color: #fff;
}

.score-line {
  margin-bottom: 14px;
  color: #dff9ff;
  font-weight: 900;
}

.score-line strong {
  color: var(--cyan);
}

.mini-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

.direction-pad,
.space-pad {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.direction-pad button,
.space-pad button {
  min-width: 48px;
  min-height: 42px;
  border-radius: 14px;
}

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

.mole-hole {
  position: relative;
  min-height: 90px;
  border-radius: 18px;
  overflow: hidden;
}

.mole-hole::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 54px;
  height: 22px;
  border-radius: 50%;
  background: rgba(68, 232, 255, 0.22);
  transform: translateX(-50%);
}

.mole-hole.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 46px;
  height: 54px;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 34% 34%, #07152f 0 7%, transparent 8%),
    radial-gradient(circle at 66% 34%, #07152f 0 7%, transparent 8%),
    linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(68, 232, 255, 0.55);
  transform: translateX(-50%);
  animation: popUp 0.18s ease;
}

.word-card {
  min-height: 310px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.word-card span {
  color: var(--cyan);
  font-weight: 900;
}

.word-card strong {
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: #fff;
  text-shadow: 0 0 24px rgba(68, 232, 255, 0.36);
}

.word-card p {
  color: var(--muted);
}

.word-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.word-options button {
  min-height: 46px;
  border-radius: 14px;
}

@keyframes popUp {
  from { transform: translateX(-50%) translateY(24px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.skills-board {
  display: grid;
  gap: 22px;
  padding: 30px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-weight: 900;
}

.skill-info strong {
  color: var(--cyan);
}

.progress {
  height: 16px;
  border: 1px solid rgba(68, 232, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), var(--pink));
  box-shadow: 0 0 22px rgba(68, 232, 255, 0.8);
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dream-stage {
  position: relative;
  min-height: 560px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 74% 20%, rgba(68, 232, 255, 0.2), transparent 24%),
    radial-gradient(circle at 18% 74%, rgba(168, 85, 247, 0.22), transparent 28%),
    rgba(7, 13, 33, 0.64);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.dream-list {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 430px;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dream-list li {
  padding: 15px 18px;
  border: 1px solid rgba(68, 232, 255, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf9ff;
  font-weight: 800;
}

.dream-slogan {
  position: absolute;
  left: 42px;
  bottom: 42px;
  z-index: 2;
  margin: 0;
}

.dream-slogan span,
.dream-slogan strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1.12;
}

.earth {
  position: absolute;
  right: 120px;
  bottom: 76px;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.9), transparent 10%),
    radial-gradient(circle at 42% 58%, #43ffb8 0 18%, transparent 19%),
    radial-gradient(circle at 66% 38%, #43ffb8 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, #4bd8ff, #2457ff 62%, #10214f);
  box-shadow: 0 0 46px rgba(68, 232, 255, 0.48);
  animation: float 6s ease-in-out infinite;
}

.future-city {
  position: absolute;
  right: 34px;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  opacity: 0.85;
}

.future-city span {
  width: 34px;
  border: 1px solid rgba(68, 232, 255, 0.5);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to top, rgba(68, 232, 255, 0.26), rgba(168, 85, 247, 0.14));
  box-shadow: 0 0 18px rgba(68, 232, 255, 0.18);
}

.future-city span:nth-child(1) { height: 92px; }
.future-city span:nth-child(2) { height: 140px; }
.future-city span:nth-child(3) { height: 190px; }
.future-city span:nth-child(4) { height: 116px; }
.future-city span:nth-child(5) { height: 162px; }

.rocket {
  position: absolute;
  right: 240px;
  top: 78px;
  width: 74px;
  height: 150px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(135deg, #fff, #9aefff 45%, #a855f7);
  box-shadow: 0 0 34px rgba(68, 232, 255, 0.45);
  transform: rotate(28deg);
  animation: rocketMove 4s ease-in-out infinite;
}

.rocket::before,
.rocket::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 24px;
  height: 44px;
  border-radius: 18px 18px 4px 4px;
  background: #5d7dff;
}

.rocket::before { left: -13px; }
.rocket::after { right: -13px; }

.rocket-window {
  width: 30px;
  height: 30px;
  margin: 36px auto 0;
  border: 4px solid #17305e;
  border-radius: 50%;
  background: var(--cyan);
}

.rocket-flame {
  position: absolute;
  left: 50%;
  bottom: -46px;
  width: 34px;
  height: 62px;
  border-radius: 50% 50% 48% 48%;
  background: linear-gradient(#fff, var(--cyan), var(--pink));
  filter: blur(1px) drop-shadow(0 0 18px var(--pink));
  transform: translateX(-50%);
  animation: flame 0.18s alternate infinite;
}

.meteor {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, var(--cyan));
  filter: drop-shadow(0 0 10px var(--cyan));
  transform: rotate(-22deg);
  animation: meteor 5s linear infinite;
}

.meteor-one {
  top: 70px;
  left: -180px;
}

.meteor-two {
  top: 190px;
  left: -260px;
  animation-delay: 2.4s;
  animation-duration: 6.5s;
}

.contact {
  padding-top: 70px;
}

.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 42px;
  text-align: center;
}

.email-link {
  display: inline-block;
  color: var(--cyan);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
  word-break: break-all;
  text-shadow: 0 0 18px rgba(68, 232, 255, 0.36);
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 36px 0 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

@keyframes textShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.16); }
}

@keyframes rocketMove {
  0%, 100% { transform: translateY(0) rotate(28deg); }
  50% { transform: translateY(-20px) rotate(28deg); }
}

@keyframes flame {
  from { transform: translateX(-50%) scaleY(0.78); }
  to { transform: translateX(-50%) scaleY(1.08); }
}

@keyframes meteor {
  0% { transform: translateX(0) translateY(0) rotate(-22deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateX(125vw) translateY(260px) rotate(-22deg); opacity: 0; }
}

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

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

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

  .game-panel,
  .game-panel.active {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    height: 62px;
    border-radius: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(4, 9, 24, 0.94);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .brand span:last-child {
    display: none;
  }

  .section {
    width: min(100% - 24px, 1120px);
    padding: 78px 0;
  }

  .hero {
    padding-top: 112px;
  }

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

  .hero-visual {
    min-height: 380px;
  }

  .robot {
    width: 205px;
  }

  .robot-head {
    height: 126px;
  }

  .chip {
    width: 70px;
    height: 70px;
  }

  .project-card {
    min-height: 320px;
  }

  .showcase-lab,
  .game-lab {
    padding: 18px;
  }

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

  .ai-gallery-card {
    min-height: 180px;
  }

  .word-options {
    grid-template-columns: 1fr;
  }

  .mole-hole {
    min-height: 76px;
  }

  .dream-stage {
    min-height: 680px;
    padding: 24px;
  }

  .dream-slogan {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }

  .earth {
    right: 42px;
    bottom: 170px;
    width: 126px;
  }

  .rocket {
    right: 112px;
    top: 238px;
    width: 58px;
    height: 118px;
  }

  .future-city {
    right: 10px;
  }

  .site-footer {
    display: grid;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
