/**
 * Animations & Transitions
 */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Insects Animation - More Visible */
.insect {
    position: absolute;
    opacity: 0.12;
    animation: float 20s infinite ease-in-out;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(100px, -80px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translate(200px, 0) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(100px, 80px) rotate(270deg) scale(1.1);
    }
}

.insect:nth-child(1) { animation-duration: 15s; animation-delay: 0s; left: 10%; top: 20%; }
.insect:nth-child(2) { animation-duration: 20s; animation-delay: 2s; left: 80%; top: 15%; }
.insect:nth-child(3) { animation-duration: 18s; animation-delay: 4s; left: 30%; top: 60%; }
.insect:nth-child(4) { animation-duration: 22s; animation-delay: 1s; left: 70%; top: 70%; }
.insect:nth-child(5) { animation-duration: 16s; animation-delay: 3s; left: 50%; top: 40%; }
.insect:nth-child(6) { animation-duration: 19s; animation-delay: 1.5s; left: 15%; top: 80%; }
.insect:nth-child(7) { animation-duration: 21s; animation-delay: 3.5s; left: 85%; top: 50%; }
.insect:nth-child(8) { animation-duration: 17s; animation-delay: 2.5s; left: 40%; top: 10%; }

/* Scroll Reveal - More Dynamic */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Attention-Grabbing Pulse */
@keyframes attention-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
    }
}

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

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

/* Wobble Effect for CTAs */
@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-10px) rotate(-2deg); }
    30% { transform: translateX(8px) rotate(2deg); }
    45% { transform: translateX(-8px) rotate(-1deg); }
    60% { transform: translateX(5px) rotate(1deg); }
    75% { transform: translateX(-3px) rotate(-0.5deg); }
}

/* Site-wide floating insects animation */
@keyframes siteFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    10% {
        transform: translate(50px, 100px) rotate(45deg) scale(1.1);
        opacity: 0.2;
    }
    25% {
        transform: translate(-30px, 200px) rotate(90deg) scale(0.9);
        opacity: 0.15;
    }
    40% {
        transform: translate(100px, 350px) rotate(180deg) scale(1.05);
        opacity: 0.18;
    }
    55% {
        transform: translate(-70px, 500px) rotate(225deg) scale(0.95);
        opacity: 0.15;
    }
    70% {
        transform: translate(80px, 650px) rotate(270deg) scale(1.08);
        opacity: 0.2;
    }
    85% {
        transform: translate(-50px, 800px) rotate(315deg) scale(0.92);
        opacity: 0.15;
    }
    100% {
        transform: translate(0, 1000px) rotate(360deg) scale(1);
        opacity: 0.1;
    }
}
