@tailwind base;
@tailwind components;
@tailwind utilities;

/* Cyberpunk Vignette & CRT Scanlines */
.scanlines {
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.45) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
}

.vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 6, 15, 0.85) 95%);
}

/* Custom Scrollbar for Sleek HUD look */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #060911;
}
::-webkit-scrollbar-thumb {
  background: #00e5ff44;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00e5ff88;
}

/* Tactical HUD interactive dot animation */
.nav-dot.active div {
  background-color: #00e5ff;
  border-color: #00e5ff;
  box-shadow: 0 0 12px #00e5ff, 0 0 20px #00e5ff88;
  transform: scale(1.25);
}

.nav-dot.active span {
  opacity: 1 !important;
  color: #00e5ff;
  border-color: #00e5ff66;
}

/* Pulsing grid aesthetic */
@keyframes grid-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

.animate-grid-glow {
  animation: grid-glow 4s ease-in-out infinite;
}

/* Glassmorphism Tactical Box */
.hud-glass {
  background: rgba(8, 14, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

/* Keyframe animations */
@keyframes laser-sweep {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(100%); opacity: 0; }
}

.laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  animation: laser-sweep 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Fix mobile touch highlight */
* {
  -webkit-tap-highlight-color: transparent;
}