﻿:root {
  --bg-0: #f7f7f7;
  --bg-1: #ffffff;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(0, 0, 0, 0.14);
  --text: #101010;
  --muted: #4e4e4e;
  --accent: #0e0e0e;
  --accent-soft: #f0f0f0;
  --danger: #1b1b1b;
  --header-h: 72px;
}

body[data-theme="dark"] {
  --bg-0: #0f1218;
  --bg-1: #191e27;
  --surface: rgba(27, 32, 42, 0.76);
  --surface-strong: rgba(32, 39, 51, 0.9);
  --line: rgba(235, 242, 255, 0.17);
  --text: #f4f7ff;
  --muted: #b9c2d6;
  --accent: #f4f7ff;
  --accent-soft: #273245;
}

body[data-theme="dim"] {
  --bg-0: #152433;
  --bg-1: #1d2f40;
  --surface: rgba(26, 43, 60, 0.76);
  --surface-strong: rgba(31, 52, 72, 0.9);
  --line: rgba(167, 211, 245, 0.22);
  --text: #ecf6ff;
  --muted: #bdd0e3;
  --accent: #f3fbff;
  --accent-soft: #274560;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -4%, rgba(0, 0, 0, 0.1), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(0, 0, 0, 0.07), transparent 36%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 8% -4%, rgba(255, 255, 255, 0.09), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.07), transparent 36%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

body[data-theme="dim"] {
  background:
    radial-gradient(circle at 8% -4%, rgba(169, 214, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 176, 229, 0.1), transparent 36%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

body[data-theme="dark"] .noise-overlay {
  opacity: 0.05;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.22) 0.8px, transparent 1.5px);
}

body[data-theme="dim"] .noise-overlay {
  opacity: 0.08;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(190, 220, 255, 0.24) 0.8px, transparent 1.5px);
}
a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.06;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(0, 0, 0, 0.28) 0.8px, transparent 1.5px);
  background-size: 6px 6px;
}

.parallax-layer {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -2;
  will-change: transform;
}

.layer-back {
  background:
    radial-gradient(circle at 28% 42%, rgba(0, 0, 0, 0.11), transparent 40%),
    radial-gradient(circle at 72% 58%, rgba(0, 0, 0, 0.08), transparent 45%);
}

.layer-mid {
  background:
    conic-gradient(from 120deg at 70% 0%, rgba(0, 0, 0, 0.08), transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(0, 0, 0, 0.05), transparent 37%);
}

.layer-front {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, transparent 38%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.06) 0%, transparent 40%);
}

.glass {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(1100px, calc(100% - 2rem));
  min-height: var(--header-h);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #080808;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
}

.site-header nav a {
  font-size: 0.94rem;
  color: #4b4b4b;
  position: relative;
  transition: color 0.25s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #000, #565656);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--text);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: calc(var(--header-h) + 4.2rem) clamp(1rem, 4vw, 4rem) 4rem;
  display: grid;
  align-items: center;
}

.section-inner {
  contain: paint;
  width: min(1120px, 100%);
  margin-inline: auto;
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2.3rem);
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: #090909;
}

.kicker {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1b1b1b;
  font-size: 0.9rem;
  margin-bottom: 0.95rem;
}

.hero-panel {
  position: relative;
}

.hero-grid {
  width: min(1140px, 100%);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(300px, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
}

.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5.8vw, 4.6rem);
  line-height: 1.03;
  color: #0d0d0d;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.hero-sub {
  margin-top: 1.1rem;
  max-width: 58ch;
  color: var(--muted);
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-btn,
.ghost-btn {
  padding: 0.68rem 1.08rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.primary-btn {
  background: #121212;
  border: 1px solid #121212;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: #171717;
}

.primary-btn:hover,
.ghost-btn:hover,
.primary-btn:focus-visible,
.ghost-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.hero-card {
  position: relative;
  border-radius: 20px;
  padding: 1rem;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.36) 42%, rgba(228, 228, 228, 0.45)),
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.9), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(196, 196, 196, 0.3), transparent 48%);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 24px 55px rgba(0, 0, 0, 0.12);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-card::before {
  inset: -30% 8% auto -14%;
  height: 56%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  filter: blur(8px);
  transform: rotate(-7deg);
}

.hero-card::after {
  inset: auto -18% -24% 38%;
  height: 56%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), transparent 62%);
  filter: blur(10px);
  opacity: 0.55;
}

.terminal-top {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: flex;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.09);
  margin-bottom: 0.8rem;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

