/* =============================================================================
   AMYNO Animations CSS
   ============================================================================= */

/* =============================================================================
   Scroll Reveal
   ============================================================================= */

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo) var(--delay, 0ms),
              transform 0.65s var(--ease-out-expo) var(--delay, 0ms);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate="fade-in"] {
  opacity: 0;
  transition: opacity 0.5s ease var(--delay, 0ms);
}

[data-animate="fade-in"].is-visible {
  opacity: 1;
}

[data-animate="slide-left"] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s var(--ease-out-expo) var(--delay, 0ms),
              transform 0.65s var(--ease-out-expo) var(--delay, 0ms);
}

[data-animate="slide-left"].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate="slide-right"] {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s var(--ease-out-expo) var(--delay, 0ms),
              transform 0.65s var(--ease-out-expo) var(--delay, 0ms);
}

[data-animate="slide-right"].is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================================
   Hero
   ============================================================================= */

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.08); }
}

/* Scroll indicator bounce */
.hero-scroll-indicator svg {
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* =============================================================================
   Trust Bar Marquee
   ============================================================================= */

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-bar-track {
  animation: marquee-scroll 30s linear infinite;
}

.trust-bar-track:hover {
  animation-play-state: paused;
}

/* =============================================================================
   Button Shimmer
   ============================================================================= */

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* =============================================================================
   Product Card Hover
   ============================================================================= */

.product-card {
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(28, 58, 40, 0.10),
              0 4px 12px rgba(0, 0, 0, 0.06);
}

/* =============================================================================
   Helix / Molecule
   ============================================================================= */

@keyframes rotate-helix {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Applied via JS or inline for 3D perspective */

/* =============================================================================
   Cart Drawer
   ============================================================================= */

.cart-drawer {
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

/* =============================================================================
   Stagger Utility
   ============================================================================= */

.stagger-children > *:nth-child(1)  { --delay: 0ms; }
.stagger-children > *:nth-child(2)  { --delay: 70ms; }
.stagger-children > *:nth-child(3)  { --delay: 140ms; }
.stagger-children > *:nth-child(4)  { --delay: 210ms; }
.stagger-children > *:nth-child(5)  { --delay: 280ms; }
.stagger-children > *:nth-child(6)  { --delay: 350ms; }
.stagger-children > *:nth-child(7)  { --delay: 420ms; }
.stagger-children > *:nth-child(8)  { --delay: 490ms; }
.stagger-children > *:nth-child(9)  { --delay: 560ms; }
.stagger-children > *:nth-child(10) { --delay: 630ms; }
.stagger-children > *:nth-child(11) { --delay: 700ms; }
.stagger-children > *:nth-child(12) { --delay: 770ms; }

/* =============================================================================
   Loading Spinner
   ============================================================================= */

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

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =============================================================================
   Fade + Scale (for modals)
   ============================================================================= */

@keyframes fade-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =============================================================================
   Reduced Motion
   ============================================================================= */

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

  [data-animate],
  [data-animate].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
