@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0b0f17;
  --bg-card: rgba(13, 19, 32, 0.75);
  --border-subtle: rgba(51, 65, 85, 0.45);
  --border-glow: rgba(56, 189, 248, 0.4);
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.font-heading {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Cyber Grid Background */
.cyber-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cyber-grid-dense {
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Radial Glow Highlights */
.hero-glow {
  background: radial-gradient(circle 600px at 50% 10%, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08), transparent 70%);
}

.glow-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 35px -10px rgba(56, 189, 248, 0.15), 0 0 1px 1px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.glow-card-active {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

/* Radar Scan Animation */
@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.radar-spinner {
  animation: radarSweep 6s linear infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse-glow-effect {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Blinking terminal cursor */
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #38bdf8;
  vertical-align: middle;
  margin-left: 4px;
  animation: blinkCursor 1s infinite;
}

/* Button Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 30%,
    transparent 40%
  );
  transform: rotate(25deg);
  animation: shimmerMove 5s infinite;
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-150%) rotate(25deg);
  }
  20%, 100% {
    transform: translateX(150%) rotate(25deg);
  }
}

/* Range input styling for calculator */
input[type="range"] {
  accent-color: #38bdf8;
}

/* Modal transitions */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Toast styling */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* High-tech shield border */
.tech-border-corner {
  position: relative;
}

.tech-border-corner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #38bdf8;
  border-left: 2px solid #38bdf8;
}

.tech-border-corner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #38bdf8;
  border-right: 2px solid #38bdf8;
}

/* Status Indicator Dot */
.led-pulse {
  box-shadow: 0 0 10px #10b981;
}

.led-pulse-cyan {
  box-shadow: 0 0 10px #38bdf8;
}