.terminal-body {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.84rem;
  line-height: 1.62;
  color: #101010;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36) 46%, rgba(228, 228, 228, 0.48)),
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.88), transparent 42%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  padding: 1rem;
  min-height: 270px;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 10px 25px rgba(0, 0, 0, 0.08);
}

.terminal-body::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -24%;
  width: 72%;
  height: 68%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  filter: blur(8px);
  transform: rotate(-10deg);
  animation: liquid-shift 8s ease-in-out infinite alternate;
}

.terminal-body code {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

@keyframes liquid-shift {
  from {
    transform: translateX(0) rotate(-10deg);
    opacity: 0.7;
  }
  to {
    transform: translateX(22px) rotate(-6deg);
    opacity: 1;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #575757;
}

.about-text {
  max-width: 65ch;
  color: var(--muted);
  font-weight: 700;
}

.stats-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  border-radius: 14px;
  padding: 1rem;
}

.stat-card h3 {
  font-family: "Orbitron", sans-serif;
  color: #080808;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.skills-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card {
  border-radius: 18px;
  padding: 1rem;
  min-height: 190px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
}

.skill-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0, 0, 0, 0.28);
}

.skill-icon {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-panel .section-inner {
  border-radius: 24px;
}

.pricing-lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.pricing-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.pricing-price {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f0f0f;
}

.pricing-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-card--featured {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 26px rgba(0, 0, 0, 0.12);
}

.pricing-payments {
  margin-top: 0.9rem;
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.pricing-payments h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.pricing-payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pricing-payment-tags span {
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  font-size: 0.8rem;
  color: #1b1b1b;
  background: rgba(255, 255, 255, 0.68);
}

.projects-panel {
  z-index: 20;
  align-items: start;
  padding-top: calc(var(--header-h) + 3.5rem);
}

.projects-intro p {
  color: var(--muted);
}

.projects-horizontal {
  width: 100%;
  overflow: hidden;
  margin-top: 1.1rem;
}

.projects-track {
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  width: max-content;
  padding: 1rem 6vw 3rem;
  will-change: transform;
}

.project-card {
  contain: paint;
  width: min(78vw, 430px);
  min-height: 350px;
  border-radius: 20px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.tags span {
  border: 1px solid rgba(0, 0, 0, 0.22);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #202020;
}

.project-btn {
  align-self: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: #111;
  border-radius: 8px;
  padding: 0.4rem 0.72rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.07);
}

.project-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.project-preview-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.project-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

.project-preview-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 1.2rem));
  height: min(86vh, 820px);
  border-radius: 16px;
  padding: 0.8rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
}

.project-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-preview-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-preview-head p {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--text);
}

.project-preview-frame {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: #fff;
}

.game-panel {
  align-items: center;
}

.game-description {
  color: var(--muted);
  margin-bottom: 0.95rem;
}

.game-shell {
  position: relative;
  width: min(1060px, 100%);
  border-radius: 20px;
  padding: 1rem;
  overflow: hidden;
}

.game-hud {
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  right: 1.35rem;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  color: #111;
}

.game-hud > div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  padding: 0.25rem 0.42rem;
}

#game-canvas {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: #f2f2f2;
}

.game-overlay {
  position: absolute;
  z-index: 5;
  inset: 1rem;
  border-radius: 14px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  transition: opacity 0.35s ease;
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-overlay h3 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.game-overlay p {
  color: var(--muted);
}

.difficulty-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.difficulty-btn {
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #222;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.difficulty-btn.active {
  border-color: #111;
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}

.overlay-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.controls-note {
  font-size: 0.86rem;
}

.hidden {
  display: none !important;
}

.contact-box p {
  color: var(--muted);
}

.contact-list {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-list a {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
  color: #1c1c1c;
  font-size: 0.92rem;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.contact-form label {
  display: grid;
  gap: 0.32rem;
  color: #181818;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.62rem 0.68rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.tiny-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #606060;
}

.cookie-consent {
  position: fixed;
  inset: auto 1rem 1rem auto;
  width: min(460px, calc(100% - 1rem));
  z-index: 310;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent.open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.08), transparent 42%);
  pointer-events: none;
}

.cookie-consent.open .cookie-consent__backdrop {
  pointer-events: auto;
}

.cookie-consent__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1rem;
  isolation: isolate;
}

.cookie-consent__shine {
  position: absolute;
  inset: -36% -10% auto;
  height: 55%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  animation: cookie-shine 4.5s ease-in-out infinite alternate;
}

.cookie-consent__badge {
  width: fit-content;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  color: #1d1d1d;
  background: rgba(255, 255, 255, 0.72);
}

.cookie-consent__title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin-bottom: 0.35rem;
  color: #0f0f0f;
}

