:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --paper: #f7f9fc;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #f59e0b;
  --rose: #e11d48;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "JetBrains Mono", monospace;
}

.portfolio-shell {
  overflow: hidden;
}

.site-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 24, 40, 0.82);
  backdrop-filter: blur(18px);
}

.nav-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 122px 0 96px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 18%,
      rgba(37, 99, 235, 0.14),
      transparent 28%),
    radial-gradient(circle at 82% 12%,
      rgba(20, 184, 166, 0.14),
      transparent 30%),
    linear-gradient(110deg, rgba(8, 13, 28, 0.98), rgba(17, 94, 89, 0.86)),
    url("/assets/img/bg-hero.jpg") center / cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  opacity: 0.28;
  pointer-events: none;
  animation: gridDrift 18s linear infinite;
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent),
    linear-gradient(180deg, transparent 68%, rgba(8, 13, 28, 0.62));
  content: "";
  pointer-events: none;
}

/* Hero constellation canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.hero .tech-marquee {
  position: absolute;
  z-index: 2;
}

/* Particle trail canvas (fixed overlay on entire viewport) */
.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: pulse 1.8s infinite;
}

.hero h1,
.section-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1.5px;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.06;
}

.hero-copy {
  max-width: 590px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent 20%,
      rgba(255, 255, 255, 0.36),
      transparent 52%);
  content: "";
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

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

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.system-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.46);
  color: rgba(255, 255, 255, 0.84);
  padding: 8px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(96, 165, 250, 0.08);
}

.system-strip i {
  color: #a7f3d0;
  font-size: 17px;
}

.motion-lab {
  position: relative;
  max-width: 620px;
  margin-top: 30px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--mx, 55%) var(--my, 45%),
      rgba(52, 211, 153, 0.18),
      transparent 28%),
    rgba(2, 6, 23, 0.34);
  padding: 12px;
  box-shadow:
    inset 0 0 30px rgba(96, 165, 250, 0.08),
    0 18px 50px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(14px);
}

.motion-lab svg {
  display: block;
  width: 100%;
  height: auto;
}

.lab-path {
  fill: none;
  stroke: url("#labLine");
  stroke-linecap: round;
  stroke-width: 3;
  stroke-dasharray: 10 14;
  filter: url("#labGlow");
  animation: pathFlow 2.8s linear infinite;
}

.lab-path-soft {
  opacity: 0.48;
  stroke-width: 2;
  animation-duration: 4.2s;
  animation-direction: reverse;
}

.lab-node {
  fill: #020617;
  stroke: #a7f3d0;
  stroke-width: 3;
  filter: url("#labGlow");
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.4s ease-in-out infinite;
}

.node-b {
  animation-delay: 0.2s;
}

.node-c {
  animation-delay: 0.4s;
}

.node-d {
  animation-delay: 0.6s;
}

.lab-spark {
  fill: #fbbf24;
  filter: url("#labGlow");
  offset-path: path("M20 152 C118 24 202 30 266 118 S414 202 594 58");
  animation: sparkRun 4s ease-in-out infinite;
}

.motion-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-teaser {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 620px;
  margin-top: 30px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 22%,
      rgba(251, 191, 36, 0.18),
      transparent 32%),
    rgba(2, 6, 23, 0.42);
  padding: 14px;
  box-shadow:
    inset 0 0 30px rgba(96, 165, 250, 0.08),
    0 18px 50px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(14px);
}

.game-preview-board {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(167, 243, 208, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #08111f;
  background-size: 22px 22px;
}

.game-preview-board span {
  position: absolute;
  display: block;
}

.pixel-player {
  left: 28px;
  bottom: 26px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #60a5fa;
  box-shadow:
    0 0 22px rgba(96, 165, 250, 0.55),
    inset 0 -7px 0 rgba(2, 6, 23, 0.18);
  animation: playerHop 1.8s ease-in-out infinite;
}

.pixel-player::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #020617;
  box-shadow: 11px 0 0 #020617;
  content: "";
}

.pixel-coin {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.68);
  animation: coinFloat 2.2s ease-in-out infinite;
}

.coin-a {
  top: 24px;
  left: 44%;
}

.coin-b {
  top: 58px;
  left: 68%;
  animation-delay: 0.25s;
}

.coin-c {
  top: 32px;
  left: 84%;
  animation-delay: 0.5s;
}

.pixel-block {
  bottom: 18px;
  width: 40px;
  height: 12px;
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.72);
  box-shadow: 0 0 18px rgba(167, 243, 208, 0.24);
}

.block-a {
  left: 42%;
}

.block-b {
  left: 74%;
  bottom: 44px;
}

.game-teaser-copy span {
  display: block;
  color: #a7f3d0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-teaser-copy a {
  display: inline-flex;
  margin-top: 8px;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.08;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 560px;
  margin-top: 30px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.24);
}

.hero-stat strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.developer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%,
      rgba(167, 243, 208, 0.12),
      transparent 28%),
    radial-gradient(circle at 86% 0%,
      rgba(15, 118, 110, 0.18),
      transparent 31%),
    linear-gradient(145deg, rgba(16, 24, 40, 0.9), rgba(17, 94, 89, 0.7));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(167, 243, 208, 0.13);
  backdrop-filter: blur(20px);
}

@media (min-width: 921px) {
  .developer-card {
    transform: translateY(-10px);
  }
}

.developer-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

.developer-card::after {
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(115deg,
      transparent 38%,
      rgba(167, 243, 208, 0.22),
      transparent 58%);
  content: "";
  pointer-events: none;
  transform: translateX(-45%);
  opacity: 0.6;
}

.terminal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(167, 243, 208, 0.18);
  background: linear-gradient(90deg,
      rgba(16, 24, 40, 0.76),
      rgba(17, 94, 89, 0.28));
  padding: 16px 18px;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

.terminal-dot:nth-child(1) {
  background: var(--rose);
  color: var(--rose);
}

.terminal-dot:nth-child(2) {
  background: var(--amber);
  color: var(--amber);
}

.terminal-dot:nth-child(3) {
  background: #22c55e;
  color: #22c55e;
  animation: statusPulse 1.5s ease-in-out infinite;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.terminal-title i {
  color: #a7f3d0;
  font-size: 20px;
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(167, 243, 208, 0.32);
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.09);
  color: #a7f3d0;
  padding: 6px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.terminal-status::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px #22c55e;
  content: "";
}

