/* ============================================================
   RAJA SHARMA — PORTFOLIO STYLES
   ============================================================ */

:root {
  --bg: #080808;
  --bg-alt: #0d0d12;
  --panel: #111118;
  --panel-2: #16161f;
  --line: #23232e;
  --line-light: #2e2e3a;
  --ink: #f2f2f5;
  --ink-dim: #d1d1d8;
  --muted: #a8a8b5;
  --muted-dim: #7a7a88;
  --teal: #00c9a7;
  --teal-bright: #00f5d4;
  --teal-dark: #007a68;
  --crimson: #650d20;
  --crimson-lt: #8b1538;
  --grad: linear-gradient(135deg, #00c9a7 0%, #00f5d4 50%, #8b1538 100%);
  --grad-soft: linear-gradient(135deg, #00c9a7 0%, #00f5d4 100%);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-teal: 0 8px 30px -8px rgba(0, 201, 167, 0.6);
  --shadow-teal-lg: 0 14px 40px -8px rgba(0, 201, 167, 0.8);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

::selection {
  background: var(--teal);
  color: #000;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

#blackout {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#blackout.active {
  opacity: 1;
  pointer-events: all;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(0, 201, 167, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 167, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: plGridMove 12s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes plGridMove {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 40px); }
}

.preloader-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 45%,
    rgba(0, 245, 212, 0.08) 50%,
    transparent 55%,
    transparent 100%
  );
  animation: plScan 3s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes plScan {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.preloader-inner {
  position: relative;
  z-index: 2;
  width: min(90vw, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  padding: 20px;
}

.preloader-logo {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--ink);
  animation: plGlitch 3s infinite;
  text-shadow: 0 0 24px rgba(0, 245, 212, 0.4);
}

.preloader-logo .pl-bracket {
  color: var(--teal);
}

@keyframes plGlitch {
  0%, 90%, 100% { transform: translate(0); text-shadow: 0 0 24px rgba(0, 245, 212, 0.4); }
  92% { transform: translate(-2px, 1px); text-shadow: 2px 0 #ff004c, -2px 0 #00f5d4; }
  94% { transform: translate(2px, -1px); text-shadow: -2px 0 #ff004c, 2px 0 #00f5d4; }
  96% { transform: translate(-1px, 0); text-shadow: 1px 0 #ff004c, -1px 0 #00f5d4; }
}

.preloader-terminal {
  width: 100%;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}

.pl-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
}

.pl-line.show {
  opacity: 1;
  transform: translateX(0);
}

.pl-prompt {
  color: var(--teal);
  margin-right: 8px;
}

.pl-ok {
  color: var(--teal-bright);
  margin-left: 8px;
}

.pl-dots::after {
  content: '';
  animation: plDots 1.2s steps(4, end) infinite;
}

@keyframes plDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

.preloader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.7);
  transition: width 0.12s linear;
}

.preloader-counter {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-bright);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
}

.pl-pct-sign {
  font-size: 13px;
  color: var(--muted);
  margin-left: 2px;
}

.preloader-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(154, 154, 168, 0.55);
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

.success-screen {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.success-screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.success-grid-bg {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(0, 201, 167, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 167, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: successGridMove 14s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
  will-change: transform;
}

.success-screen.active .success-grid-bg {
  opacity: 1;
}

@keyframes successGridMove {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 40px); }
}

.success-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 201, 167, 0.12) 0%, transparent 55%);
  pointer-events: none;
  animation: successGlow 4s ease-in-out infinite;
}

@keyframes successGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.success-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px;
  max-width: 560px;
  font-family: var(--mono);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s var(--ease) 0.2s, opacity 0.8s var(--ease) 0.2s;
}

.success-screen.active .success-inner {
  transform: translateY(0);
  opacity: 1;
}

.success-check {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  position: relative;
}

.check-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(0, 245, 212, 0.6));
}

.check-circle {
  stroke: var(--teal-bright);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
}

