/* ============================================================
   Money Matters Conference — animations.css
   Scroll-triggered reveal animations
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-right {
    transform: translateX(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered children */
.speakers-grid .reveal:nth-child(1) { transition-delay: .05s; }
.speakers-grid .reveal:nth-child(2) { transition-delay: .1s; }
.speakers-grid .reveal:nth-child(3) { transition-delay: .15s; }
.speakers-grid .reveal:nth-child(4) { transition-delay: .2s; }
.speakers-grid .reveal:nth-child(5) { transition-delay: .25s; }
.speakers-grid .reveal:nth-child(6) { transition-delay: .3s; }

.features-grid .reveal:nth-child(1) { transition-delay: .05s; }
.features-grid .reveal:nth-child(2) { transition-delay: .1s; }
.features-grid .reveal:nth-child(3) { transition-delay: .15s; }
.features-grid .reveal:nth-child(4) { transition-delay: .2s; }

.blog-grid .reveal:nth-child(1) { transition-delay: .05s; }
.blog-grid .reveal:nth-child(2) { transition-delay: .1s; }
.blog-grid .reveal:nth-child(3) { transition-delay: .15s; }

.gallery-grid .reveal:nth-child(n) { transition-delay: calc(0.03s * var(--i, 1)); }

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

.hero-title .text-gold {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 40%, var(--gold-light) 60%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Pulse on CTA */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,.4); }
    50%       { box-shadow: 0 0 0 10px rgba(212,160,23,0); }
}

.btn-gold:hover { animation: pulse-gold 1.5s ease infinite; }

/* Fade in hero content */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content .hero-eyebrow { animation: fadeInUp .6s ease .1s both; }
.hero-content .hero-title    { animation: fadeInUp .6s ease .25s both; }
.hero-content .hero-sub      { animation: fadeInUp .6s ease .4s both; }
.hero-content .hero-actions  { animation: fadeInUp .6s ease .55s both; }

/* Smooth testimonial transitions */
.testimonial-item {
    animation: none;
    transition: opacity .4s ease;
}
.testimonial-item.fade-out { opacity: 0; }
.testimonial-item.fade-in  { opacity: 1; }
