@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
  background-color: #050505;
  color: #d1d1d1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-variant-ligatures: contextual;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
}

.font-mono {
  font-family: "Fira Code", "Vazirmatn", ui-monospace, SFMono-Regular, monospace;
}

::selection {
  background-color: rgba(81, 175, 239, 0.3);
  color: #fff;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #51afef;
}

/* CRT and Glow Effects */
.crt-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px;
}

.crt-flicker {
  animation: flicker 0.15s infinite;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 51;
  background: rgba(255, 255, 255, 0.01);
  opacity: 0;
}

.scanline {
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(81, 175, 239, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 49;
  animation: scanline 6s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes flicker {
  0% { opacity: 0.01; }
  50% { opacity: 0.03; }
  100% { opacity: 0.01; }
}

.glow-text {
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.glow-text-blue {
  text-shadow: 0 0 10px rgba(81, 175, 239, 0.5);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
