/* ===========================
   H Store — animations.css
   Scroll Animations & Keyframes
   =========================== */

/* ---------- Heartbeat ---------- */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Directional variants */
[data-animate="fade-up"] {
  transform: translateY(40px);
}
[data-animate="fade-up"].reveal { transform: translateY(0); }

[data-animate="fade-down"] {
  transform: translateY(-40px);
}
[data-animate="fade-down"].reveal { transform: translateY(0); }

[data-animate="fade-right"] {
  transform: translateX(-40px);
}
[data-animate="fade-right"].reveal { transform: translateX(0); }

[data-animate="fade-left"] {
  transform: translateX(40px);
}
[data-animate="fade-left"].reveal { transform: translateX(0); }

[data-animate="fade"] {
  transform: none;
}
[data-animate="fade"].reveal { transform: none; }

[data-animate="zoom-in"] {
  transform: scale(0.85);
}
[data-animate="zoom-in"].reveal { transform: scale(1); }

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

/* ---------- Keyframe Animations ---------- */

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 197, 24, 0.2); }
  50% { box-shadow: 0 0 40px rgba(245, 197, 24, 0.4); }
}

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

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

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

/* Bounce in */
@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-bounce-in {
  animation: bounce-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Rotate gradient */
@keyframes rotate-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.shimmer-text {
  background: linear-gradient(90deg, var(--dark) 0%, var(--yellow) 50%, var(--dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 3s linear infinite;
}

/* Count up */
@keyframes count-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Spin */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

.gradient-animated {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark), var(--yellow-light), var(--yellow-dark));
  background-size: 300% 300%;
  animation: gradient-shift 4s ease infinite;
}

/* ---------- Hover Effects ---------- */

/* Card lift */
.card-lift {
  transition: var(--transition);
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Icon bounce */
.icon-bounce {
  transition: var(--transition);
}

.icon-bounce:hover {
  transform: translateY(-4px) scale(1.1);
}

/* Underline grow */
.underline-grow {
  position: relative;
}

.underline-grow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.underline-grow:hover::after {
  width: 100%;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
