/* Partners Section Enhanced Animations */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes partner-card-float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

.partner-card {
    animation: partner-card-float 4s ease-in-out infinite;
}

@keyframes slide-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.logos-slide {
    animation: slide 20s linear infinite;
    width: calc(
        180px * 6
    ); /* Adjust based on the number of logos and their width */
}

.logos-slide-reverse {
    animation: slide-reverse 20s linear infinite;
    width: calc(
        180px * 6
    ); /* Adjust based on the number of logos and their width */
}

/* Pause animation on hover */
.logos-slide:hover,
.logos-slide-reverse:hover {
    animation-play-state: paused;
}

/* Enhanced hover effects for partner logos */
.partner-logo {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.partner-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f6bb07; /* Yellow accent color */
    transition: width 0.3s ease;
}

.partner-logo:hover::after {
    width: 100%;
}

.partner-logo img {
    transition: all 0.5s ease;
}

.partner-logo:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Adding some responsive adjustments */
@media (max-width: 768px) {
    .logos-slide,
    .logos-slide-reverse {
        width: calc(180px * 6); /* Adjust for mobile */
    }

    .partner-logo {
        min-width: 150px;
    }
}
