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

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #000;
  color: #fff;
}

.font-mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* Glitch text effect */
.glitch-text {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    text-shadow: none;
  }
  91% {
    text-shadow: -2px 0 #cc0000, 2px 0 #0066cc;
  }
  92% {
    text-shadow: 2px 0 #cc0000, -2px 0 #0066cc;
  }
  93% {
    text-shadow: none;
  }
  94% {
    text-shadow: -1px 0 #cc0000, 1px 0 #0066cc;
  }
  95% {
    text-shadow: 1px 0 #cc0000, -1px 0 #0066cc;
  }
}

/* Radar sweep effect */
.radar-sweep {
  background: 
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 40%, rgba(255,255,255,0.02) 40%, transparent 41%);
  animation: radar 4s linear infinite;
}

@keyframes radar {
  0% {
    background: 
      conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,255,255,0.03) 30deg, transparent 60deg);
  }
  100% {
    background: 
      conic-gradient(from 360deg at 50% 50%, transparent 0deg, rgba(255,255,255,0.03) 30deg, transparent 60deg);
  }
}

/* Scanlines */
.scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  opacity: 0.1;
}

/* Noise overlay */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 2px solid #666;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #666; }
}

/* Redacted text */
.redacted-text {
  position: relative;
  display: inline;
}

.redacted-text .visible-text {
  background: #1a1a1a;
  color: #1a1a1a;
  padding: 0 4px;
  transition: all 0.3s ease;
}

.redacted-text .hidden-text {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  background: #2d2d2d;
  padding: 0 4px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.redacted-text.revealed .visible-text {
  opacity: 0;
}

.redacted-text.revealed .hidden-text {
  opacity: 1;
}

/* Document paper texture */
.document-paper {
  position: relative;
}

.document-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
}

/* Clearance cards */
.clearance-card {
  position: relative;
  overflow: hidden;
}

.clearance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1);
}

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

/* Form inputs */
input, select, textarea {
  color: #fff;
}

input::placeholder, textarea::placeholder {
  color: #444;
}

select option {
  background: #000;
  color: #fff;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .typewriter {
    animation: none;
    border-right: none;
  }
  
  .glitch-text {
    font-size: 2.5rem;
  }
}

/* CRT effect overlay (subtle) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0.1) 1px,
      rgba(0, 0, 0, 0.1) 2px
    );
  opacity: 0.1;
  z-index: 9999;
}