/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #030014;
}

::-webkit-scrollbar-thumb {
  background: #3b0764;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5b21b6;
}

/* SaaS Grid Background Pattern */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

/* Glassmorphic Navigation */
.glass-nav {
  background: rgba(3, 0, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(10, 6, 26, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(18, 12, 44, 0.65);
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.15);
}

/* Spotlights */
.spotlight {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

.spotlight-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Text Gradients */
.text-gradient-purple {
  background: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Shimmer Effect */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}

/* 1. Space Parallax Backgrounds */
.parallax-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.parallax-stars-1 {
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.7), rgba(0,0,0,0)), 
                    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.5), rgba(0,0,0,0)), 
                    radial-gradient(1.5px 1.5px at 50px 160px, rgba(255,255,255,0.8), rgba(0,0,0,0)), 
                    radial-gradient(1.5px 1.5px at 90px 40px, rgba(255,255,255,0.6), rgba(0,0,0,0)), 
                    radial-gradient(1.5px 1.5px at 130px 80px, rgba(255,255,255,0.9), rgba(0,0,0,0)), 
                    radial-gradient(1.5px 1.5px at 160px 120px, rgba(255,255,255,0.4), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.5;
}

.parallax-stars-2 {
  background-image: radial-gradient(2.5px 2.5px at 50px 50px, rgba(168,85,247,0.8), rgba(0,0,0,0)), 
                    radial-gradient(2px 2px at 150px 100px, rgba(99,102,241,0.6), rgba(0,0,0,0)), 
                    radial-gradient(2.5px 2.5px at 80px 180px, rgba(255,255,255,0.8), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.3;
}

/* 2. Data Tracer Border */
.tracer-container {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover .tracer-container {
  opacity: 1;
}

.tracer-container::before {
  content: "";
  position: absolute;
  top: -50%; 
  left: -50%; 
  width: 200%; 
  height: 200%;
  background: conic-gradient(from 0deg, transparent 60%, rgba(168, 85, 247, 1) 80%, rgba(99, 102, 241, 1) 100%);
  animation: spin-tracer-transform 3s linear infinite;
  
  /* Mask to only show the animated gradient on the 1.5px border */
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  border-radius: inherit;
}

@keyframes spin-tracer-transform {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3. Orbit Keyframes */
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