.code-lines {
  position: relative;
  z-index: 1;
  padding: 24px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.85;
}

.code-lines>span {
  display: block;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
  animation: typeLine 0.9s steps(34) forwards;
}

.code-lines>span::before {
  display: inline-block;
  width: 28px;
  margin-right: 12px;
  color: rgba(148, 163, 184, 0.72);
  content: "0" counter(code-line);
  counter-increment: code-line;
}

.code-lines {
  counter-reset: code-line;
}

.code-lines>span:nth-child(2) {
  animation-delay: 0.5s;
}

.code-lines>span:nth-child(3) {
  animation-delay: 1s;
}

.code-lines>span:nth-child(4) {
  animation-delay: 1.5s;
}

.code-lines>span:nth-child(5) {
  animation-delay: 2s;
}

.code-lines>span:nth-child(6) {
  animation-delay: 2.5s;
}

.code-lines>span:nth-child(7) {
  animation-delay: 3s;
}

.code-lines>span:nth-child(8) {
  animation-delay: 3.5s;
}

.terminal-console {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(167, 243, 208, 0.16);
  background: rgba(2, 6, 23, 0.58);
  padding: 13px 18px;
  color: #bfdbfe;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.console-prompt {
  color: #a7f3d0;
}

#heroCommand::after {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: #a7f3d0;
  content: "";
  vertical-align: -2px;
  animation: cursorBlink 0.9s steps(2, start) infinite;
}

.runtime-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(167, 243, 208, 0.16);
  background: rgba(15, 23, 42, 0.5);
}

.runtime-grid span {
  padding: 12px 14px;
  border-right: 1px solid rgba(167, 243, 208, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.runtime-grid span:last-child {
  border-right: 0;
}

.runtime-grid strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
}

.tech-marquee {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 1px solid rgba(147, 197, 253, 0.18);
  border-bottom: 1px solid rgba(147, 197, 253, 0.16);
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(14px);
  display: flex;
  gap: 12px;
}

.tech-marquee-track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  gap: 12px;
  padding: 13px 0;
  animation: marquee 28s linear infinite;
}

.tech-marquee span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(167, 243, 208, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.code-key {
  color: #93c5fd;
}

.code-value {
  color: #a7f3d0;
}

.code-warn {
  color: #fcd34d;
}

.section {
  padding: 90px 0;
  background: #ffffff;
}

.section.alt {
  background: var(--paper);
}

.playground-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--theme-playground-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--theme-playground-grid) 1px, transparent 1px),
    var(--theme-playground-bg);
  background-size: 34px 34px;
  transition: background 0.45s ease;
}

.playground-section::before {
  position: absolute;
  inset: auto -8% -36% 54%;
  height: 420px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 62%);
  content: "";
  pointer-events: none;
  transform: rotate(-12deg);
}

.playground-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 54px;
  align-items: center;
}

.lab-card-grid {
  display: grid;
  gap: 14px;
}

.lab-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 100px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%),
      rgba(167, 243, 208, 0.28),
      transparent 32%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  transform-style: preserve-3d;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lab-card-game {
  color: var(--ink);
}

.lab-card::before {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.lab-card:hover {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow:
    0 24px 56px rgba(16, 24, 40, 0.12),
    0 0 34px rgba(20, 184, 166, 0.12);
  transform: translateY(-5px);
}

/* Unique interactive hover micro-animations to represent exactly what the Lab cards mean */
.lab-card-grid .lab-card:nth-child(1):hover i {
  animation: gyroMotion 2.4s linear infinite;
}

.lab-card-grid .lab-card:nth-child(2):hover i {
  animation: clickInteraction 0.6s ease infinite alternate;
}

.lab-card-grid .lab-card:nth-child(3):hover i {
  animation: terminalCodeUI 1.2s steps(2, start) infinite;
}

@keyframes gyroMotion {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes clickInteraction {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.85);
    box-shadow: 0 0 14px var(--theme-accent-glow);
  }

  100% {
    transform: scale(1.08);
  }
}

@keyframes terminalCodeUI {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--theme-accent));
  }

  50% {
    opacity: 0.58;
    filter: none;
  }
}

.lab-card i {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: #a7f3d0;
  font-size: 30px;
  box-shadow: 0 0 24px rgba(15, 118, 110, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 19px;
  font-weight: 800;
}

.lab-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lab-game-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lab-game-link:hover {
  box-shadow:
    0 20px 44px rgba(16, 24, 40, 0.18),
    0 0 24px rgba(15, 118, 110, 0.16);
  transform: translateY(-3px);
}

.lab-game-link i {
  color: #a7f3d0;
  font-size: 22px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
}

.section-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.portrait-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.portrait-wrap img {
  width: 100%;
  max-width: 390px;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.18);
  display: block;
}

.availability {
  position: absolute;
  right: 0;
  top: 28px;
  bottom: auto;
  max-width: 220px;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(8px);
  transition:
    background-color 0.4s,
    border-color 0.4s;
}

.availability::before,
.availability::after {
  position: absolute;
  inset: 5px;
  border: 2px solid var(--theme-accent);
  border-radius: 8px 12px 7px 14px;
  content: "";
  pointer-events: none;
  opacity: 0.55;
  transition: border-color 0.4s;
}

.availability::before {
  border-style: dashed;
  animation: doodleBorder 3.6s ease-in-out infinite;
}

.availability::after {
  inset: 9px 7px 7px 10px;
  border-color: var(--theme-accent-alt);
  border-style: solid;
  transform: rotate(-1deg);
  animation: doodleBorderAlt 4.2s ease-in-out infinite;
  opacity: 0.38;
}

.availability strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--theme-text-primary);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  transition: color 0.4s;
}

.availability span {
  position: relative;
  z-index: 1;
  color: var(--theme-text-secondary);
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.4s;
}

.skill-list {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 800;
}

.skill-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef8;
}

.skill-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: left;
  transform: scaleX(0);
}

.skill-list.is-visible .skill-fill {
  animation: growBar 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.services-grid,
.project-grid,
.insight-grid {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

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

.service-card,
.project-card,
.insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card::before,
.project-card::before,
.insight-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      transparent 35%,
      rgba(167, 243, 208, 0.2),
      transparent 55%),
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
  background-size:
    100% 100%,
    22px 22px,
    22px 22px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-28%);
  transition: opacity 0.2s ease;
}

