/* ==========================================================================
   KAIROX STUDIOS - Custom Stylesheet & Design System
   Aesthetic: Cyber-Minimalist Gaming Studio / Ultra-Modern Dark Mode
   ========================================================================== */

/* Root Custom Properties */
:root {
  --color-obsidian: #07090e;
  --color-card-bg: #0f1420;
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-indigo: #6366f1;
  --color-violet: #8b5cf6;
  --color-emerald: #10b981;
  --color-cyan: #06b6d4;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
}

/* Base Smooth Scrolling & Font Defaults */
html {
  scroll-behavior: smooth;
  background-color: var(--color-obsidian);
  color: var(--color-text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #07090e;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  border: 2px solid #07090e;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Selection Color */
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

/* Background Cyber Grid Pattern */
.bg-cyber-grid {
  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: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 60%, transparent 100%);
}

.bg-radial-ambient {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.05) 35%, transparent 70%);
}

.bg-radial-hero {
  background: 
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 20% 40%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
}

/* Glassmorphic Components */
.glass-nav {
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-card-border);
}

.glass-card {
  background: rgba(15, 20, 32, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.2);
}

.glass-card-subtle {
  background: rgba(15, 20, 32, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card Spotlight Follower */
.spotlight-card {
  position: relative;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(99, 102, 241, 0.4),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Glow Badges and Buttons */
.gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.gradient-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

.gradient-text {
  background: linear-gradient(135deg, #f8fafc 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-pill {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.glow-pill-indigo {
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

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

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

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-float-slow {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 7s ease-in-out 2s infinite;
}

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

/* Tech Pill Tag */
.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Interactive Code Mockup styling */
.code-window {
  font-family: 'JetBrains Mono', monospace;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Accessibility Focus Ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

