/* ============================================
   ANIMATIONS - Keyframes, Reveal, Floating
   Kedwyn la Bruja
   ============================================ */

/* === Fade Animations === */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === Floating Animations === */
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-25px) rotate(-3deg); }
}

/* === Scroll Indicator === */
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* === Orb Pulse === */
@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

/* === Magic Burst === */
@keyframes magicBurst {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(80); opacity: 0; }
}

/* === Hero Entrance Animations === */
.hero__badge {
    animation: fadeInDown 0.8s ease both;
}

.hero__title {
    animation: fadeInLeft 0.8s ease 0.2s both;
}

.hero__subtitle {
    animation: fadeInLeft 0.8s ease 0.4s both;
}

.hero__actions {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__visual {
    animation: fadeInRight 1s ease 0.3s both;
}

.hero__scroll-indicator {
    animation: fadeInUp 0.8s ease 1s both;
}

.hero__scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero__float-card--1 {
    animation: float1 8s ease-in-out infinite;
}

.hero__float-card--2 {
    animation: float2 9s ease-in-out infinite;
}

/* === CTA Orb === */
.cta__orb {
    animation: orbPulse 4s ease-in-out infinite;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}