/* ============================================
   ANIMATIONS — Keyframes & Transitions
   ============================================ */

/* === FADE IN UP (for scroll-triggered reveals) === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === STAGGERED CHILDREN === */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 0.6s; }

/* === FADE IN === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* === FADE IN UP (keyframe) === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* === GOLD GLOW PULSE === */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(201, 179, 137, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(201, 179, 137, 0.4);
    }
}

.animate-glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* === SHIMMER — Gold shine effect === */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-gold-dark) 0%,
        var(--color-gold-bright) 50%,
        var(--color-gold-dark) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* === SCALE IN === */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

/* === SLIDE DOWN === */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.4s ease forwards;
}

/* === TEXT REVEAL === */
@keyframes textReveal {
    from {
        opacity: 0;
        letter-spacing: 0.3em;
    }
    to {
        opacity: 1;
        letter-spacing: 0.08em;
    }
}

.animate-text-reveal {
    animation: textReveal 1s ease forwards;
}

/* === HERO ENTRANCE === */
.hero-content .hero-title {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .hero-subtitle {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-content .hero-actions {
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.hero-content .hero-logo {
    animation: fadeIn 1.2s ease 0.1s forwards, glowPulse 4s ease-in-out 1.5s infinite;
    opacity: 0;
}

/* === LOADING SPINNER === */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(201, 179, 137, 0.2);
    border-top-color: var(--color-gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* === ACCESSIBILITY — Respect 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;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }

    .hero-content .hero-title,
    .hero-content .hero-subtitle,
    .hero-content .hero-actions,
    .hero-content .hero-logo {
        opacity: 1;
    }

    .hero-particle {
        display: none;
    }
}
