:root {
  --primary-cyan: #38bdf8;
  --primary-indigo: #6366f1;
  --primary-purple: #a855f7;
  --primary-emerald: #10b981;
}

/* Custom Ultra-Smooth Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #060911;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #060911;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Interactive Cursor Glow */
#cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Canvas background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Background Grid Mesh with expansive coverage */
.bg-grid-mesh {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

/* Radial Ambience */
.bg-ambient-hero {
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.22) 0%, rgba(99, 102, 241, 0.12) 30%, rgba(168, 85, 247, 0.05) 55%, transparent 75%);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(13, 19, 33, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-panel-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 48px -12px rgba(14, 165, 233, 0.22);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Dynamic Gradient Borders */
.gradient-border-card {
  position: relative;
  border-radius: 1.5rem;
  background: rgba(13, 19, 33, 0.85);
  transition: all 0.3s ease;
}
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Glowing text gradients */
.text-gradient-main {
  background: linear-gradient(135deg, #ffffff 10%, #38bdf8 50%, #818cf8 80%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Infinite Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-reverse {
  animation: scroll-marquee-rev 35s linear infinite;
}

.marquee-reverse:hover {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-marquee-rev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Pulse animation */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

.animate-pulse-dot {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Float Animation */
@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float-y 5s ease-in-out infinite;
}

/* Radar pulse for live status */
@keyframes radar-ping {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-ring {
  animation: radar-ping 2.5s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}