.service-card::after,
.insight-card::after {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-top: 1px solid rgba(15, 118, 110, 0.24);
  border-right: 1px solid rgba(15, 118, 110, 0.24);
  content: "";
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.service-card:hover,
.project-card:hover,
.insight-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow:
    0 20px 48px rgba(16, 24, 40, 0.1),
    0 0 24px rgba(15, 118, 110, 0.08);
  transform: translateY(-4px);
}

.service-card:hover::before,
.project-card:hover::before,
.insight-card:hover::before {
  opacity: 1;
  animation: cardScan 1.8s ease-in-out infinite;
}

.service-card:hover::after,
.insight-card:hover::after {
  opacity: 1;
  transform: translate(-4px, 4px);
}

.service-card {
  padding: 28px;
}

.service-card i {
  position: relative;
  z-index: 1;
  color: var(--teal);
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(15, 118, 110, 0.18));
}

.service-card h3,
.project-card h3,
.insight-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 800;
}

.service-card p,
.project-card p,
.insight-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.workflow {
  margin-top: 42px;
  border: 1px solid var(--theme-card-border);
  border-radius: 8px;
  background: var(--theme-card-bg);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition:
    background 0.45s ease,
    border-color 0.45s ease;
}

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.workflow-track::before {
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--theme-scroll-bar);
  content: "";
  opacity: 0.65;
  transition: background 0.45s ease;
}

.workflow-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.workflow-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg,
      var(--theme-accent, #2563eb),
      var(--theme-accent-alt, #0f766e));
  color: #ffffff;
  font-size: 28px;
  animation: popStep 2.6s ease-in-out infinite;
  box-shadow: 0 8px 20px var(--theme-accent-glow);
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease;
}

.workflow-step:nth-child(2) .workflow-icon {
  animation-delay: 0.25s;
}

.workflow-step:nth-child(3) .workflow-icon {
  animation-delay: 0.5s;
}

.workflow-step:nth-child(4) .workflow-icon {
  animation-delay: 0.75s;
}

.workflow-step h3 {
  margin: 0 0 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 800;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.project-showcase {
  position: relative;
  overflow: hidden;
  margin-top: 38px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
}

.project-showcase::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.28)),
    linear-gradient(115deg,
      transparent 38%,
      rgba(167, 243, 208, 0.18),
      transparent 58%);
  content: "";
  pointer-events: none;
  animation: scanBeam 5s ease-in-out infinite;
}

.project-showcase img {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 390px);
  object-fit: cover;
}

.project-card {
  overflow: hidden;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 118, 110, 0.2)) border-box;
}

.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: #0f172a;
}

.project-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.48)),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  z-index: 1;
}

.project-visual::after {
  z-index: 2;
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 42%;
  background: linear-gradient(180deg,
      transparent,
      rgba(15, 118, 110, 0.14),
      transparent);
  content: "";
  animation: verticalScan 3.4s ease-in-out infinite;
}

.project-visual img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  opacity: 0.94;
  transform: scale(1.03);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.project-card:hover .project-visual img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.08);
}

.project-status {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(167, 243, 208, 0.3);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #d1fae5;
  padding: 7px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.project-status::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  content: "";
}

.project-visual.is-startup img {
  object-position: 18% 50%;
}

.project-visual.is-dashboard img {
  object-position: 52% 50%;
}

.project-visual.is-dashboard::before,
.project-visual.is-dashboard::after {
  display: none !important;
}

.project-visual.is-ai img {
  object-position: 82% 50%;
}

.browser-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.28);
}

.visual-line {
  position: relative;
  z-index: 1;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  animation: shimmer 2.2s linear infinite;
}

.visual-line.short {
  width: 54%;
}

.visual-line.medium {
  width: 72%;
}

.visual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.visual-grid span {
  height: 54px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.22);
  animation: floatTile 3s ease-in-out infinite;
}

.visual-grid span:nth-child(2) {
  animation-delay: 0.2s;
}

.visual-grid span:nth-child(3) {
  animation-delay: 0.4s;
}

.project-body {
  padding: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #eef4ff;
  color: #1d4ed8;
  padding: 6px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.insight-grid {
  grid-template-columns: repeat(4, 1fr);
}

.insight-card {
  padding: 26px;
}

.insight-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 42px;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(15, 118, 110, 0.12);
  animation: metricGlow 3.2s ease-in-out infinite;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
  border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #0b1220, #101828 48%, #042f2e);
  background-size:
    26px 26px,
    26px 26px,
    100% 100%;
  padding: 34px;
  color: #ffffff;
  box-shadow:
    0 24px 70px rgba(16, 24, 40, 0.18),
    inset 0 0 42px rgba(20, 184, 166, 0.08);
}

.contact-panel::after {
  position: absolute;
  inset: -50% -20%;
  background: linear-gradient(115deg,
      transparent 40%,
      rgba(96, 165, 250, 0.13),
      transparent 58%);
  content: "";
  pointer-events: none;
  animation: scanBeam 5.8s ease-in-out infinite;
}

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

.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(167, 243, 208, 0.5);
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 0 0 3px rgba(20, 184, 166, 0.12),
    0 0 24px rgba(20, 184, 166, 0.12);
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

.contact-form button.is-sending {
  pointer-events: none;
  opacity: 0.76;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(167, 243, 208, 0.1);
  color: #d1fae5;
  padding: 0 16px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition:
    max-height 0.36s ease,
    padding 0.36s ease,
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0s linear 0.36s;
}

.form-success.is-visible,
.form-success.is-error {
  max-height: 140px;
  border-color: rgba(167, 243, 208, 0.34);
  padding: 14px 16px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
  animation: successPop 0.55s ease both;
}

.form-success.is-error {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.1);
  color: #ffe4e6;
}

.form-success i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.42);
}

.form-success.is-error i {
  background: #e11d48;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.36);
}

.site-footer {
  background: var(--theme-footer-bg, #0b1220);
  color: var(--theme-footer-text, rgba(255, 255, 255, 0.76));
  border-top: 1px solid var(--theme-card-border, #e4e7ec);
  padding: 26px 0;
  position: relative;
  z-index: 5;
  transition:
    background-color 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease;
}

.site-footer p {
  color: var(--theme-footer-text, rgba(255, 255, 255, 0.76)) !important;
  margin: 0;
  transition: color 0.45s ease;
}

.game-page {
  min-height: 100vh;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 18%,
      rgba(96, 165, 250, 0.22),
      transparent 26%),
    radial-gradient(circle at 88% 10%,
      rgba(251, 191, 36, 0.18),
      transparent 24%),
    linear-gradient(135deg, #050816, #0f172a 54%, #042f2e);
}

.game-page::before {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  opacity: 0.32;
  pointer-events: none;
  animation: gridDrift 18s linear infinite;
}

.game-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.game-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1.3fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 130px);
}