.cookie-consent__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.cookie-consent__options {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.82rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.52rem 0.62rem;
  background: rgba(255, 255, 255, 0.64);
}

.cookie-option strong {
  display: block;
  color: #141414;
  font-size: 0.9rem;
}

.cookie-option small {
  color: #4f4f4f;
  font-size: 0.76rem;
}

.cookie-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.cookie-option input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #121212;
  transform: translate(0, -50%);
  transition: transform 0.22s ease, background 0.22s ease;
}

.cookie-option input[type="checkbox"]:checked {
  background: rgba(0, 0, 0, 0.13);
  border-color: rgba(0, 0, 0, 0.4);
}

.cookie-option input[type="checkbox"]:checked::after {
  transform: translate(20px, -50%);
}

.cookie-option input[type="checkbox"]:disabled {
  opacity: 0.86;
  cursor: not-allowed;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-consent__actions .primary-btn,
.cookie-consent__actions .ghost-btn {
  flex: 1;
  min-width: 128px;
  text-align: center;
}

.cookie-consent__reject {
  border-color: rgba(0, 0, 0, 0.4);
}

.cookie-open-settings {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 240;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.24);
  color: #141414;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-open-settings.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-open-settings:hover,
.cookie-open-settings:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.site-footer {
  padding: 1.4rem 1rem 2.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: #5a5a5a;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #ffffff;
  display: grid;
  place-content: center;
  gap: 0.9rem;
}

.loader-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #121212;
  border-right-color: #696969;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
  animation: spin 1.1s linear infinite;
}

.loader-text {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: #323232;
}

.egg-toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 250;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.24);
  color: #121212;
  border-radius: 9px;
  padding: 0.6rem 0.8rem;
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

body.neon-overdrive {
  filter: contrast(1.07);
}

body.neon-overdrive .glass {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 36px rgba(0, 0, 0, 0.12);
}

.reveal-up,
.reveal-right,
.hero-card,
.site-header,
.game-shell {
  will-change: transform, opacity;
}

.split-chars .char {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}

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

@keyframes cookie-shine {
  from {
    transform: translateX(-12px) rotate(-5deg);
    opacity: 0.72;
  }
  to {
    transform: translateX(16px) rotate(-2deg);
    opacity: 1;
  }
}

/* Liquid Glass Theme Switcher */
.switcher {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;
  --c-content: var(--text);
  --c-action: #0052f5;
  --glass-reflex-dark: 1;
  --glass-reflex-light: 1;
  --saturation: 150%;

  position: fixed;
  z-index: 260;
  top: calc(var(--header-h) + 1.2rem);
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 244px;
  max-width: 244px;
  height: 70px;
  box-sizing: border-box;
  padding: 8px 12px 10px;
  margin: 0;
  border: none;
  border-radius: 99em;
  background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
  backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
  -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 1.8px 3px 0 -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
    inset -2px -2px 0 -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
    inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
    inset -0.3px -1px 4px 0 color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 12%), transparent),
    inset -1.5px 2.5px 0 -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 0 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 2px -6.5px 1px -4px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0 1px 5px 0 color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0 6px 16px 0 color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1), box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.switcher__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.switcher__input {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.switcher__icon {
  display: block;
  width: 100%;
  transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
}

.switcher__filter {
  position: absolute;
  width: 0;
  height: 0;
  z-index: -1;
}

.switcher__option {
  --c: var(--c-content);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  width: 68px;
  height: 100%;
  box-sizing: border-box;
  border-radius: 99em;
  opacity: 1;
  transition: all 160ms;
}

.switcher__option:hover {
  --c: var(--c-action);
  cursor: pointer;
}

.switcher__option:hover .switcher__icon {
  scale: 1.2;
}

.switcher__option:has(input:checked) {
  --c: var(--c-content);
  cursor: auto;
}

.switcher__option:has(input:checked) .switcher__icon {
  scale: 1;
}

.switcher::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  display: block;
  width: 84px;
  height: calc(100% - 10px);
  border-radius: 99em;
  background-color: color-mix(in srgb, var(--c-glass) 36%, transparent);
  z-index: -1;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 2px 1px 0 -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
    inset -1.5px -1px 0 -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
    inset -2px -6px 1px -5px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
    inset -1px 2px 3px -1px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 0 -4px 1px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0 3px 6px 0 color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);
}

.switcher:has(input[c-option="1"]:checked)::after {
  translate: 0 0;
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1), box-shadow 400ms cubic-bezier(1, 0, 0.4, 1), translate 400ms cubic-bezier(1, 0, 0.4, 1);
}

