:root {
  --bg: #07090f;
  --bg-2: #0d1117;
  --bg-3: #111822;
  --card: rgba(13, 17, 23, 0.82);
  --white: #f0f4ff;
  --muted: #7a8ba8;
  --cyan: #00d4ff;
  --purple: #7b2fbe;
  --purple-2: #9b59d9;
  --border: rgba(0, 212, 255, 0.14);
  --border-strong: rgba(0, 212, 255, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --container: min(1400px, calc(100% - 2rem));
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

body.intro-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

button,
input,
textarea {
  font: inherit;
}

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

button {
  border: 0;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--bg);
  font-weight: 700;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro-game {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(123, 47, 190, 0.16), transparent 26%),
    rgba(3, 6, 10, 0.9);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition:
    opacity 320ms ease,
    visibility 320ms ease;
}

.intro-game.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-game.is-hidden {
  display: none;
}

.intro-shell {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 0.95fr);
  gap: 3rem;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 2.5rem));
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.07), transparent 28%),
    radial-gradient(circle at bottom left, rgba(123, 47, 190, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(10, 13, 19, 0.98), rgba(8, 11, 16, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.intro-shell::before,
.intro-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
}

.intro-shell::before {
  top: -60px;
  right: -30px;
  width: 220px;
  height: 220px;
  background: rgba(0, 212, 255, 0.16);
}

.intro-shell::after {
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: rgba(123, 47, 190, 0.18);
}

.intro-skip {
  position: absolute;
  top: 1.45rem;
  right: 1.45rem;
  z-index: 5;
  padding: 0.82rem 1.05rem;
  border: 1px solid rgba(240, 244, 255, 0.1);
  border-radius: 999px;
  background: rgba(12, 17, 24, 0.72);
  color: #9aa9c1;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.intro-skip:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--white);
}

.intro-copy,
.intro-playfield {
  position: relative;
  z-index: 1;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  max-width: 31rem;
  padding-right: 0.5rem;
}

.intro-kicker {
  margin: 0;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.25rem, 7vw, 5.35rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.intro-description {
  max-width: 29rem;
  margin: 0;
  color: #91a0ba;
  font-size: 1.02rem;
  line-height: 1.85;
}

.intro-description strong {
  color: var(--white);
  font-weight: 700;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.intro-meta span {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(240, 244, 255, 0.9);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-playfield {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-arena {
  position: relative;
  width: min(100%, 560px);
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 12%, rgba(0, 212, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.96), rgba(9, 12, 18, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.intro-arena-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.intro-arena-label {
  margin: 0;
  color: rgba(0, 212, 255, 0.9);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-arena-subtitle {
  margin: 0 0 1.4rem;
  color: #93a4bf;
  font-size: 0.92rem;
}

.intro-name {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  justify-content: center;
  margin: 0 0 1.35rem;
  padding: 0.1rem 0 0.2rem;
}

.intro-name-letter {
  display: inline-block;
  color: rgba(240, 244, 255, 0.08);
  font-family: "Syne", sans-serif;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  transform: translateY(10px) scale(0.985);
  transition:
    transform 260ms ease,
    color 260ms ease,
    text-shadow 260ms ease,
    opacity 260ms ease;
}

.intro-name-letter.is-revealed {
  color: var(--white);
  opacity: 1;
  text-shadow:
    0 0 18px rgba(0, 212, 255, 0.14),
    0 0 44px rgba(0, 212, 255, 0.08);
  transform: translateY(0) scale(1);
}

.intro-name.is-complete .intro-name-letter {
  animation: intro-letter-flash 520ms ease both;
}

.intro-name.is-complete .intro-name-letter:nth-child(2) {
  animation-delay: 50ms;
}

.intro-name.is-complete .intro-name-letter:nth-child(3) {
  animation-delay: 100ms;
}

.intro-name.is-complete .intro-name-letter:nth-child(4) {
  animation-delay: 150ms;
}

.intro-name.is-complete .intro-name-letter:nth-child(5) {
  animation-delay: 200ms;
}

.intro-progress {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.intro-progress-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.intro-progress-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: rgba(240, 244, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.intro-progress-dot.is-active {
  background: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.15),
    0 0 18px rgba(0, 212, 255, 0.28);
  transform: scale(1.08);
}

.intro-spark-zone {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.96), rgba(8, 11, 17, 0.98));
  background-size: 40px 40px, 40px 40px, auto, auto;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.intro-spark-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.intro-spark-zone.is-hit {
  border-color: rgba(0, 212, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.1);
}

.intro-spark-zone.is-finished::after {
  opacity: 1;
}

.intro-arena.is-unlocking {
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.intro-spark-aura {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.5;
  pointer-events: none;
}

.intro-spark-aura-one {
  top: 12%;
  left: 10%;
  width: 120px;
  height: 120px;
  background: rgba(123, 47, 190, 0.2);
}

.intro-spark-aura-two {
  right: 8%;
  bottom: 12%;
  width: 160px;
  height: 160px;
  background: rgba(0, 212, 255, 0.16);
}

.intro-spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 82px;
  height: 82px;
  --spark-x: 0px;
  --spark-y: 0px;
  --spark-scale: 1;
  --spark-opacity: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: var(--spark-opacity);
  transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(var(--spark-scale));
  transition:
    opacity 180ms ease,
    filter 180ms ease;
  will-change: transform, opacity;
}

.intro-spark:hover {
  filter: brightness(1.08);
}

.intro-spark-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, #ffffff, rgba(255, 255, 255, 0.96) 18%, #9df7ff 34%, #29defa 58%, rgba(0, 212, 255, 0.12) 74%, transparent 78%);
  box-shadow:
    0 0 0 12px rgba(0, 212, 255, 0.05),
    0 0 36px rgba(0, 212, 255, 0.32),
    0 0 90px rgba(0, 212, 255, 0.14);
}

.intro-spark::before,
.intro-spark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.55;
}

.intro-spark::after {
  inset: -2px;
  border-color: rgba(0, 212, 255, 0.22);
  opacity: 0.4;
}

.intro-feedback {
  min-height: 1.5rem;
  margin-top: 1.1rem;
  text-align: center;
  color: #90a3bf;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
  filter: blur(120px);
}

.orb-one {
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.9), transparent 70%);
  animation: float-orb 12s ease-in-out infinite alternate;
}

.orb-two {
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.9), transparent 70%);
  animation: float-orb 15s ease-in-out infinite alternate-reverse;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 15, 0.76);
  border-bottom: 1px solid var(--border);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
}

.logo {
  position: relative;
  z-index: 3;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.logo span {
  color: var(--white);
  opacity: 0.45;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

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

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(240, 244, 255, 0.2);
  background: transparent;
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.menu-cta {
  display: none;
}

.section {
  position: relative;
  z-index: 1;
  padding: 8rem 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero-tag,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.05);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-tag::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.hero-name {
  margin: 1.4rem 0 0.6rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-title {
  min-height: 2.5rem;
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--muted);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.3rem;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-desc {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-panel {
  justify-self: end;
  width: 100%;
}

.hero-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.9), rgba(17, 24, 34, 0.82)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-pill {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 1.25rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-metrics article {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics small {
  display: block;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-metrics strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.5;
}

.scroll-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.section-scroll {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
  text-align: center;
}

.scroll-link::after {
  content: "";
  display: block;
  width: 1px;
  margin: 0.75rem auto 0;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

.hero-scroll::after {
  height: 3rem;
}

.section-scroll::after {
  height: 2.1rem;
}

.section-scroll-up::before {
  content: "";
  display: block;
  width: 1px;
  height: 2.1rem;
  margin: 0 auto 0.75rem;
  background: linear-gradient(to top, var(--cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

.section-scroll-up::after {
  display: none;
}

.hero-scroll {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  margin: 0 0 0.85rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-label-tight {
  margin-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--cyan);
}

.section-layout {
  display: grid;
  gap: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-text strong {
  color: var(--white);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
}

.stat-box {
  padding: 2rem;
  text-align: center;
  background: var(--bg-2);
  transition: background-color 180ms ease;
}

.stat-box:hover {
  background: var(--bg-3);
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
}

.stat-label {
  margin-top: 0.45rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-grid,
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

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

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.skill-card,
.project-card,
.contact-card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

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

.skill-icon {
  display: inline-block;
  margin-bottom: 0.15rem;
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.skill-name {
  margin: 1rem 0 0.45rem;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.skill-desc {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.skill-level {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  overflow: hidden;
  border-radius: 16px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.project-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  overflow: hidden;
  cursor: pointer;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13, 17, 23, 0.92));
}

.project-thumb:hover .project-mark {
  color: var(--white);
}

.project-thumb:hover .project-badge {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.18);
}

.thumb-commerce {
  background: linear-gradient(135deg, #0d1117 0%, #162032 50%, #0d1117 100%);
}

.thumb-chat {
  background: linear-gradient(135deg, #100d1d 0%, #1a1230 50%, #100d1d 100%);
}

.thumb-finance {
  background: linear-gradient(135deg, #0a1a10 0%, #0f2818 50%, #0a1a10 100%);
}

.thumb-food {
  background: linear-gradient(135deg, #1a0d10 0%, #2a1218 50%, #1a0d10 100%);
}

.project-mark {
  position: relative;
  z-index: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 244, 255, 0.84);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live {
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
}

.badge-wip {
  border: 1px solid rgba(155, 89, 217, 0.3);
  background: rgba(155, 89, 217, 0.12);
  color: var(--purple-2);
}

.project-body {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.project-title {
  margin: 0 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
}

.project-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.project-footer {
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--border);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 180ms ease;
}

.project-link:hover {
  color: var(--cyan);
}

#contact {
  text-align: center;
}

.contact-card {
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.94), rgba(17, 24, 34, 0.9)),
    var(--card);
}

.contact-card h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-copy {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--cyan);
}

.contact-cta {
  margin-top: 2rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-row p {
  margin: 0;
}

.footer-row span {
  color: var(--cyan);
}

.footer-separator {
  margin: 0 0.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-delay {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

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

.nav-link:focus-visible,
.btn:focus-visible,
.social-btn:focus-visible,
.project-link:focus-visible,
.section-scroll:focus-visible,
.hero-scroll:focus-visible,
.nav-toggle:focus-visible,
.intro-skip:focus-visible,
.intro-spark:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes float-orb {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(40px, 40px);
  }
}

@keyframes intro-letter-flash {
  0% {
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 18px rgba(0, 212, 255, 0.14),
      0 0 44px rgba(0, 212, 255, 0.08);
  }

  40% {
    transform: translateY(-4px) scale(1.08);
    text-shadow:
      0 0 24px rgba(255, 255, 255, 0.2),
      0 0 54px rgba(0, 212, 255, 0.24);
  }

  100% {
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 18px rgba(0, 212, 255, 0.14),
      0 0 44px rgba(0, 212, 255, 0.08);
  }
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width: 1024px) {
  .intro-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5rem;
    gap: 2rem;
  }

  .intro-copy {
    max-width: none;
    padding-right: 0;
  }

  .intro-description {
    max-width: none;
  }

  .intro-arena {
    max-width: 36rem;
    margin-inline: auto;
  }

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

  .hero-panel {
    justify-self: stretch;
  }

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

@media (max-width: 840px) {
  .intro-game {
    padding: 1rem;
    overflow-y: auto;
  }

  .intro-shell {
    gap: 1.4rem;
  }

  .intro-meta {
    gap: 0.65rem;
  }

  .intro-progress {
    padding: 0.85rem 0.95rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(13, 17, 23, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-header.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-cta {
    display: inline-flex;
    margin-top: 0.4rem;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-scroll,
  .section-scroll {
    display: none;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .intro-game {
    padding: 0.6rem;
  }

  .intro-shell {
    padding: 4.5rem 1rem 1rem;
    border-radius: 24px;
  }

  .intro-skip {
    top: 0.9rem;
    right: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

  .intro-title {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .intro-description {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .intro-meta span {
    width: 100%;
    justify-content: center;
  }

  .intro-arena {
    padding: 1rem;
    border-radius: 24px;
  }

  .intro-arena-head {
    align-items: center;
  }

  .intro-spark-zone {
    min-height: 320px;
  }

  .intro-spark {
    width: 74px;
    height: 74px;
  }

  .intro-name {
    gap: 0.2rem;
  }

  .intro-name-letter {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .intro-progress {
    min-width: 0;
  }

  .navbar {
    min-height: 5rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .hero-card,
  .contact-card,
  .skill-card {
    padding: 1.5rem;
  }

  .hero-metrics,
  .about-stats,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-links,
  .project-actions,
  .hero-actions {
    flex-direction: column;
  }

  .contact-card {
    padding: 2rem 1.4rem;
  }

  .project-footer,
  .project-body {
    padding-inline: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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

  .skill-bar {
    transition: none;
  }
}
