/* ============================================
   DEFPROD 1 — Animations & Scroll Reveal
   ============================================ */

/* ---- Scroll Reveal System ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-base),
                transform 0.6s var(--transition-base);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animation variants via data-animation */
.reveal[data-animation="fade-in"] {
    transform: none;
}

.reveal[data-animation="fade-up"] {
    transform: translateY(30px);
}

.reveal[data-animation="slide-in-left"] {
    transform: translateX(-40px);
}
.reveal[data-animation="slide-in-left"].revealed {
    transform: translateX(0);
}

.reveal[data-animation="slide-in-right"] {
    transform: translateX(40px);
}
.reveal[data-animation="slide-in-right"].revealed {
    transform: translateX(0);
}

.reveal[data-animation="scale-up"] {
    transform: scale(0.95);
}
.reveal[data-animation="scale-up"].revealed {
    transform: scale(1);
}

/* Stagger children: use .stagger-children on a parent */
.stagger-children > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 500ms; }

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

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

/* Glow pulse for CTA buttons */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(44, 177, 172, 0.3); }
    50%      { box-shadow: 0 0 30px rgba(44, 177, 172, 0.5), 0 0 60px rgba(44, 177, 172, 0.2); }
}

/* Float effect for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Scroll hint bounce */
@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-14px); }
    60%  { transform: translateX(-50%) translateY(-6px); }
}

/* Counter tick-up */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance animations */
.hero-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.8s ease forwards;
}

.hero-enter:nth-child(1) { animation-delay: 0.1s; }
.hero-enter:nth-child(2) { animation-delay: 0.25s; }
.hero-enter:nth-child(3) { animation-delay: 0.4s; }
.hero-enter:nth-child(4) { animation-delay: 0.55s; }
.hero-enter:nth-child(5) { animation-delay: 0.7s; }

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed,
    .reveal[data-animation],
    .hero-enter {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }
}
