/* =============================================
   ERIECOM GADGETS — ANIMATIONS
   ============================================= */

/* AOS-like fade in animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* Stagger via delay */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* Shimmer loading skeleton */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1a1a28 25%, #22223a 50%, #1a1a28 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Page entrance */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: pageEnter 0.5s ease forwards; }

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* Glow pulse on product cards */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(108,59,255,0); }
  50% { box-shadow: 0 0 20px rgba(108,59,255,0.3); }
}

/* Spin loader */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader {
  width: 24px; height: 24px;
  border: 3px solid rgba(108,59,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Count up number animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.bounce { animation: bounce 1s ease infinite; }

/* Cart add success animation */
@keyframes cartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-pop { animation: cartPop 0.3s ease; }

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

/* Neon glow for logo */
@keyframes neonGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(108,59,255,0.6)); }
  50% { filter: drop-shadow(0 0 12px rgba(108,59,255,1)); }
}
.logo-icon { animation: neonGlow 3s ease-in-out infinite; }
