/* ----------------------------------------------------
   SPACEOPS DESIGN SYSTEM & CUSTOM UTILITIES
   Theme: Space Edge Computing CI/CD Platform
   Colors: Deep Slate/Black, Electric Purple, Neon Green
   ---------------------------------------------------- */

/* Google Fonts are loaded via <link> tags in index.html for performance */

:root {
  --color-bg-space: #05070a;
  --color-slate-900: #0a0f18;
  --color-slate-800: #121a28;
  --color-slate-700: #1e293b;
  --color-neon-green: #10b981; /* emerald/neon green */
  --color-electric-purple: #8b5cf6; /* violet/purple */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-space);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-electric-purple);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-space);
  color: #f1f5f9;
  overflow-x: hidden;
}

/* Custom Typography classes */
.font-display {
  font-family: var(--font-display);
}

/* ----------------------------------------------------
   DYNAMIC SPACE EFFECTS & GLOWS
   ---------------------------------------------------- */

/* Grid background overlay */
.bg-grid-cyber {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

/* Neon glow details */
.glow-purple {
  box-shadow: 0 0 40px -5px rgba(139, 92, 246, 0.15);
}

.glow-purple-strong {
  box-shadow: 0 0 25px 0px rgba(139, 92, 246, 0.4);
}

.glow-green {
  box-shadow: 0 0 40px -5px rgba(16, 185, 129, 0.15);
}

.glow-green-strong {
  box-shadow: 0 0 25px 0px rgba(16, 185, 129, 0.4);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(10, 15, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(10, 15, 24, 0.8);
  transform: translateY(-4px);
}

.glass-card-green:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

/* Cybernetic Glowing Borders */
.cyber-border-purple {
  position: relative;
}
.cyber-border-purple::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cyber-border-green {
  position: relative;
}
.cyber-border-green::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ----------------------------------------------------
   ANIMATIONS & PARTICLES
   ---------------------------------------------------- */

/* Slow rotating background nebula or orbits */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}
.animate-pulse-slow {
  animation: pulse-slow 12s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Dashboard Mockup Subtle Zoom */
.hover-scale-img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-scale-img:hover {
  transform: scale(1.02);
}

/* Custom interactive star background */
.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 4s) infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* Button pulse animations */
@keyframes border-glow {
  0%, 100% {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
  }
  50% {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
  }
}
.animate-border-glow {
  animation: border-glow 3s infinite ease-in-out;
}

@keyframes border-glow-green {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  }
}
.animate-border-glow-green {
  animation: border-glow-green 3s infinite ease-in-out;
}

/* Satellite Orbit path styling */
.orbit-line {
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Spin animation for spinner */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}
