@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');

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

body {
  font-family: 'Space Mono', monospace;
  background: #0a0a0a;
  overflow-x: hidden;
}

.glitch {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes glitch {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

.oscilloscope {
  animation: oscillate 2s ease-in-out infinite;
}

@keyframes oscillate {
  0%, 100% {
    d: path("M0,50 Q25,30 50,50 T100,50");
  }
  50% {
    d: path("M0,50 Q25,70 50,50 T100,50");
  }
}

.gear {
  animation: rotate 20s linear infinite;
}

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

.particle {
  animation: drift 15s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) rotate(360deg);
    opacity: 0;
  }
}



.shatter {
  animation: shatter 0.5s ease-out;
}

@keyframes shatter {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
}

.monitor-scroll {
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.glow-cyan {
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.glow-amber {
  box-shadow: 0 0 10px #ffbf00, 0 0 20px #ffbf00, 0 0 30px #ffbf00;
}

.text-glow-cyan {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.text-glow-amber {
  text-shadow: 0 0 10px #ffbf00, 0 0 20px #ffbf00;
}

/* Touch-friendly interactions */
.touch-manipulation {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Ensure minimum touch target size */
button, a, input, select, textarea {
  min-height: 44px;
  min-width: 44px;
}

/* Smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Better text rendering across browsers */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Prevent layout shift on scroll */
body {
  overflow-x: hidden;
  position: relative;
}

/* Better backdrop blur fallback */
@supports not (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    background-color: rgba(0, 0, 0, 0.95);
  }
}