.check-mark {
  stroke: var(--teal-bright);
  stroke-width: 3.5;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-screen.active .check-circle {
  animation: drawCircle 0.8s var(--ease) 0.3s forwards;
}

.success-screen.active .check-mark {
  animation: drawCheck 0.5s var(--ease) 1s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.success-title {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: successTextIn 0.6s var(--ease) 1.4s forwards;
}

.success-sub {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(20px);
  animation: successTextIn 0.6s var(--ease) 1.6s forwards;
}

.success-msg {
  font-size: 16px;
  color: var(--teal-bright);
  font-weight: 500;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: successTextIn 0.6s var(--ease) 1.8s forwards;
}

@keyframes successTextIn {
  to { opacity: 1; transform: translateY(0); }
}

.success-loading {
  opacity: 0;
  animation: successTextIn 0.6s var(--ease) 2.1s forwards;
}

.success-bar {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  margin: 0 auto 12px;
  overflow: hidden;
  position: relative;
}

.success-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.8);
  animation: successBarFill 3.5s linear forwards;
  animation-delay: 0.3s;
}

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

.success-loading p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#successCountdown {
  color: var(--teal-bright);
  font-weight: 700;
}

.success-dots::after {
  content: '';
  animation: successDots 1.2s steps(4, end) infinite;
}

@keyframes successDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  box-shadow: 0 40px 100px -20px rgba(0, 201, 167, 0.3);
}

.project-modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  transform: rotate(90deg);
  outline: none;
}

.modal-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 0.25s;
}

.modal-close span:nth-child(1) { transform: rotate(45deg); }
.modal-close span:nth-child(2) { transform: rotate(-45deg); }
.modal-close:hover span,
.modal-close:focus-visible span { background: #001a14; }

.modal-hologram {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(0, 201, 167, 0.15) 0%, rgba(8, 8, 8, 0.95) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
  border-right: 1px solid var(--line);
}

.modal-hologram::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 201, 167, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 167, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: holoGrid 8s linear infinite;
  opacity: 0.4;
  will-change: transform;
}

@keyframes holoGrid {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, 30px); }
}

.holo-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  perspective-origin: center;
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 245, 212, 0.4);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3), inset 0 0 20px rgba(0, 245, 212, 0.1);
  will-change: transform;
}

.holo-ring {
  width: 240px;
  height: 240px;
  animation: holoRingSpin 8s linear infinite;
}

.holo-ring-2 {
  width: 190px;
  height: 190px;
  border-style: dashed;
  border-color: rgba(0, 245, 212, 0.5);
  animation: holoRingSpin 6s linear infinite reverse;
}

.holo-ring-3 {
  width: 140px;
  height: 140px;
  border-color: rgba(0, 245, 212, 0.6);
  animation: holoRingSpin 4s linear infinite;
}

@keyframes holoRingSpin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

.holo-core {
  position: relative;
  width: 90px;
  height: 90px;
  transform-style: preserve-3d;
  animation: holoCubeSpin 6s linear infinite;
  will-change: transform;
}

@keyframes holoCubeSpin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to { transform: rotateX(-20deg) rotateY(360deg); }
}

.holo-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.holo-face {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1.5px solid var(--teal-bright);
  background: rgba(0, 245, 212, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4), inset 0 0 20px rgba(0, 245, 212, 0.15);
}

.holo-front  { transform: translateZ(45px); }
.holo-back   { transform: rotateY(180deg) translateZ(45px); }
.holo-left   { transform: rotateY(-90deg) translateZ(45px); }
.holo-right  { transform: rotateY(90deg) translateZ(45px); }
.holo-top    { transform: rotateX(90deg) translateZ(45px); }
.holo-bottom { transform: rotateX(-90deg) translateZ(45px); }

.holo-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  box-shadow: 0 0 20px var(--teal-bright);
  animation: holoScan 2.5s linear infinite;
  z-index: 5;
  opacity: 0.8;
  will-change: top, opacity;
}

@keyframes holoScan {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.holo-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.holo-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal-bright);
  animation: holoFloat 4s ease-in-out infinite;
  will-change: transform, opacity;
}

