/* css/animations.css - Custom Micro-interactions & Animations */

/* Ambient Mouse Glow Spotlight */
#ambientGlow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

/* Live Status Pulsing Dot Effect */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-dot {
  animation: pulse 2s infinite;
}

/* Skeleton Loading Animation */
.skeleton-card {
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255, 255, 255, 0.08) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-muted);
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Smooth Fade-in on Scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ✨ ALIVE BACKGROUND ANIMATIONS & PARTICLES
   ========================================================================== */

/* 1. Cyber Grid Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  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: 50px 50px;
  pointer-events: none;
  z-index: -2;
}

/* 2. Floating Ambient Glow Orbs */
.bg-blob {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.blob-1 {
  background: #00f2fe;
  top: 10%;
  left: 10%;
}

.blob-2 {
  background: #7928ca;
  bottom: 15%;
  right: 10%;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 50px) scale(1.2);
  }
  100% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

/* 3. Interactive Particle Canvas Container */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

/* 4. Alive Card Hover Border Sweep Effect */
.glass-card {
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent, 
    transparent, 
    transparent, 
    var(--accent-color)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotateSweep 4s linear infinite;
  z-index: -1;
}

.glass-card:hover::after {
  opacity: 0.15;
}

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

