/* ==========================================================================
   Prime Automation — Animations & Motion
   Subtle, performance-friendly transitions with reduced-motion support.
   ========================================================================== */

/* Entrance animations (added via JS IntersectionObserver) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.hero-content .hero-badge { animation: fadeInUp 0.6s var(--ease) both; }
.hero-content h1 { animation: fadeInUp 0.7s 0.08s var(--ease) both; }
.hero-content p { animation: fadeInUp 0.7s 0.16s var(--ease) both; }
.hero-content .hero-cta { animation: fadeInUp 0.7s 0.24s var(--ease) both; }
.hero-content .hero-stats { animation: fadeInUp 0.7s 0.32s var(--ease) both; }

/* Hover micro-interactions */
.btn, .category-card, .product-card, .article-card, .feature-item, .review-card {
    animation-timing-function: var(--ease);
}

/* Respect users who prefer 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;
    }
    .reveal { opacity: 1; transform: none; }
}