.holo-particles span:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.holo-particles span:nth-child(2) { top: 70%; left: 25%; animation-delay: 0.5s; }
.holo-particles span:nth-child(3) { top: 40%; left: 80%; animation-delay: 1s; }
.holo-particles span:nth-child(4) { top: 80%; left: 75%; animation-delay: 1.5s; }
.holo-particles span:nth-child(5) { top: 15%; left: 70%; animation-delay: 2s; }
.holo-particles span:nth-child(6) { top: 50%; left: 10%; animation-delay: 2.5s; }
.holo-particles span:nth-child(7) { top: 30%; left: 50%; animation-delay: 3s; }
.holo-particles span:nth-child(8) { top: 60%; left: 60%; animation-delay: 3.5s; }
.holo-particles span:nth-child(9) { top: 85%; left: 45%; animation-delay: 0.8s; }
.holo-particles span:nth-child(10) { top: 25%; left: 35%; animation-delay: 1.8s; }

@keyframes holoFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-15px) scale(1.4); opacity: 1; }
}

.holo-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--teal-bright);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--teal-bright);
  animation: holoLabelBlink 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes holoLabelBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.modal-info {
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
}

.modal-info::-webkit-scrollbar { width: 6px; }
.modal-info::-webkit-scrollbar-track { background: var(--bg-alt); }
.modal-info::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
  line-height: 1.2;
}

.modal-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.modal-section h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.modal-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-bright);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.modal-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: #001a14;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.modal-actions a:hover,
.modal-actions a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
  outline: none;
}

.modal-actions a.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.modal-actions a.ghost:hover,
.modal-actions a.ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--teal-bright);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(0, 245, 212, 0.5);
  transition: width 0.2s, height 0.2s, border-color 0.2s, opacity 0.3s;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: var(--teal);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 9998;
  transition: width 0.1s linear;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 12px 40px;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
}

.logo-bracket { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-pill);
  color: var(--teal);
  transition: background 0.25s, color 0.25s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--teal);
  color: #000;
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 60px;
  z-index: 1;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.18) 0%, transparent 65%);
  top: -200px;
  right: -200px;
  filter: blur(40px);
  animation: glowFloat 10s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 60px) scale(1.15); }
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  max-width: 100%;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 245, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-title .line { display: block; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--muted);
  margin-top: 26px;
  letter-spacing: 0.5px;
}

.hero-desc {
  max-width: 620px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--muted);
  margin-top: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: #001a14;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal-lg);
  outline: none;
}

.btn-primary svg { transition: transform 0.25s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-3px);
  outline: none;
}

.btn-small { padding: 8px 18px; font-size: 12px; }
.btn-full { width: 100%; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--teal-bright);
  line-height: 1;
}

.stat span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span:nth-child(even) { color: var(--teal); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  padding: 100px 40px;
  z-index: 1;
}

.section-alt { background: var(--bg-alt); }
.container { max-width: 1150px; margin: 0 auto; }

.section-head { margin-bottom: 56px; }

.section-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 8px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.about-text p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 18px;
  max-width: 560px;
}

.about-text strong { color: var(--ink); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.about-tags span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--teal);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
}

.info-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.info-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.info-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}

.skill-group h3 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.skill-bar { margin-bottom: 15px; }

.skill-bar > span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

