/* ==========================================================================
   ByteAbyss Animations CSS
   ========================================================================== */

/* Keyframe Animations */

/* Glowing pulsation effect for neon borders/glows */
@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 15px rgba(167, 243, 194, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(167, 243, 194, 0.35);
  }
  100% {
    box-shadow: 0 0 15px rgba(167, 243, 194, 0.15);
  }
}

.glow-active {
  animation: glow-pulse 3s infinite ease-in-out;
}

/* Floating animation for hero graphics */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

/* Spin animation for nodes/rings */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spin-slow 25s infinite linear;
}

/* Reverse spin for outer visual elements */
@keyframes spin-reverse-slow {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.spin-reverse-slow {
  animation: spin-reverse-slow 35s infinite linear;
}

/* Pulse animation for core security nodes */
@keyframes pulse-core {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(0.98);
    opacity: 0.8;
  }
}

.pulse-core {
  animation: pulse-core 4s infinite ease-in-out;
}

/* Scroll Triggered Reveals - Initial States */
.reveal-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
  transform: translateY(0);
}

.reveal-slide-up {
  transform: translateY(40px);
}

.reveal-slide-left {
  transform: translateX(40px);
}

.reveal-slide-right {
  transform: translateX(-40px);
}

.reveal-zoom-in {
  transform: scale(0.95);
}

/* Reveal Active States (triggered by JS intersection observer) */
.reveal-on-scroll.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays for children animation (applied programmatically or inline) */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* Timeline line filling animation */
@keyframes fill-width {
  from { width: 0; }
  to { width: 100%; }
}

.animate-timeline-line.active::before {
  animation: fill-width 1.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro interaction transitions */
.micro-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.micro-hover:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}
