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

:root {
  --color-primary: 85, 35, 232;
  --color-primary-hex: #5523E8;
  --color-primary-dark: #3F15B8;
  --color-primary-light: #7044F4;
  --color-dark-bg: #07090E;
  --color-dark-surface: #0E121D;
  --color-dark-card: #141A29;
  --color-dark-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0F172A;
  background-color: #07090E;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

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

/* Background Grids & Ambient Lighting */
.bg-grid-tech {
  background-size: 36px 36px;
  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);
}

.bg-grid-tech-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(85, 35, 232, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(85, 35, 232, 0.04) 1px, transparent 1px);
}

.glow-brand {
  box-shadow: 0 0 45px -5px rgba(85, 35, 232, 0.35);
}

.glow-brand-lg {
  box-shadow: 0 0 80px -10px rgba(85, 35, 232, 0.45);
}

.glow-emerald {
  box-shadow: 0 0 35px -5px rgba(16, 185, 129, 0.35);
}

.glow-rose {
  box-shadow: 0 0 35px -5px rgba(244, 63, 94, 0.35);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(14, 18, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: linear-gradient(135deg, rgba(20, 26, 41, 0.8) 0%, rgba(14, 18, 29, 0.6) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(85, 35, 232, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(85, 35, 232, 0.18);
}

/* Pulse stream animations */
@keyframes flowPulse {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.animate-flow {
  stroke-dasharray: 8 6;
  animation: flowPulse 2s linear infinite;
}

@keyframes pingSlow {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.animate-pulse-slow {
  animation: pingSlow 3s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07090E;
}
::-webkit-scrollbar-thumb {
  background: #1E2538;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5523E8;
}

/* Button & Focus Accessibility */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #5523E8;
  outline-offset: 2px;
}

/* Badge Glows */
.tag-badge {
  background: linear-gradient(90deg, rgba(85, 35, 232, 0.15) 0%, rgba(85, 35, 232, 0.05) 100%);
  border: 1px solid rgba(85, 35, 232, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
