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

:root {
  --bg-color: #050507;
  --surface-color: #121216;
  --border-color: #1e1e24;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --terminal-green: #00ff41;
}

@layer base {
  body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
  }
  
  h1, h2, h3, h4, h5, h6, .font-mono {
    font-family: 'JetBrains Mono', monospace;
  }
}


.engine-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
}

.engine-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 0 8px currentColor;
}

.terminal-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--terminal-green);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

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

.scanline {
  width: 100%;
  height: 100px;
  z-index: 50;
  pointer-events: none;
  position: absolute;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(34, 197, 94, 0.02) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.1;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 16rem;
  background-color: var(--bg-color);
  border-left: 1px solid var(--border-color);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 110;
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 105;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Nav Active States */
.nav-link-active {
  color: var(--accent-green) !important;
  position: relative;
}

/* Desktop Bottom Line */
@media (min-width: 768px) {
  .nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
  }
}

/* Mobile Side Border */
@media (max-width: 767px) {
  .mobile-menu-drawer .nav-link-active {
    background-color: rgba(34, 197, 94, 0.05);
    border-left: 2px solid var(--accent-green);
    padding-left: 0.5rem;
  }
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-blink {
  animation: blink 1s step-end infinite;
}

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

.animate-scan {
  animation: scan 8s linear infinite;
}
