/* Custom Animation Overrides for Better User Experience */

/* Slow down WOW.js animations - make them more gentle */
.animated {
    -webkit-animation-duration: 1.2s !important;
    animation-duration: 1.2s !important;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

/* Specific animation duration overrides */
.wow.animate__slideInUp {
    -webkit-animation-duration: 1.5s !important;
    animation-duration: 1.5s !important;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
}

.wow.animate__fadeInUp {
    -webkit-animation-duration: 1.3s !important;
    animation-duration: 1.3s !important;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
}

.wow.animate__fadeIn {
    -webkit-animation-duration: 1.0s !important;
    animation-duration: 1.0s !important;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
}

.wow.animate__slideInLeft {
    -webkit-animation-duration: 1.4s !important;
    animation-duration: 1.4s !important;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
}

.wow.animate__slideInRight {
    -webkit-animation-duration: 1.4s !important;
    animation-duration: 1.4s !important;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
}

/* Slow down partners slider animation */
.partners-slider {
    animation: slide 60s linear infinite !important;
    width: 200%;
}

/* Add a slight delay for blog section animation */
.blog-area.wow {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

/* Smooth transitions for hover effects */
.partner-logo {
    transition: all 0.4s ease !important;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.partner-logo img {
    transition: all 0.4s ease !important;
}

/* Add subtle animation to partner logos on scroll */
.partner-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.partner-item:nth-child(1) { animation-delay: 0.1s; }
.partner-item:nth-child(2) { animation-delay: 0.2s; }
.partner-item:nth-child(3) { animation-delay: 0.3s; }
.partner-item:nth-child(4) { animation-delay: 0.4s; }
.partner-item:nth-child(5) { animation-delay: 0.5s; }
.partner-item:nth-child(6) { animation-delay: 0.6s; }

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

/* Responsive animation adjustments */
@media (max-width: 768px) {
    .animated {
        -webkit-animation-duration: 0.8s !important;
        animation-duration: 0.8s !important;
    }
    
    .partners-slider {
        animation: slide 45s linear infinite !important;
    }
}