.game-copy h1 {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.9;
}

.game-copy p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.game-stats span {
  border: 1px solid rgba(167, 243, 208, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-stats strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
}

.game-machine {
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.54);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.32),
    inset 0 0 44px rgba(96, 165, 250, 0.08);
  backdrop-filter: blur(16px);
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(167, 243, 208, 0.16);
  padding: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.game-topbar button {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.game-board {
  position: relative;
  height: min(64vh, 560px);
  min-height: 420px;
  overflow: hidden;
  outline: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%,
      rgba(20, 184, 166, 0.18),
      transparent 55%),
    #08111f;
  background-size:
    30px 30px,
    30px 30px,
    100% 100%,
    100% 100%;
  touch-action: none;
}

.game-board.is-hit {
  animation: boardHit 0.16s ease;
}

.runner,
.token,
.bug {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
}

.runner {
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #60a5fa;
  box-shadow:
    0 0 28px rgba(96, 165, 250, 0.72),
    inset 0 -9px 0 rgba(2, 6, 23, 0.18);
  transition:
    left 0.08s linear,
    top 0.08s linear;
}

.runner::before {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #020617;
  box-shadow: 15px 0 0 #020617;
  content: "";
}

.runner::after {
  position: absolute;
  left: 12px;
  bottom: 9px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #020617;
  content: "";
}

.token {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.72);
  animation: tokenPop 0.9s ease-in-out infinite;
}

.bug {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fb7185;
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.62);
  animation: bugWiggle 0.5s ease-in-out infinite;
}

.bug::before,
.bug::after {
  position: absolute;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #020617;
  content: "";
}

.bug::before {
  left: 7px;
}

.bug::after {
  right: 7px;
}

.game-message {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  max-width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(167, 243, 208, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: #ffffff;
  padding: 18px;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.game-message:not(.is-visible) {
  opacity: 0;
  pointer-events: none;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  color: var(--theme-footer-text, #ffffff);
  font-size: 24px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
}

.socials a:hover {
  color: var(--theme-accent) !important;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .form-success {
    align-items: flex-start;
    gap: 12px;
    max-width: none;
    border-color: transparent;
    background: #ffffff;
    color: #064e3b;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 18px 50px rgba(11, 18, 32, 0.24);
  }

  .form-success.is-visible,
  .form-success.is-error {
    max-height: 180px;
    border-color: rgba(34, 197, 94, 0.34);
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .form-success.is-error {
    border-color: rgba(225, 29, 72, 0.32);
    background: #ffffff;
    color: #881337;
  }

  .form-success i {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-top: 1px;
    font-size: 22px;
  }

  .form-success span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes gridDrift {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      44px 44px,
      44px 44px;
  }
}

@keyframes cursorBlink {

  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 12px));
  }
}

@keyframes pathFlow {
  to {
    stroke-dashoffset: -48;
  }
}

@keyframes nodePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.24);
  }
}

@keyframes sparkRun {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }

  12%,
  88% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes playerHop {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  42% {
    transform: translate(66px, -28px) rotate(5deg);
  }

  70% {
    transform: translate(108px, 0) rotate(0deg);
  }
}

@keyframes coinFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.12);
  }
}

@keyframes tokenPop {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes bugWiggle {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg);
  }

  50% {
    transform: translate(-50%, -50%) rotate(4deg);
  }
}

@keyframes boardHit {

  0%,
  100% {
    filter: none;
  }

  50% {
    filter: saturate(1.5) hue-rotate(18deg);
  }
}

