/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

/* Hero Text Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Floating Money Animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.money-float {
    animation: float 20s infinite linear;
}

.money-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.money-2 {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.money-3 {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.money-4 {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 32s;
}

.money-5 {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 27s;
}

/* Button Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 106, 0, 0.5), 0 0 40px rgba(255, 106, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 106, 0, 0.8), 0 0 60px rgba(255, 106, 0, 0.5);
    }
}

.btn-primary {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Card Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Pillar Card Animations */
.pillar-card[data-pillar="1"],
.pillar-card[data-pillar="3"],
.pillar-card[data-pillar="5"] {
    animation: slideInLeft 0.8s ease-out forwards;
}

.pillar-card[data-pillar="2"],
.pillar-card[data-pillar="4"] {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Reveal Animation */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: reveal 0.8s ease-out forwards;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 106, 0, 0.8), 0 0 30px rgba(255, 106, 0, 0.6);
    }
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.revenue-number.animating {
    animation: countUp 0.5s ease-out;
}

/* Testimonial Slide Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card.active {
    animation: slideIn 0.5s ease-out;
}

/* Hover Glow Effect */
@keyframes hoverGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 106, 0, 0.6), 0 0 50px rgba(255, 106, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
    }
}

/* Navbar Scroll Animation */
@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar {
    animation: navbarSlideDown 0.3s ease-out;
}

/* Mobile Menu Slide Animation */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.nav-menu.active {
    animation: slideInFromRight 0.3s ease-out;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .money-float {
        animation: none;
        opacity: 0.05;
    }
}
