/* Micro-animations and Advanced Animations */

/* Keyframe Animations */
@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);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    }
}

@keyframes drip {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(3px) rotate(5deg);
    }
    50% {
        transform: translateY(-2px) rotate(-3deg);
    }
    75% {
        transform: translateY(1px) rotate(2deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Element Animations */
.hero {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero p {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-cta {
    animation: bounceIn 1s ease-out 0.6s both;
}

.seo-section {
    animation: slideInFromBottom 0.8s ease-out both;
}

.seo-section:nth-child(odd) {
    animation-delay: 0.1s;
}

.seo-section:nth-child(even) {
    animation-delay: 0.3s;
}

/* Logo Animation */
.logo::after {
    animation: drip 3s infinite;
}

/* WhatsApp Button Animation */
.whatsapp-float {
    animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
    animation: glow 1s infinite;
}

/* CTA Buttons Hover Effects */
.hero-cta:hover,
.seo-cta:hover {
    animation: shimmer 1s infinite;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #ff0000 100%);
    background-size: 200px 100%;
}

/* Footer Section Animations */
.footer-section {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }

/* Emoji Animations */
.emoji-float {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.emoji-bounce {
    display: inline-block;
    animation: bounceIn 1s ease-out;
}

.emoji-spin {
    display: inline-block;
    animation: spin 2s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gradient Animations */
.animated-gradient {
    background: linear-gradient(-45deg, #ff0000, #cc0000, #000000, #333333);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll-triggered animations */
.seo-content .seo-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.seo-content .seo-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hover effects with micro-animations */
.seo-section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.footer-section a:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Mobile animation adjustments */
@media (max-width: 768px) {
    .hero h1,
    .hero p,
    .hero-cta {
        animation-duration: 0.8s;
    }

    .seo-section {
        animation: fadeInLeft 0.6s ease-out both;
    }

    .whatsapp-float {
        animation-duration: 2s;
    }
}
