/* ============================================================
   PixelVerse Arena - Animations & Effects
   Theme: Futuristic Cyber-Gaming with Neon Colors
   ============================================================ */

/* --- 1. ALL @KEYFRAMES DEFINITIONS --- */

/* Glow pulse for neon text */
@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 0 0 7px rgba(0, 240, 255, 0.6),
                 0 0 10px rgba(0, 240, 255, 0.4),
                 0 0 21px rgba(0, 240, 255, 0.3),
                 0 0 42px rgba(0, 240, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.9),
                 0 0 30px rgba(0, 240, 255, 0.6),
                 0 0 60px rgba(0, 240, 255, 0.3),
                 0 0 100px rgba(0, 240, 255, 0.1);
  }
}

/* Glow pulse for magenta */
@keyframes glow-pulse-magenta {
  0%, 100% {
    text-shadow: 0 0 7px rgba(255, 0, 255, 0.6),
                 0 0 10px rgba(255, 0, 255, 0.4),
                 0 0 21px rgba(255, 0, 255, 0.3),
                 0 0 42px rgba(255, 0, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.9),
                 0 0 30px rgba(255, 0, 255, 0.6),
                 0 0 60px rgba(255, 0, 255, 0.3),
                 0 0 100px rgba(255, 0, 255, 0.1);
  }
}

/* Glow pulse for green */
@keyframes glow-pulse-green {
  0%, 100% {
    text-shadow: 0 0 7px rgba(0, 255, 136, 0.6),
                 0 0 10px rgba(0, 255, 136, 0.4),
                 0 0 21px rgba(0, 255, 136, 0.3),
                 0 0 42px rgba(0, 255, 136, 0.2);
  }
  50% {
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.9),
                 0 0 30px rgba(0, 255, 136, 0.6),
                 0 0 60px rgba(0, 255, 136, 0.3),
                 0 0 100px rgba(0, 255, 136, 0.1);
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  33% {
    transform: translateY(-10px);
  }
  66% {
    transform: translateY(-5px);
  }
}

/* Float with slight rotation */
@keyframes float-rotate {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* Slide up fade in */
@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide down fade in */
@keyframes slide-down {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide left fade in */
@keyframes slide-left {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide right fade in */
@keyframes slide-right {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Fade out */
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Scale in */
@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scale out */
@keyframes scale-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Neon blink */
@keyframes neon-blink {
  0%, 100% {
    opacity: 1;
  }
  41% {
    opacity: 1;
  }
  42% {
    opacity: 0.3;
  }
  43% {
    opacity: 1;
  }
  45% {
    opacity: 0.3;
  }
  46% {
    opacity: 1;
  }
}

/* Continuous spin */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Reverse spin */
@keyframes spin-reverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Scroll mouse animation */
@keyframes scroll-mouse {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Loading bar progress */
@keyframes loading-bar {
  0% {
    width: 0%;
  }
  20% {
    width: 22%;
  }
  40% {
    width: 38%;
  }
  60% {
    width: 58%;
  }
  80% {
    width: 76%;
  }
  90% {
    width: 88%;
  }
  100% {
    width: 100%;
  }
}

/* Cyber glitch effect */
@keyframes cyber-glitch {
  0% {
    clip-path: inset(0 0 80% 0);
    transform: translate(-3px, 2px);
  }
  10% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(3px, -2px);
  }
  20% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(-2px, 1px);
  }
  30% {
    clip-path: inset(60% 0 20% 0);
    transform: translate(2px, -1px);
  }
  40% {
    clip-path: inset(80% 0 0 0);
    transform: translate(-3px, 3px);
  }
  50% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(3px, 0);
  }
  60% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(-2px, -1px);
  }
  70% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(2px, 1px);
  }
  80% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(-3px, 0);
  }
  90% {
    clip-path: inset(90% 0 0 0);
    transform: translate(3px, -2px);
  }
  100% {
    clip-path: inset(0 0 80% 0);
    transform: translate(0, 0);
  }
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pulse ring for CTAs */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(0, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

/* Pulse ring magenta */
@keyframes pulse-ring-magenta {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 0, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
  }
}

/* Pulse ring green */
@keyframes pulse-ring-green {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(0, 255, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
  }
}

/* Typing animation */
@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Blink caret for typing */
@keyframes blink-caret {
  0%, 100% {
    border-color: #00f0ff;
  }
  50% {
    border-color: transparent;
  }
}

/* Neon flicker (more pronounced) */
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 7px rgba(0, 240, 255, 0.6),
                 0 0 10px rgba(0, 240, 255, 0.4),
                 0 0 21px rgba(0, 240, 255, 0.3),
                 0 0 42px rgba(0, 240, 255, 0.2),
                 0 0 82px rgba(0, 240, 255, 0.1);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.7;
  }
}

