/* Logo Carousel Styles */

.logo-carousel-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.logo-carousel-wrapper {
    overflow: hidden;
    padding: 40px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.logo-row {
    display: flex;
    width: max-content;
    gap: 60px;
    padding: 20px 0;
}

/* First row - scrolls left to right */
.logo-row-1 {
    animation: scroll-left 45s linear infinite;
}

/* Second row - scrolls right to left */
.logo-row-2 {
    animation: scroll-right 45s linear infinite;
    margin-top: 40px;
}

/* Third row - scrolls left to right */
.logo-row-3 {
    animation: scroll-left 45s linear infinite;
    margin-top: 40px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
}

/* Hover box shadow - only when enabled */
.hover-shadow-enabled .logo-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
    filter: none;
    opacity: 1;
}

/* Grayscale effect - only when enabled */
.grayscale-enabled .logo-item img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.grayscale-enabled .logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Pause animation on hover - individual row */
.logo-row:hover {
    animation-play-state: paused;
}

/* Placeholder logo styling */
.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .logo-carousel-wrapper {
        padding: 30px 0;
    }

    .logo-item {
        width: 160px;
        height: 90px;
        padding: 15px;
    }

    .logo-row {
        gap: 50px;
    }

    .logo-row-2, .logo-row-3 {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .logo-carousel-wrapper {
        padding: 20px 0;
    }

    .logo-item {
        width: 140px;
        height: 80px;
        padding: 12px;
    }

    .logo-row {
        gap: 40px;
        padding: 15px 0;
    }

    .logo-row-2, .logo-row-3 {
        margin-top: 25px;
    }
}
