/* ==========================================================================
   Aurora E-Commerce: Production Parallax & Framer Motion Animation Suite
   Ultra-smooth, 60fps GPU-accelerated parallax and spring-eased scroll motion.
   ========================================================================== */

:root {
  --motion-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --motion-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 1. Base Hardware Acceleration */
[data-parallax],
[data-parallax-layer],
[data-motion-card],
.parallax-item,
.parallax-bg {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

/* 2. Parallax Media Containers (Excluding All Sliders/Carousels) */
.urun-banner-section,
.crazy-deals-section {
  position: relative;
  overflow: hidden;
}

/* Explicitly protect all hero sliders and owl-carousels from any parallax scaling or translation */
.gb-hero-section,
.gb-hero-section *,
.home-slider,
.home-slider *,
.owl-carousel .item img,
.gb-hero-slide-item img,
.gb-hero-side-card img {
  will-change: auto;
}

/* 3. Framer Motion Style Scroll Reveals (Stagger & Spring) */
.motion-fade-up {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.75s var(--motion-ease-spring), transform 0.75s var(--motion-ease-spring);
}

.motion-fade-up.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-zoom-in {
  opacity: 0;
  transform: scale(0.94) translate3d(0, 16px, 0);
  transition: opacity 0.7s var(--motion-ease-spring), transform 0.7s var(--motion-ease-spring);
}

.motion-zoom-in.motion-visible {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

/* Stagger delays for grid children */
.motion-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.motion-stagger > *:nth-child(2) { transition-delay: 0.09s; }
.motion-stagger > *:nth-child(3) { transition-delay: 0.14s; }
.motion-stagger > *:nth-child(4) { transition-delay: 0.19s; }
.motion-stagger > *:nth-child(5) { transition-delay: 0.24s; }
.motion-stagger > *:nth-child(6) { transition-delay: 0.29s; }
.motion-stagger > *:nth-child(7) { transition-delay: 0.34s; }
.motion-stagger > *:nth-child(8) { transition-delay: 0.39s; }

/* 4. Interactive Framer-Motion Card Hover Physics */
.urun-product-card,
.feature-category-item,
.service-feature-card,
.crazy-card {
  transition: transform 0.45s var(--motion-ease-spring), box-shadow 0.45s var(--motion-ease-spring), border-color 0.3s ease !important;
}

/* 5. Parallax Section Headings & Badges */
.urun-section-header,
.section-title,
.custom-breadcrumb {
  transition: transform 0.2s linear;
}

.urun-badge-discount,
.hot-deal-badge {
  animation: subtleFloat 3.6s ease-in-out infinite alternate;
}

@keyframes subtleFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

/* 6. Subtle Parallax Depth Floating Accents */
.parallax-float-slow {
  transition: transform 0.15s linear;
}

.parallax-float-fast {
  transition: transform 0.15s linear;
}

/* 7. Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .motion-fade-up,
  .motion-zoom-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax],
  .parallax-bg,
  .urun-badge-discount {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