.skill-bar .bar {
  height: 6px;
  background: var(--panel-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.skill-bar .bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: var(--radius-pill);
  transition: width 1.4s var(--ease);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.tech-pills span {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}

.tech-pills span:hover {
  color: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  perspective: 1400px;
  overflow: visible;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  cursor: pointer;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 201, 167, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

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

.project-card.featured {
  grid-column: span 2;
  border-color: rgba(0, 201, 167, 0.4);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.project-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 201, 167, 0.12);
  color: var(--teal);
  border: 1px solid rgba(0, 201, 167, 0.3);
}

.project-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.project-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  position: relative;
  z-index: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.project-tech span {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.project-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  transition: opacity 0.2s;
}

.project-links a:hover { opacity: 0.7; }

.projects-cta {
  text-align: center;
  margin-top: 44px;
}

.projects-grid .project-card {
  opacity: 0;
  transform: translateX(-120px) rotateY(15deg) scale(0.92);
}

.projects-grid .project-card:nth-child(even) {
  transform: translateX(120px) rotateY(-15deg) scale(0.92);
}

.projects-grid .project-card.featured {
  transform: translateX(-150px) rotateY(18deg) scale(0.9);
}

.projects-grid .project-card.slide-in {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) scale(1);
}

.projects-grid .project-card.slide-in:hover {
  transform: translateY(-8px) scale(1.02) rotateY(0deg);
  border-color: var(--teal);
  box-shadow: 0 25px 60px -20px rgba(0, 201, 167, 0.45);
}

.projects-grid .project-card.featured.slide-in {
  transform: translateX(0) rotateY(0deg) scale(1);
}

.projects-grid .project-card.featured.slide-in:hover {
  transform: translateY(-8px) scale(1.02);
}

.game-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}

.game-hud b { color: var(--teal-bright); }

.game-board {
  position: relative;
  height: 320px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 201, 167, 0.06), transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255, 255, 255, 0.02) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255, 255, 255, 0.02) 25px);
  overflow: hidden;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(8, 8, 8, 0.6);
  z-index: 2;
}

.game-overlay.hidden { display: none; }

.spark {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 20px var(--teal-bright), 0 0 40px rgba(0, 245, 212, 0.5);
  cursor: pointer;
  animation: sparkIn 0.25s var(--ease);
  z-index: 3;
}

@keyframes sparkIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-left > p {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 420px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.25s, transform 0.25s;
}

.contact-item:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.ci-icon {
  font-size: 18px;
  color: var(--teal);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.contact-item strong {
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}

.form-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  text-align: center;
  min-height: 16px;
}

.btn-spinner {
  display: inline-block;
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-form button:disabled { cursor: not-allowed; }

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 40px;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
}