.switcher:has(input[c-option="2"]:checked)::after {
  translate: 76px 0;
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1), box-shadow 400ms cubic-bezier(1, 0, 0.4, 1), translate 400ms cubic-bezier(1, 0, 0.4, 1);
}

.switcher:has(input[c-option="3"]:checked)::after {
  translate: 152px 0;
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1), box-shadow 400ms cubic-bezier(1, 0, 0.4, 1), translate 400ms cubic-bezier(1, 0, 0.4, 1);
}

body[data-theme="dark"] .switcher {
  --c-glass: #818898;
  --c-content: #e4e9f5;
  --c-action: #03d5ff;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.3;
}

body[data-theme="dim"] .switcher {
  --c-light: #99deff;
  --c-dark: #20001b;
  --c-glass: #f28fd3;
  --c-content: #d5dbe2;
  --c-action: #ff48a9;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.7;
  --saturation: 200%;
}

/* Theme overrides for fixed colors */
body[data-theme="dark"] .logo,
body[data-theme="dim"] .logo,
body[data-theme="dark"] .section-title,
body[data-theme="dim"] .section-title,
body[data-theme="dark"] .pricing-price,
body[data-theme="dim"] .pricing-price,
body[data-theme="dark"] .hero-title,
body[data-theme="dim"] .hero-title,
body[data-theme="dark"] .terminal-body,
body[data-theme="dim"] .terminal-body,
body[data-theme="dark"] .stat-card h3,
body[data-theme="dim"] .stat-card h3,
body[data-theme="dark"] .contact-form label,
body[data-theme="dim"] .contact-form label,
body[data-theme="dark"] .site-footer,
body[data-theme="dim"] .site-footer {
  color: var(--text);
}

body[data-theme="dark"] .site-header nav a,
body[data-theme="dim"] .site-header nav a,
body[data-theme="dark"] .about-text,
body[data-theme="dim"] .about-text,
body[data-theme="dark"] .skill-card p,
body[data-theme="dim"] .skill-card p,
body[data-theme="dark"] .project-card p,
body[data-theme="dim"] .project-card p,
body[data-theme="dark"] .contact-box p,
body[data-theme="dim"] .contact-box p,
body[data-theme="dark"] .tiny-note,
body[data-theme="dim"] .tiny-note {
  color: var(--muted);
}

body[data-theme="dark"] .primary-btn {
  background: #f2f6ff;
  border-color: #f2f6ff;
  color: #101318;
}

body[data-theme="dark"] .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f3f7ff;
}

body[data-theme="dim"] .primary-btn {
  background: #ff48a9;
  border-color: #ff48a9;
  color: #fff;
}

body[data-theme="dim"] .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(198, 227, 255, 0.42);
  color: #ecf6ff;
}

body[data-theme="dark"] .terminal-body {
  background: rgba(19, 24, 32, 0.78);
  border-color: rgba(255, 255, 255, 0.22);
  text-shadow: none;
}

body[data-theme="dark"] .terminal-body code {
  text-shadow: none;
}

body[data-theme="dim"] .terminal-body {
  background: rgba(35, 58, 84, 0.68);
  border-color: rgba(171, 212, 247, 0.4);
}

body[data-theme="dark"] .game-hud,
body[data-theme="dim"] .game-hud {
  color: var(--text);
}

body[data-theme="dark"] .game-hud > div {
  background: rgba(19, 23, 30, 0.62);
  border-color: rgba(255, 255, 255, 0.22);
}

body[data-theme="dim"] .game-hud > div {
  background: rgba(20, 38, 56, 0.62);
  border-color: rgba(171, 212, 247, 0.36);
}

body[data-theme="dark"] #game-canvas {
  background: #111721;
  border-color: rgba(255, 255, 255, 0.24);
}

body[data-theme="dim"] #game-canvas {
  background: #1a334a;
  border-color: rgba(171, 212, 247, 0.35);
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
  background: rgba(20, 25, 33, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f0f4ff;
}

body[data-theme="dim"] .contact-form input,
body[data-theme="dim"] .contact-form textarea {
  background: rgba(20, 39, 57, 0.86);
  border-color: rgba(171, 212, 247, 0.35);
  color: #eef7ff;
}

body[data-theme="dark"] .contact-list a,
body[data-theme="dim"] .contact-list a {
  color: var(--text);
}

body[data-theme="dark"] .project-preview-backdrop {
  background: rgba(0, 0, 0, 0.58);
}

body[data-theme="dark"] .project-preview-frame {
  border-color: rgba(255, 255, 255, 0.24);
  background: #151b24;
}

