/* Neon cyan text glow utility */
.neon-cyan,
.neon-cyan *,
.neon-cyan:where(*) {
  color: var(--neon-cyan) !important;
  text-shadow:
    0 0 4px var(--neon-cyan),
    0 0 8px var(--neon-cyan),
    0 0 16px var(--neon-cyan),
    0 0 32px #00fff7 !important;
}

@media (width <= 768px) {
  .neon-cyan,
  .neon-cyan *,
  .neon-cyan:where(*) {
    text-shadow:
      0 0 2px var(--neon-cyan),
      0 0 4px var(--neon-cyan);
  }

  .icon-label {
    text-shadow: 0 0 2px var(--neon-cyan);
  }

  .landing-title {
    text-shadow: 0 0 4px var(--neon-cyan);
  }

  .psychedelic-text {
    text-shadow:
      0 0 2px #f0f,
      0 0 4px #00f0ff,
      0 0 6px #fffc00,
      0 0 8px #0f6;
  }
}

/* Neon/Cyberpunk/CRT Effects - Global for all windows/apps */
@font-face {
  font-family: 'VT323';
  src: url('/fonts/VT323/VT323-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/Press_Start_2P/PressStart2P-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --font-press-start: 'Press Start 2P', monospace;
  --font-vt323: 'VT323', monospace;
  --neon-purple: #bf00ff;
  --neon-pink: #ff1493;
  --neon-cyan: #0ff;
  --neon-yellow: #ff0;
  --neon-green: #39ff14;
  --neon-blue: #1e90ff;
  --background-gradient: linear-gradient(
    135deg,
    #0a0d15 0%,
    #1a1f35 25%,
    #2a1f45 50%,
    #1f2a45 75%,
    #0f1525 100%
  );
}

body {
  background-color: #111;
  color: var(--neon-cyan);
  font-family: var(--font-vt323);
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  perspective: 1000px;
}

.digital-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  color: var(--neon-green);
  font-family: var(--font-vt323);
  font-size: 14px;
  animation: fall linear infinite;
  opacity: 0.7;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }

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

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
  box-shadow: 0 0 6px var(--neon-cyan);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

body.crt-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgb(0 0 0 / 30%) 3px,
    rgb(0 0 0 / 30%) 3px
  );
  opacity: 0.25;
  display: block;
  animation: scanlines 1s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(4px);
  }
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(90deg, rgb(255 0 255 / 5%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(0 255 255 / 5%) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(800px) rotateX(60deg) translateZ(-100px);
  transform-origin: center top;
  z-index: -1;
  animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0% {
    opacity: 0.3;
    transform: perspective(800px) rotateX(60deg) translateZ(-100px);
  }

  100% {
    opacity: 0.6;
    transform: perspective(800px) rotateX(60deg) translateZ(-50px);
  }
}

/* Add any other shared neon/cyberpunk styles here */