.footer-logo span { color: var(--teal); }
.footer p { font-size: 13px; color: var(--muted); }

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--teal); }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-cards [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.about-cards [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.about-cards [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title .line {
  opacity: 0;
  transform: translateY(30px);
  animation: lineIn 0.9s var(--ease) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.30s; }
.hero-title .line:nth-child(3) { animation-delay: 0.45s; }

@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { opacity: 0; animation: fadeSlideUp 0.8s 0.05s var(--ease) forwards; }
.hero-sub { opacity: 0; animation: fadeSlideUp 0.8s 0.55s var(--ease) forwards; }
.hero-desc { opacity: 0; animation: fadeSlideUp 0.8s 0.70s var(--ease) forwards; }
.hero-actions { opacity: 0; animation: fadeSlideUp 0.8s 0.85s var(--ease) forwards; }
.hero-stats { opacity: 0; animation: fadeSlideUp 0.8s 1s var(--ease) forwards; }

/* ============================================================
   RESPONSIVE — MOBILE FIRST REFINEMENTS
   ============================================================ */

@media (max-width: 1024px) {
  .section { padding: 80px 30px; }
  .nav { padding: 16px 28px; }
  .nav.scrolled { padding: 12px 28px; }
  .hero { padding: 110px 30px 60px; }
  .skills-grid { gap: 36px 40px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .cursor-dot,
  .cursor-ring { display: none; }
  body { cursor: auto; }

  .modal-content {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-hologram {
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .holo-stage { width: 200px; height: 200px; }
  .holo-ring { width: 180px; height: 180px; }
  .holo-ring-2 { width: 140px; height: 140px; }
  .holo-ring-3 { width: 100px; height: 100px; }
  .holo-core { width: 70px; height: 70px; }
  .holo-face { width: 70px; height: 70px; }
  .holo-front  { transform: translateZ(35px); }
  .holo-back   { transform: rotateY(180deg) translateZ(35px); }
  .holo-left   { transform: rotateY(-90deg) translateZ(35px); }
  .holo-right  { transform: rotateY(90deg) translateZ(35px); }
  .holo-top    { transform: rotateX(90deg) translateZ(35px); }
  .holo-bottom { transform: rotateX(-90deg) translateZ(35px); }
  .modal-info { padding: 28px; max-height: none; }
}

@media (max-width: 860px) {
  .nav { padding: 16px 22px; }
  .nav.scrolled { padding: 12px 22px; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(10, 10, 14, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
    padding: 30px 24px;
    list-style: none;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 20px; }

  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .skills-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .project-card.featured { grid-column: span 1; }

  .projects-grid .project-card {
    transform: translateX(-60px) scale(0.96);
  }

  .projects-grid .project-card:nth-child(even) {
    transform: translateX(60px) scale(0.96);
  }

  .projects-grid .project-card.featured {
    transform: translateX(-80px) scale(0.94);
  }

  .projects-grid .project-card.slide-in,
  .projects-grid .project-card.featured.slide-in {
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 620px) {
  .preloader-terminal { font-size: 11px; }
  .preloader-hint { font-size: 9px; letter-spacing: 1px; }
  .preloader-inner { padding: 16px; }

  .success-check { width: 80px; height: 80px; margin-bottom: 24px; }
  .success-bar { width: 180px; }
  .success-msg { font-size: 14px; }

  .hero { padding: 110px 22px 80px; }
  .hero-stats { gap: 28px; }
  .hero-scroll { display: none; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 1px; }

  .section { padding: 70px 22px; }
  .section-head { margin-bottom: 40px; }

  .game-board { height: 260px; }
  .game-hud { font-size: 12px; padding: 14px 18px; }

  .footer { padding: 26px 22px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 480px) {
  .about-cards { grid-template-columns: 1fr; }

  .project-modal { padding: 0; }
  .modal-content { border-radius: 0; max-height: 100vh; height: 100vh; }
  .modal-hologram { min-height: 220px; }
  .holo-stage { width: 160px; height: 160px; }
  .holo-ring { width: 150px; height: 150px; }
  .holo-ring-2 { width: 115px; height: 115px; }
  .holo-ring-3 { width: 80px; height: 80px; }
  .holo-core { width: 55px; height: 55px; }
  .holo-face { width: 55px; height: 55px; }
  .holo-front  { transform: translateZ(27px); }
  .holo-back   { transform: rotateY(180deg) translateZ(27px); }
  .holo-left   { transform: rotateY(-90deg) translateZ(27px); }
  .holo-right  { transform: rotateY(90deg) translateZ(27px); }
  .holo-top    { transform: rotateX(90deg) translateZ(27px); }
  .holo-bottom { transform: rotateX(-90deg) translateZ(27px); }
  .modal-info { padding: 22px; }
  .modal-title { font-size: 1.3rem; }
  .modal-desc { font-size: 13.5px; }
  .modal-close { top: 12px; right: 12px; width: 36px; height: 36px; }

  .contact-form { padding: 22px; }
  .contact-left h3 { font-size: 1.3rem; }
  .contact-item { padding: 12px 14px; gap: 12px; }

  .btn { padding: 12px 22px; font-size: 13px; }
  .btn-small { padding: 7px 14px; font-size: 11px; }

  .footer-links { gap: 16px; }

  .holo-label { font-size: 9px; letter-spacing: 2px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 2.2rem; }
  .stat b { font-size: 1.6rem; }
  .modal-info { padding: 18px; }
  .modal-title { font-size: 1.15rem; }
  .project-tech span { font-size: 9.5px; }
}

@media (hover: none) {
  .project-card.slide-in:hover,
  .projects-grid .project-card.featured.slide-in:hover {
    transform: translateX(0) rotateY(0deg) scale(1);
    box-shadow: none;
  }

  .info-card:hover { transform: none; }
  .contact-item:hover { transform: none; }
  .tech-pills span:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}

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

  .projects-grid .project-card,
  .projects-grid .project-card:nth-child(odd),
  .projects-grid .project-card:nth-child(even),
  .projects-grid .project-card.featured {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title .line,
  .hero-eyebrow,
  .hero-sub,
  .hero-desc,
  .hero-actions,
  .hero-stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
