/* CablesCat - Animations */

/* Scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }

/* Floating glow blobs */
.glow-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15; pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.glow-blob-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -150px; }
.glow-blob-2 { width: 350px; height: 350px; background: #7c3aed; bottom: -50px; right: -100px; animation-delay: 3s; }

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.1); }
}

/* Pulse ring on CTA */
@keyframes pulseRing {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(37,99,235,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.btn-primary { animation: pulseRing 2.5s infinite; }
.btn-primary:hover { animation: none; }

/* Shimmer loading */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--secondary) 25%, rgba(255,255,255,0.05) 50%, var(--secondary) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* Smooth fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Cart badge pop */
@keyframes badgePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.cart-count.pop { animation: badgePop 0.3s ease; }

/* Hero text entrance */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slide.active .hero-badge  { animation: slideUp 0.6s 0.1s both ease; }
.hero-slide.active .hero-title  { animation: slideUp 0.6s 0.25s both ease; }
.hero-slide.active .hero-desc   { animation: slideUp 0.6s 0.4s both ease; }
.hero-slide.active .hero-cta    { animation: slideUp 0.6s 0.55s both ease; }

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