body[data-theme="dim"] .project-preview-frame {
  border-color: rgba(171, 212, 247, 0.35);
  background: #1a3146;
}

body[data-theme="dark"] .project-thumb {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body[data-theme="dim"] .project-thumb {
  border-color: rgba(171, 212, 247, 0.35);
  box-shadow: 0 10px 24px rgba(9, 20, 34, 0.35);
}

body[data-theme="dark"] .cookie-consent__badge,
body[data-theme="dim"] .cookie-consent__badge,
body[data-theme="dark"] .cookie-option,
body[data-theme="dim"] .cookie-option,
body[data-theme="dark"] .cookie-open-settings,
body[data-theme="dim"] .cookie-open-settings {
  border-color: var(--line);
}

body[data-theme="dark"] .cookie-consent__title,
body[data-theme="dim"] .cookie-consent__title,
body[data-theme="dark"] .cookie-option strong,
body[data-theme="dim"] .cookie-option strong,
body[data-theme="dark"] .pricing-payments h3,
body[data-theme="dim"] .pricing-payments h3,
body[data-theme="dark"] .pricing-payment-tags span,
body[data-theme="dim"] .pricing-payment-tags span,
body[data-theme="dark"] .cookie-open-settings,
body[data-theme="dim"] .cookie-open-settings {
  color: var(--text);
}

body[data-theme="dark"] .cookie-option small,
body[data-theme="dim"] .cookie-option small {
  color: var(--muted);
}

body[data-theme="dark"] .cookie-option,
body[data-theme="dark"] .cookie-consent__badge {
  background: rgba(18, 24, 34, 0.8);
}

body[data-theme="dark"] .pricing-payment-tags span {
  background: rgba(18, 24, 34, 0.82);
}

body[data-theme="dim"] .cookie-option,
body[data-theme="dim"] .cookie-consent__badge {
  background: rgba(21, 38, 58, 0.8);
}

body[data-theme="dim"] .pricing-payment-tags span {
  background: rgba(21, 38, 58, 0.82);
}

body[data-theme="dark"] .cookie-option input[type="checkbox"],
body[data-theme="dim"] .cookie-option input[type="checkbox"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .cookie-option input[type="checkbox"]::after,
body[data-theme="dim"] .cookie-option input[type="checkbox"]::after {
  background: var(--text);
}

body[data-theme="dark"] .cookie-open-settings {
  background: rgba(18, 24, 34, 0.82);
}

body[data-theme="dim"] .cookie-open-settings {
  background: rgba(21, 38, 58, 0.82);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 18ch;
  }

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

@media (max-width: 760px) {
  :root {
    --header-h: 86px;
  }

  .site-header {
    top: 0.6rem;
    width: calc(100% - 1rem);
    border-radius: 12px;
    padding: 0.66rem 0.8rem;
  }

  .site-header nav {
    gap: 0.65rem;
  }

  .site-header nav a {
    font-size: 0.84rem;
  }

  .switcher {
    top: calc(var(--header-h) + 0.9rem);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 214px;
    max-width: 214px;
    height: 60px;
    padding: 6px 10px 8px;
  }

  .switcher__option {
    width: 60px;
    padding-inline: 12px;
  }

  .switcher::after {
    width: 72px;
  }

  .switcher:has(input[c-option="2"]:checked)::after {
    translate: 66px 0;
  }

  .switcher:has(input[c-option="3"]:checked)::after {
    translate: 132px 0;
  }

  .project-preview-panel {
    width: calc(100% - 0.8rem);
    height: min(84vh, 560px);
    padding: 0.55rem;
  }

  .project-preview-head p {
    font-size: 0.8rem;
  }

  .project-preview-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .panel {
    padding-inline: 0.8rem;
    padding-bottom: 3rem;
  }

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

  .project-card {
    width: min(85vw, 350px);
    min-height: 320px;
  }

  .projects-track {
    padding-inline: 1rem;
  }

  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: 1.15rem;
    left: 1.15rem;
    right: 1.15rem;
  }

  .game-overlay {
    inset: 0.72rem;
  }

  .cookie-consent {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    bottom: 0.5rem;
  }

  .cookie-consent__actions .primary-btn,
  .cookie-consent__actions .ghost-btn {
    min-width: 0;
  }

  .cookie-open-settings {
    left: 0.7rem;
    bottom: 0.7rem;
    font-size: 0.78rem;
  }

  .overlay-actions,
  .hero-cta {
    width: 100%;
  }

  .overlay-actions button,
  .hero-cta a {
    flex: 1;
    text-align: center;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }

  .cookie-consent__shine {
    animation: none !important;
  }
}