/* Neon flicker for magenta */
@keyframes neon-flicker-magenta {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 7px rgba(255, 0, 255, 0.6),
                 0 0 10px rgba(255, 0, 255, 0.4),
                 0 0 21px rgba(255, 0, 255, 0.3),
                 0 0 42px rgba(255, 0, 255, 0.2);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.7;
  }
}

/* Gradient shifting */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Border glow animation */
@keyframes border-glow {
  0%, 100% {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
  }
  50% {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  }
}

/* Border glow magenta */
@keyframes border-glow-magenta {
  0%, 100% {
    border-color: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.05);
  }
  50% {
    border-color: rgba(255, 0, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
  }
}

/* Particle float dots */
@keyframes particle-float {
  0% {
    transform: translateY(100%) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Drift horizontally */
@keyframes drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Wobble */
@keyframes wobble {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

/* Heartbeat pulse */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1);
  }
}

/* Scan line effect */
@keyframes scan-line {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

/* Rain drop effect */
@keyframes rain-drop {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Counter increment animation */
@keyframes count-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Shake */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* --- 2. SCROLL-TRIGGERED ANIMATION CLASSES --- */

.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: none;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-down.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.animated {
  opacity: 1;
  transform: scale(1);
}

.zoom-out {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-out.animated {
  opacity: 1;
  transform: scale(1);
}

.flip-in {
  opacity: 0;
  transform: perspective(600px) rotateX(30deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.flip-in.animated {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg);
}

/* --- 3. HOVER ANIMATION CLASSES --- */

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3),
              0 0 40px rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
}

.hover-glow-magenta:hover {
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3),
              0 0 40px rgba(255, 0, 255, 0.1);
  border-color: #ff00ff;
}

.hover-glow-green:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
              0 0 40px rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
}

.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-8px);
}

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(8deg);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-scale-sm:hover {
  transform: scale(1.02);
}

.hover-scale-lg:hover {
  transform: scale(1.1);
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hover-border-glow {
  transition: all 0.3s ease;
}

.hover-border-glow:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2),
              inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.hover-bright {
  transition: all 0.3s ease;
}

.hover-bright:hover {
  filter: brightness(1.2);
}

.hover-darken {
  transition: all 0.3s ease;
}

.hover-darken:hover {
  filter: brightness(0.8);
}

.hover-shake:hover {
  animation: shake 0.5s ease;
}

.hover-wobble:hover {
  animation: wobble 0.5s ease;
}

/* --- 4. NEON FLICKER ANIMATION --- */

.neon-flicker {
  animation: neon-flicker 3s linear infinite;
}

.neon-flicker-fast {
  animation: neon-flicker 1.5s linear infinite;
}

.neon-flicker-slow {
  animation: neon-flicker 5s linear infinite;
}

.neon-flicker-magenta {
  animation: neon-flicker-magenta 3s linear infinite;
}

/* --- 5. TEXT GLITCH / CYBER EFFECT --- */

.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: relative;
  animation: cyber-glitch 4s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-text::before {
  color: #00f0ff;
  animation: cyber-glitch 3s infinite;
  clip-path: inset(0 0 80% 0);
  transform: translate(-3px, 2px);
  opacity: 0.8;
}

.glitch-text::after {
  color: #ff00ff;
  animation: cyber-glitch 2s infinite reverse;
  clip-path: inset(80% 0 0 0);
  transform: translate(3px, -2px);
  opacity: 0.8;
}

.glitch-image {
  position: relative;
  overflow: hidden;
}

.glitch-image::before,
.glitch-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0;
}

.glitch-image:hover::before {
  opacity: 0.3;
  background-color: rgba(0, 240, 255, 0.2);
  background-blend-mode: overlay;
  animation: cyber-glitch 0.5s infinite;
}

.glitch-image:hover::after {
  opacity: 0.3;
  background-color: rgba(255, 0, 255, 0.2);
  background-blend-mode: overlay;
  animation: cyber-glitch 0.5s infinite reverse;
}

/* Scan line overlay */
.scan-lines {
  position: relative;
  overflow: hidden;
}

.scan-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.02) 2px,
    rgba(0, 240, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.scan-lines::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 10%;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.05));
  animation: scan-line 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* --- 6. PARTICLE FLOATING DOTS --- */

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: #00f0ff;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  width: 3px;
  height: 3px;
  animation-duration: 12s;
  animation-delay: 0s;
  background: #00f0ff;
}

.particle:nth-child(2) {
  left: 25%;
  width: 5px;
  height: 5px;
  animation-duration: 15s;
  animation-delay: 2s;
  background: #ff00ff;
}