@keyframes floatPanel {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes floatPanelOffset {

  0%,
  100% {
    transform: translate(24px, -28px);
  }

  50% {
    transform: translate(24px, -42px);
  }
}

@keyframes scanBeam {

  0%,
  100% {
    transform: translateX(-45%);
    opacity: 0;
  }

  45%,
  60% {
    opacity: 1;
  }

  80% {
    transform: translateX(45%);
    opacity: 0;
  }
}

@keyframes statusPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

@keyframes typeLine {
  to {
    width: 100%;
  }
}

@keyframes growBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes popStep {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes shimmer {
  0% {
    opacity: 0.45;
    transform: scaleX(0.84);
    transform-origin: left;
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }

  100% {
    opacity: 0.45;
    transform: scaleX(0.84);
    transform-origin: left;
  }
}

@keyframes floatTile {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes cardScan {

  0%,
  100% {
    transform: translateX(-32%);
  }

  50% {
    transform: translateX(32%);
  }
}

@keyframes verticalScan {

  0%,
  100% {
    top: -42%;
    opacity: 0;
  }

  45%,
  65% {
    opacity: 1;
  }

  85% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes metricGlow {

  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.86;
    transform: translateY(-2px);
  }
}

@keyframes doodleBorder {

  0%,
  100% {
    border-radius: 8px 12px 7px 14px;
    transform: rotate(0deg) translate(0, 0);
  }

  35% {
    border-radius: 13px 8px 15px 7px;
    transform: rotate(1deg) translate(1px, -1px);
  }

  70% {
    border-radius: 7px 15px 9px 13px;
    transform: rotate(-1deg) translate(-1px, 1px);
  }
}

@keyframes doodleBorderAlt {

  0%,
  100% {
    border-radius: 12px 7px 14px 8px;
    transform: rotate(-1deg) translate(0, 0);
  }

  50% {
    border-radius: 8px 14px 7px 15px;
    transform: rotate(1deg) translate(1px, 1px);
  }
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 104px;
  }

  .hero-grid,
  .about-grid,
  .playground-grid,
  .game-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .workflow-track {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-track::before {
    display: none;
  }
}

@media (max-width: 640px) {

  .nav-inner,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 92px;
  }

  .motion-lab {
    margin-top: 24px;
  }

  .game-teaser {
    grid-template-columns: 1fr;
  }

  .game-preview-board {
    min-height: 112px;
  }

  .motion-label {
    position: static;
    display: block;
    margin: -4px 0 3px 4px;
  }

  .system-strip {
    gap: 8px;
  }

  .system-strip span,
  .tech-marquee span {
    font-size: 11px;
  }

  .terminal-console {
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
  }

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

  .runtime-grid span {
    border-right: 0;
    border-bottom: 1px solid rgba(167, 243, 208, 0.14);
  }

  .runtime-grid span:last-child {
    border-bottom: 0;
  }

  .hero-stats,
  .services-grid,
  .project-grid,
  .lab-card-grid,
  .insight-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 24px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .hero-stat span {
    margin-top: 0;
    text-align: right;
  }

  .lab-card {
    min-height: auto;
  }

  .section {
    padding: 66px 0;
  }

  .availability {
    position: absolute;
    right: 12px;
    top: 12px;
    bottom: auto;
    max-width: 200px;
    padding: 12px 14px;
  }

  .availability strong {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .availability span {
    font-size: 11px;
    line-height: 1.4;
  }

  .contact-panel {
    padding: 24px;
  }

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

  .game-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .game-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-layout {
    min-height: auto;
    padding-top: 42px;
  }

  .game-board {
    height: 58vh;
    min-height: 360px;
  }
}

/* ==========================================================================
   ADVANCED INTERACTIVITY & MULTI-THEME ENGINE (OPTIONS 4 & 5)
   ========================================================================== */

/* --- 1. SITEMIDE THEMATIC VARIABLE INTEGRATION --- */
:root {
  --theme-bg-primary: #ffffff;
  --theme-bg-secondary: #f7f9fc;
  --theme-bg-hero: linear-gradient(110deg,
      rgba(8, 13, 28, 0.98),
      rgba(17, 94, 89, 0.86));
  --theme-text-primary: #101828;
  --theme-text-secondary: #475569;
  --theme-card-bg: #ffffff;
  --theme-card-border: #e4e7ec;
  --theme-nav-bg: rgba(16, 24, 40, 0.82);
  --theme-accent: #2563eb;
  --theme-accent-alt: #0f766e;
  --theme-accent-glow: rgba(37, 99, 235, 0.2);
  --theme-marquee-bg: rgba(2, 6, 23, 0.58);
  --theme-scroll-bar: linear-gradient(90deg, #2563eb, #0f766e);
  --theme-playground-bg: #ffffff;
  --theme-playground-grid: rgba(15, 23, 42, 0.026);
  --theme-footer-bg: #0b1220;
  --theme-footer-text: rgba(255, 255, 255, 0.76);
}

/* Cyberpunk Neon Theme (Pink/Purple/Cyan) */
body.theme-cyberpunk {
  --theme-bg-primary: #04010a;
  --theme-bg-secondary: #090314;
  --theme-bg-hero: linear-gradient(115deg,
      #05020c 0%,
      #1e053a 50%,
      #030a12 100%);
  --theme-text-primary: #f5f3ff;
  --theme-text-secondary: #c084fc;
  --theme-card-bg: rgba(14, 5, 28, 0.65);
  --theme-card-border: rgba(236, 72, 153, 0.35);
  --theme-nav-bg: rgba(4, 1, 10, 0.88);
  --theme-accent: #ec4899;
  --theme-accent-alt: #06b6d4;
  --theme-accent-glow: rgba(236, 72, 153, 0.28);
  --theme-marquee-bg: rgba(4, 1, 10, 0.72);
  --theme-scroll-bar: linear-gradient(90deg, #ec4899, #06b6d4);
  --ink: #f5f3ff;
  --paper: #090314;
  --theme-playground-bg: #04010a;
  --theme-playground-grid: rgba(236, 72, 153, 0.05);
  --theme-footer-bg: #04010a;
  --theme-footer-text: rgba(255, 255, 255, 0.76);
}

/* Emerald Matrix Tech Theme (Dark Green/Mint) */
body.theme-emerald {
  --theme-bg-primary: #020806;
  --theme-bg-secondary: #04120d;
  --theme-bg-hero: linear-gradient(110deg,
      #020806 0%,
      #082f25 60%,
      #010604 100%);
  --theme-text-primary: #ecfdf5;
  --theme-text-secondary: #34d399;
  --theme-card-bg: rgba(3, 16, 12, 0.72);
  --theme-card-border: rgba(16, 185, 129, 0.32);
  --theme-nav-bg: rgba(2, 8, 6, 0.88);
  --theme-accent: #10b981;
  --theme-accent-alt: #14b8a6;
  --theme-accent-glow: rgba(16, 185, 129, 0.22);
  --theme-marquee-bg: rgba(2, 8, 6, 0.76);
  --theme-scroll-bar: linear-gradient(90deg, #10b981, #14b8a6);
  --ink: #ecfdf5;
  --paper: #04120d;
  --theme-playground-bg: #020806;
  --theme-playground-grid: rgba(16, 185, 129, 0.05);
  --theme-footer-bg: #020806;
  --theme-footer-text: rgba(255, 255, 255, 0.76);
}

/* Glass Light Theme (Frost White/Blue) */
body.theme-light {
  --theme-bg-primary: #f8fafc;
  --theme-bg-secondary: #f1f5f9;
  --theme-bg-hero: linear-gradient(110deg, #1e293b 0%, #0f172a 100%);
  --theme-text-primary: #0f172a;
  --theme-text-secondary: #475569;
  --theme-card-bg: rgba(255, 255, 255, 0.82);
  --theme-card-border: rgba(148, 163, 184, 0.28);
  --theme-nav-bg: rgba(255, 255, 255, 0.88);
  --theme-accent: #2563eb;
  --theme-accent-alt: #0d9488;
  --theme-accent-glow: rgba(37, 99, 235, 0.12);
  --theme-marquee-bg: rgba(241, 245, 249, 0.82);
  --theme-scroll-bar: linear-gradient(90deg, #2563eb, #0d9488);
  --ink: #0f172a;
  --paper: #f1f5f9;
  --theme-playground-bg: #f8fafc;
  --theme-playground-grid: rgba(15, 23, 42, 0.026);
  --theme-footer-bg: #f1f5f9;
  --theme-footer-text: #475569;
}

/* --- THEMATIC DOM ELEMENT TRANSITIONS --- */
body {
  transition:
    background-color 0.45s ease,
    color 0.45s ease;
}

.section,
.playground-section {
  transition:
    background 0.45s ease,
    color 0.45s ease;
}

body:not(.theme-light) .section:not(.alt):not(.playground-section) {
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
}

body:not(.theme-light) .section.alt {
  background: var(--theme-bg-secondary);
}

/* Apply light/dark settings on theme switch */
body.theme-cyberpunk .section:not(.playground-section),
body.theme-emerald .section:not(.playground-section),
body.theme-light .section:not(.playground-section) {
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
}

body.theme-cyberpunk .section.alt,
body.theme-emerald .section.alt,
body.theme-light .section.alt {
  background: var(--theme-bg-secondary);
}

body.theme-cyberpunk .site-nav,
body.theme-emerald .site-nav,
body.theme-light .site-nav {
  background: var(--theme-nav-bg);
  border-bottom-color: var(--theme-card-border);
}

body.theme-light .site-nav .brand,
body.theme-light .site-nav .nav-links a {
  color: #0f172a;
}

body.theme-light .site-nav .nav-links a:hover {
  color: var(--theme-accent);
}

body.theme-cyberpunk .tech-marquee,
body.theme-emerald .tech-marquee,
body.theme-light .tech-marquee {
  background: var(--theme-marquee-bg);
  border-top-color: var(--theme-card-border);
  border-bottom-color: var(--theme-card-border);
}

body.theme-cyberpunk .tech-marquee span,
body.theme-emerald .tech-marquee span,
body.theme-light .tech-marquee span {
  border-color: var(--theme-card-border);
  color: var(--theme-text-primary);
}

/* General Component Color Shifts */
.service-card,
.project-card,
.insight-card,
.lab-card,
.contact-panel,
.developer-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-cyberpunk .service-card,
body.theme-cyberpunk .project-card,
body.theme-cyberpunk .insight-card,
body.theme-cyberpunk .lab-card,
body.theme-cyberpunk .contact-panel,
body.theme-cyberpunk .developer-card,
body.theme-emerald .service-card,
body.theme-emerald .project-card,
body.theme-emerald .insight-card,
body.theme-emerald .lab-card,
body.theme-emerald .contact-panel,
body.theme-emerald .developer-card,
body.theme-light .service-card,
body.theme-light .project-card,
body.theme-light .insight-card,
body.theme-light .lab-card,
body.theme-light .contact-panel,
body.theme-light .developer-card {
  background: var(--theme-card-bg);
  border-color: var(--theme-card-border);
  color: var(--theme-text-primary);
}

body.theme-light .developer-card {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

body.theme-light .terminal-top {
  border-bottom-color: var(--theme-card-border);
}

body.theme-light .terminal-console,
body.theme-light .runtime-grid {
  border-top-color: var(--theme-card-border);
}

body.theme-cyberpunk .section-title,
body.theme-cyberpunk h3,
body.theme-cyberpunk h4,
body.theme-cyberpunk strong {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

body.theme-emerald .section-title,
body.theme-emerald h3,
body.theme-emerald h4,
body.theme-emerald strong {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

body.theme-light .section-title,
body.theme-light h3,
body.theme-light h4,
body.theme-light strong {
  color: #0f172a;
}

body.theme-cyberpunk .section-copy,
body.theme-cyberpunk p,
body.theme-emerald .section-copy,
body.theme-emerald p {
  color: rgba(255, 255, 255, 0.72);
}

body.theme-light .section-copy,
body.theme-light p {
  color: #475569;
}

/* Hero Customizations */
body.theme-cyberpunk .hero {
  background:
    radial-gradient(circle at 20% 18%,
      rgba(236, 72, 153, 0.15),
      transparent 28%),
    radial-gradient(circle at 82% 12%,
      rgba(6, 182, 212, 0.15),
      transparent 30%),
    linear-gradient(115deg,
      rgba(5, 2, 12, 0.97) 0%,
      rgba(30, 5, 58, 0.88) 50%,
      rgba(3, 10, 18, 0.97) 100%),
    url("/assets/img/bg-hero.jpg") center / cover;
}

body.theme-cyberpunk .hero::before {
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
  border-color: rgba(236, 72, 153, 0.08);
}

body.theme-emerald .hero {
  background: var(--theme-bg-hero);
}

body.theme-emerald .hero::before {
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
  border-color: rgba(16, 185, 129, 0.08);
}

body.theme-light .hero {
  background: var(--theme-bg-hero);
}

/* Button & Highlights Overrides */
body.theme-cyberpunk .btn-primary {
  background: #ec4899;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}

body.theme-cyberpunk .btn-secondary {
  border-color: rgba(6, 118, 235, 0.4);
  color: #ffffff;
}

body.theme-emerald .btn-primary {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

body.theme-emerald .btn-secondary {
  border-color: rgba(20, 184, 166, 0.4);
  color: #ffffff;
}

/* --- 2. SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--theme-scroll-bar);
  z-index: 100;
  transition: width 0.1s linear;
}

/* --- 3. FLOATING THEME SWITCHER WIDGET --- */
.theme-switcher-container {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--theme-card-border);
  background: rgba(16, 24, 40, 0.86);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.3s;
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--theme-accent);
}

.theme-dropdown {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 170px;
  background: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--theme-card-border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-switcher-container.is-open .theme-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.theme-option.active {
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
}

body.theme-cyberpunk .theme-option.active {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
}

body.theme-emerald .theme-option.active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.theme-dot.slate {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.theme-dot.cyberpunk {
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
}

.theme-dot.emerald {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.theme-dot.light {
  background: #475569;
  border: 1px solid #cbd5e1;
}

body.theme-light .theme-dropdown {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

body.theme-light .theme-option {
  color: #475569;
}

body.theme-light .theme-option:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

/* --- 4. NEON CROSSHAIR CURSOR --- */

/* Hide system cursor site-wide on desktop hover devices */
@media (hover: hover) {

  body,
  button,
  a,
  [role="button"],
  input,
  textarea,
  select {
    cursor: none !important;
  }
}

/* Crosshair wrapper */
.cursor-crosshair {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-crosshair.is-visible {
  opacity: 1;
}

/* Horizontal line */
.cursor-cross-h {
  position: absolute;
  top: 0;
  left: -18px;
  width: 36px;
  height: 1px;
  background: var(--theme-accent);
  box-shadow:
    0 0 6px var(--theme-accent),
    0 0 12px var(--theme-accent-glow);
  transform: translateY(-0.5px);
  transition:
    width 0.2s ease,
    left 0.2s ease,
    background-color 0.3s;
}

/* Vertical line */
.cursor-cross-v {
  position: absolute;
  top: -18px;
  left: 0;
  width: 1px;
  height: 36px;
  background: var(--theme-accent);
  box-shadow:
    0 0 6px var(--theme-accent),
    0 0 12px var(--theme-accent-glow);
  transform: translateX(-0.5px);
  transition:
    height 0.2s ease,
    top 0.2s ease,
    background-color 0.3s;
}

/* Center precision dot */
.cursor-dot-center {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-accent);
  box-shadow:
    0 0 8px var(--theme-accent),
    0 0 20px var(--theme-accent-glow);
  transform: translate(-50%, -50%);
  transition:
    background-color 0.3s,
    transform 0.15s;
}

/* Outer rotating ring */
.cursor-ring-outer {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--theme-accent);
  box-shadow: 0 0 6px var(--theme-accent-glow);
  transform: translate(-50%, -50%);
  animation: crosshairSpin 4s linear infinite;
  /* tick marks via outline gap */
  background:
    linear-gradient(var(--theme-accent) 2px, transparent 2px) center top / 1px 4px no-repeat,
    linear-gradient(var(--theme-accent) 2px, transparent 2px) center bottom / 1px 4px no-repeat,
    linear-gradient(90deg, var(--theme-accent) 2px, transparent 2px) left center / 4px 1px no-repeat,
    linear-gradient(90deg, var(--theme-accent) 2px, transparent 2px) right center / 4px 1px no-repeat;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

@keyframes crosshairSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Hover state: crosshair expands */
body.cursor-hover .cursor-cross-h {
  width: 52px;
  left: -26px;
  background: #fff;
  box-shadow: 0 0 10px var(--theme-accent);
}

body.cursor-hover .cursor-cross-v {
  height: 52px;
  top: -26px;
  background: #fff;
  box-shadow: 0 0 10px var(--theme-accent);
}

body.cursor-hover .cursor-dot-center {
  transform: translate(-50%, -50%) scale(1.8);
  background: #fff;
}

body.cursor-hover .cursor-ring-outer {
  width: 32px;
  height: 32px;
  border-color: #fff;
  animation-play-state: paused;
}

/* Theme variants */
body.theme-light .cursor-cross-h,
body.theme-light .cursor-cross-v {
  background: var(--theme-accent);
  box-shadow: 0 0 4px var(--theme-accent-glow);
}

/* Hide crosshair on touch devices */
@media (hover: none) {

  .cursor-crosshair,
  .cursor-trail-canvas {
    display: none !important;
  }

  body,
  button,
  a,
  .project-card,
  .lab-card {
    cursor: auto !important;
  }
}

/* --- 5. PORTFOLIO FILTER SYSTEM --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 44px;
  position: relative;
  z-index: 1;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--theme-card-border);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--theme-text-primary);
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-cyberpunk .filter-btn,
body.theme-emerald .filter-btn {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  box-shadow: 0 0 14px var(--theme-accent-glow);
}

.filter-btn.active {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #ffffff !important;
  box-shadow: 0 8px 20px var(--theme-accent-glow);
}

/* Smooth filtering animations */
.project-grid {
  transition: height 0.5s ease;
}

.project-card {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s;
}

.project-card.is-hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  position: absolute !important;
  visibility: hidden;
}

/* --- 6. GLASSMORPHIC PROJECT DETAILS MODAL --- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(14px);
}

body.theme-light .modal-backdrop {
  background: rgba(241, 245, 249, 0.72);
}

.modal-wrapper {
  position: relative;
  z-index: 2;
  width: min(92%, 1020px);
  max-height: 86vh;
  overflow: hidden;
  transform: scale(0.9) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-modal.is-open .modal-wrapper {
  transform: scale(1) translateY(0);
}

.modal-card {
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: rgba(14, 20, 36, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  position: relative;
  padding: 40px;
}

body.theme-light .modal-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: none;
  transition: all 0.3s;
}

body.theme-light .modal-close-btn {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
}

.modal-close-btn:hover {
  transform: rotate(90deg);
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

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

  .modal-card {
    padding: 28px 20px;
  }
}

/* CAROUSEL */
.modal-visuals {
  width: 100%;
}

.modal-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090e18;
  aspect-ratio: 16 / 10;
}

body.theme-light .modal-carousel {
  border-color: rgba(148, 163, 184, 0.2);
  background: #e2e8f0;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: none;
  transition: all 0.3s;
}

.carousel-nav:hover {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav.prev {
  left: 14px;
}

.carousel-nav.next {
  right: 14px;
}

.carousel-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  padding: 0;
  cursor: none;
  transition: all 0.3s;
}

.carousel-indicator-dot.active {
  background: var(--theme-accent);
  width: 18px;
}

/* MODAL INFO */
.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 800;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #ffffff;
}

body.theme-light .modal-title {
  color: #0f172a;
}

.modal-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

body.theme-light .modal-subtitle {
  color: #475569;
}

.modal-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.modal-tech-row span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.82);
}

body.theme-light .modal-tech-row span {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

.modal-details-body {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "JetBrains Mono", monospace;
}

.detail-section p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

body.theme-light .detail-section p {
  color: #334155;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

body.theme-light .detail-section-grid {
  border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 560px) {
  .detail-section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  background: transparent;
}

body.theme-light .modal-actions .btn-secondary {
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

/* --- 7. SCROLL ENTRANCE REVEAL SYSTEM --- */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger speeds for multiple children grid items */
.stagger-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.stagger-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- EDITORIAL BLUEPRINT GUIDELINES & UNIQUE LANDMARK INDEX STYLINGS --- */

/* Fixed Background Grid Lines */
.grid-guide-lines {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1120px;
  z-index: 0;
  pointer-events: none;
}

.guide-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--theme-card-border);
  opacity: 0.16;
  transition:
    background 0.4s,
    opacity 0.4s;
}

body.theme-light .guide-line {
  opacity: 0.08;
}

.guide-line.left {
  left: 0;
}

.guide-line.center-left {
  left: 33.333%;
}

.guide-line.center-right {
  left: 66.666%;
}

.guide-line.right {
  left: 100%;
}

@media (max-width: 991px) {

  .guide-line.center-left,
  .guide-line.center-right {
    display: none;
  }
}

/* Editorial Headers and Guides */
.section-header-editorial {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
  border-bottom: 1px dashed var(--theme-card-border);
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: border-bottom-color 0.4s;
}

.hero-header-editorial {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.editorial-number {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 0.85;
  font-weight: 900;
  color: var(--theme-accent);
  letter-spacing: 0px;
  transition:
    color 0.4s,
    text-shadow 0.4s;
}


body.theme-cyberpunk .editorial-number {
  text-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

body.theme-emerald .editorial-number {
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.section-header-content {
  display: flex;
  flex-direction: column;
}

.section-header-content .section-kicker {
  margin-bottom: 4px;
}

.section-header-content .section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

/* Double-Border & Grid Blueprints for Interactive Cards */
.service-card,
.project-card,
.lab-card,
.insight-card {
  position: relative;
  box-shadow: none !important;
  /* wipe old standard shadows for pristine wireframes */
}

/* corner blueprint crosshairs/markers */
.service-card::after,
.project-card::after,
.lab-card::after,
.insight-card::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--theme-accent);
  border-bottom: 1.5px solid var(--theme-accent);
  bottom: 8px;
  right: 8px;
  opacity: 0;
  transition:
    opacity 0.3s,
    border-color 0.3s;
  pointer-events: none;
}

.service-card:hover::after,
.project-card:hover::after,
.lab-card:hover::after,
.insight-card:hover::after {
  opacity: 1;
}

/* Ensure inner cards adapt correctly */
body.theme-light .service-card,
body.theme-light .project-card,
body.theme-light .lab-card,
body.theme-light .insight-card {
  border-color: var(--theme-card-border);
  background: rgba(255, 255, 255, 0.72);
}

/* Stretched grid borders between components */
.section {
  border-top: 1px solid var(--theme-card-border);
  border-bottom: 1px solid var(--theme-card-border);
  position: relative;
  z-index: 1;
}

/* Stagger hover states */
.service-card:hover,
.project-card:hover,
.lab-card:hover,
.insight-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--theme-accent);
  box-shadow: 0 12px 30px var(--theme-accent-glow) !important;
}

/* Custom indicator highlighting active scrolling index on guide margins */
.scroll-tracker-editorial {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scroll-track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: none;
  opacity: 0.35;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.scroll-track-item.active {
  opacity: 1;
  transform: scale(1.15);
}

.scroll-track-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--theme-text-primary);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.scroll-track-item.active .scroll-track-dot {
  background: var(--theme-accent);
  box-shadow: 0 0 10px var(--theme-accent);
}

.scroll-track-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--theme-text-primary);
  display: none;
}

.scroll-track-item.active .scroll-track-num {
  display: block;
}

@media (max-width: 768px) {
  .scroll-tracker-editorial {
    display: none;
    /* hide index nav on smaller devices */
  }
}

/* --- 5. THEMATIC CARD ICON OVERRIDES --- */
body.theme-cyberpunk .service-card i {
  color: var(--theme-accent);
  filter: drop-shadow(0 0 10px var(--theme-accent-glow));
}

body.theme-emerald .service-card i {
  color: var(--theme-accent);
  filter: drop-shadow(0 0 10px var(--theme-accent-glow));
}

body.theme-light .service-card i {
  color: var(--theme-accent);
  filter: drop-shadow(0 0 10px var(--theme-accent-glow));
}

body.theme-cyberpunk .lab-card i {
  background: rgba(236, 72, 153, 0.12);
  color: var(--theme-accent);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.18);
}

body.theme-emerald .lab-card i {
  background: rgba(16, 185, 129, 0.12);
  color: var(--theme-accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.18);
}

body.theme-light .lab-card i {
  background: rgba(37, 99, 235, 0.08);
  color: var(--theme-accent);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
}

/* --- 6. GLOWING LINE-BY-LINE HIGHLIGHTER TEXT HOVER INTERACTION --- */
.hover-word {
  position: relative;
  display: inline;
  padding: 3px 0px;
  /* Slight vertical padding for marker thickness; no horizontal padding so they touch seamlessly */
  margin: 0;
  border-radius: 0;
  /* No individual rounded corners so the words join into a single continuous highlight line */
  background-color: transparent;
  transition:
    background-color 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
    box-shadow 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hover-word.is-highlighted {
  background-color: rgba(37,
      99,
      235,
      0.36);
  /* Saturated rich slate blue marker */
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.16);
}

body.theme-cyberpunk .hover-word.is-highlighted {
  background-color: rgba(236,
      72,
      153,
      0.44);
  /* Saturated dark neon pink highlighter */
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.26);
}

body.theme-emerald .hover-word.is-highlighted {
  background-color: rgba(16,
      185,
      129,
      0.42);
  /* Saturated matrix green highlighter */
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.26);
}

body.theme-light .hover-word.is-highlighted {
  background-color: rgba(37,
      99,
      235,
      0.28);
  /* Highly legible rich soft blue highlighter for light mode */
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.08);
}

/* Mobile Menu Toggle & Drawer Styles */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.mobile-menu-toggle:hover {
  border-color: var(--theme-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px var(--theme-accent-glow);
}

.mobile-menu-toggle.is-active {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 16px var(--theme-accent-glow);
}

.mobile-nav-menu {
  display: none;
  /* Only enabled under 920px breakpoint */
}

@media (max-width: 920px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-menu {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(16, 24, 40, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid var(--theme-card-border);
  }

  .mobile-nav-menu.is-open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    padding: 24px 0;
  }

  .mobile-nav-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-nav-inner a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-inner a:hover {
    color: var(--theme-accent);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
  }

  .mobile-nav-inner a i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.48);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-inner a:hover i {
    color: var(--theme-accent);
    transform: scale(1.16) rotate(6deg);
  }

  /* Themes overrides to ensure light mode handles the text color */
  body.theme-light .mobile-nav-menu {
    background: rgba(247, 249, 252, 0.97);
    border-top-color: rgba(0, 0, 0, 0.06);
    border-bottom-color: var(--theme-card-border);
  }

  body.theme-light .mobile-nav-inner a {
    color: rgba(15, 23, 42, 0.82);
  }

  body.theme-light .mobile-nav-inner a i {
    color: rgba(15, 23, 42, 0.48);
  }

  body.theme-light .mobile-nav-inner a:hover {
    color: var(--theme-accent);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
  }
}

/* ==========================================================================
   11. DESKTOP NAVIGATION DROPDOWN MENU
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-card-border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 170px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  margin-top: 8px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--theme-text-primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--theme-accent-glow);
  color: var(--theme-accent) !important;
}

/* Show dropdown on hover/focus */
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Animate trigger on hover */
.nav-item-dropdown:hover .dropdown-trigger,
.nav-item-dropdown:hover .dropdown-trigger i {
  color: var(--theme-accent) !important;
}

.nav-item-dropdown .dropdown-trigger i {
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-trigger i {
  transform: rotate(180deg);
}