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

* {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body {
  background: #000;
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

.glitch-text {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 0.3s infinite;
  color: #ff0040;
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.3s infinite;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate3d(0, 0, 0);
  }
  95% {
    transform: translate3d(-2px, 0, 0);
  }
}

@keyframes glitch-1 {
  0%, 90%, 100% {
    transform: translate3d(0, 0, 0);
  }
  95% {
    transform: translate3d(2px, 0, 0);
  }
}

@keyframes glitch-2 {
  0%, 90%, 100% {
    transform: translate3d(0, 0, 0);
  }
  95% {
    transform: translate3d(-2px, 2px, 0);
  }
}

.terminal-glow {
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* CRT Screen Effect */
.terminal-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    transparent 50%,
    rgba(0, 255, 65, 0.03) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanline 0.1s linear infinite;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff41;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .glitch-text {
    font-size: 2rem;
  }
  
  .terminal-glow {
    margin: 1rem;
  }
}

/* Input focus effects */
input:focus {
  outline: none !important;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Animation for service cards */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

/* Loading animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}