.particle:nth-child(3) {
  left: 40%;
  width: 2px;
  height: 2px;
  animation-duration: 10s;
  animation-delay: 4s;
  background: #00ff88;
}

.particle:nth-child(4) {
  left: 55%;
  width: 6px;
  height: 6px;
  animation-duration: 18s;
  animation-delay: 1s;
  background: #ff6600;
}

.particle:nth-child(5) {
  left: 70%;
  width: 3px;
  height: 3px;
  animation-duration: 14s;
  animation-delay: 3s;
  background: #00f0ff;
}

.particle:nth-child(6) {
  left: 85%;
  width: 4px;
  height: 4px;
  animation-duration: 11s;
  animation-delay: 5s;
  background: #ff00ff;
}

.particle:nth-child(7) {
  left: 50%;
  width: 2px;
  height: 2px;
  animation-duration: 16s;
  animation-delay: 0.5s;
  background: #00ff88;
}

.particle:nth-child(8) {
  left: 15%;
  width: 5px;
  height: 5px;
  animation-duration: 13s;
  animation-delay: 2.5s;
  background: #ff6600;
}

.particle:nth-child(9) {
  left: 65%;
  width: 3px;
  height: 3px;
  animation-duration: 9s;
  animation-delay: 4.5s;
  background: #00f0ff;
}

.particle:nth-child(10) {
  left: 35%;
  width: 4px;
  height: 4px;
  animation-duration: 17s;
  animation-delay: 1.5s;
  background: #ff00ff;
}

.particle:nth-child(11) {
  left: 90%;
  width: 2px;
  height: 2px;
  animation-duration: 12s;
  animation-delay: 3.5s;
  background: #00ff88;
}

.particle:nth-child(12) {
  left: 5%;
  width: 6px;
  height: 6px;
  animation-duration: 14s;
  animation-delay: 0.2s;
  background: #ff6600;
}

.particle-slow {
  animation-duration: 25s !important;
}

.particle-fast {
  animation-duration: 7s !important;
}

/* --- 7. PULSE RING FOR CTAs --- */

.pulse-ring {
  animation: pulse-ring 2s ease-in-out infinite;
}

.pulse-ring-magenta {
  animation: pulse-ring-magenta 2s ease-in-out infinite;
}

.pulse-ring-green {
  animation: pulse-ring-green 2s ease-in-out infinite;
}

.pulse-ring-hover {
  position: relative;
}

.pulse-ring-hover::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: inherit;
  border: 2px solid rgba(0, 240, 255, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
}

.pulse-ring-hover:hover::before {
  opacity: 1;
  animation: pulse-ring 1.5s ease-in-out infinite;
}

/* CTA pulse wrapper */
.cta-pulse {
  position: relative;
  display: inline-flex;
}

.cta-pulse::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: inherit;
  border: 2px solid rgba(0, 240, 255, 0.2);
  animation: pulse-ring 2s ease-in-out infinite;
  pointer-events: none;
}

.cta-pulse::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  border-radius: inherit;
  border: 2px solid rgba(0, 240, 255, 0.1);
  animation: pulse-ring 2s ease-in-out infinite 0.5s;
  pointer-events: none;
}

/* --- 8. LOADING BAR ANIMATION --- */

.loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88);
  border-radius: 2px;
  animation: loading-bar-progress 2s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes loading-bar-progress {
  0% {
    width: 0%;
    transform: translateX(0);
  }
  50% {
    width: 60%;
    transform: translateX(40%);
  }
  100% {
    width: 0%;
    transform: translateX(100%);
  }
}

.loading-bar-indeterminate {
  width: 100%;
  height: 4px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-indeterminate::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  border-radius: 2px;
  animation: loading-bar-indeterminate 1.5s ease-in-out infinite;
}

@keyframes loading-bar-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* Loading dots */
.loading-dots::after {
  content: '';
  animation: loading-dots 1.5s steps(4, end) infinite;
}

@keyframes loading-dots {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75% {
    content: '...';
  }
  100% {
    content: '';
  }
}

/* --- 9. TYPING ANIMATION --- */

.typing-text {
  display: inline;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #00f0ff;
  animation: typing 3s steps(40) 1s forwards,
             blink-caret 0.75s step-end infinite;
  width: 0;
}

.typing-text-reveal {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #00f0ff;
  width: 0;
  animation: typing 2s steps(30) forwards,
             blink-caret 0.75s step-end infinite;
}

/* Typing container */
.typing-container {
  display: inline-flex;
  align-items: center;
}

.typing-container .typed-text {
  color: #00f0ff;
}

.typing-container .cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: #00f0ff;
  margin-left: 3px;
  animation: blink-caret 0.75s step-end infinite;
}

/* --- 10. SHIMMER EFFECT FOR CARDS --- */

.shimmer-card {
  position: relative;
  overflow: hidden;
}

.shimmer-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

.shimmer-card-fast::after {
  animation-duration: 1.5s;
}

.shimmer-card-slow::after {
  animation-duration: 5s;
}

/* Shimmer text lines */
.shimmer-text {
  background: linear-gradient(
    90deg,
    rgba(13, 13, 43, 0.6) 25%,
    rgba(0, 240, 255, 0.1) 50%,
    rgba(13, 13, 43, 0.6) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
  color: transparent;
  user-select: none;
}

/* Shimmer border */
.shimmer-border {
  position: relative;
}

.shimmer-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.3),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  z-index: -1;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}

/* --- 11. STAGGER ANIMATION DELAYS FOR GRID ITEMS --- */

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }
.stagger-10 { transition-delay: 1.0s; }
.stagger-11 { transition-delay: 1.1s; }
.stagger-12 { transition-delay: 1.2s; }

/* Delay utility classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }
.delay-1500 { animation-delay: 1.5s; }
.delay-2000 { animation-delay: 2s; }

/* Duration utility classes */
.duration-300 { animation-duration: 0.3s; }
.duration-500 { animation-duration: 0.5s; }
.duration-800 { animation-duration: 0.8s; }
.duration-1000 { animation-duration: 1s; }
.duration-1500 { animation-duration: 1.5s; }
.duration-2000 { animation-duration: 2s; }
.duration-3000 { animation-duration: 3s; }

/* Iteration count */
.infinite-loop {
  animation-iteration-count: infinite;
}

.loop-1 {
  animation-iteration-count: 1;
}

.loop-2 {
  animation-iteration-count: 2;
}

.loop-3 {
  animation-iteration-count: 3;
}

/* Animation fill mode */
.fill-both {
  animation-fill-mode: both;
}

.fill-forwards {
  animation-fill-mode: forwards;
}

.fill-backwards {
  animation-fill-mode: backwards;
}

/* Animation play state */
.paused {
  animation-play-state: paused;
}

.running {
  animation-play-state: running;
}

/* Animation direction */
.normal-direction {
  animation-direction: normal;
}

.reverse-direction {
  animation-direction: reverse;
}

.alternate-direction {
  animation-direction: alternate;
}

/* --- 12. ADDITIONAL UTILITY ANIMATION CLASSES --- */

/* Spin on hover */
.hover-spin:hover {
  animation: spin 1s linear infinite;
}

/* Pulse on hover */
.hover-pulse:hover {
  animation: glow-pulse 1s ease-in-out infinite;
}

/* Float continuous */
.float-continuous {
  animation: float 4s ease-in-out infinite;
}

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

.float-fast {
  animation: float 2s ease-in-out infinite;
}

/* Drift continuous */
.drift-continuous {
  animation: drift 5s ease-in-out infinite;
}

/* Border glow continuous */
.border-glow-continuous {
  animation: border-glow 3s ease-in-out infinite;
}

.border-glow-magenta-continuous {
  animation: border-glow-magenta 3s ease-in-out infinite;
}

/* Heartbeat continuous */
.heartbeat-continuous {
  animation: heartbeat 2s ease-in-out infinite;
}

/* Scale reveal */
.scale-reveal {
  animation: scale-in 0.6s ease both;
}

/* Slide up on appear */
.slide-up-appear {
  animation: slide-up 0.6s ease both;
}

/* Fade in on appear */
.fade-appear {
  animation: fade-in 0.5s ease both;
}

/* Counter animation */
.counter-animate {
  animation: count-up 0.8s ease both;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .fade-in-up,
  .fade-in-down,
  .fade-in-left,
  .fade-in-right,
  .zoom-in,
  .zoom-out,
  .flip-in {
    opacity: 1;
    transform: none;
  }

  .particle {
    display: none;
  }

  .glitch-text::before,
  .glitch-text::after {
    display: none;
  }

  .scan-lines::after {
    animation: none;
    display: none;
  }

  .shimmer-card::after {
    animation: none;
    display: none;
  }

  .loading-bar-fill {
    animation: none;
    width: 100%;
  }

  .loading-bar-indeterminate::after {
    animation: none;
    width: 100%;
  }

  .float-continuous,
  .float-slow,
  .float-fast {
    animation: none;
  }

  .border-glow-continuous,
  .border-glow-magenta-continuous {
    animation: none;
  }

  .pulse-ring,
  .pulse-ring-magenta,
  .pulse-ring-green {
    animation: none;
  }

  .neon-flicker,
  .neon-flicker-fast,
  .neon-flicker-slow,
  .neon-flicker-magenta {
    animation: none;
  }

  .cta-pulse::before,
  .cta-pulse::after {
    animation: none;
  }
}
