
/* Animated Logos Section */
.animated-logos-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.logos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #7d963d, #65ac09);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* Scrolling Animation Container */
.logos-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin-bottom: 20px;
}

.logos-scroll-wrapper::before,
.logos-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logos-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #f8f9fa 0%, rgba(248,249,250,0) 100%);
}

.logos-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, #f8f9fa 0%, rgba(248,249,250,0) 100%);
}

/* Logo Track - Infinite Scroll */
.logos-track {
    display: flex;
    gap: 60px;
    width: fit-content;
}

/* First Row - Scroll Left (Default Direction) */
.logos-track-1 {
    animation: scrollLeft 30s linear infinite;
}

/* Second Row - Scroll Right (Opposite Direction) */
.logos-track-2 {
    animation: scrollRight 30s linear infinite;
}

/* Pause on Hover */
.logos-scroll-wrapper:hover .logos-track {
    animation-play-state: paused;
}

/* Scroll Animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Individual Logo Item */
.logo-item {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    background: #ffffff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.logo-item:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 10px 30px rgba(125, 150, 61, 0.25);
    border-color: #7d963d;
}

/* Always Colorful Logos - No Grayscale */
.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none; /* Always colorful */
    transition: transform 0.3s ease;
}

.logo-item:hover img {
    transform: scale(1.1);
}

/* Bottom Note */
.logos-note {
    text-align: center;
    color: #999;
    font-size: 0.95rem;
    margin-top: 30px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .logos-track {
        gap: 40px;
    }
    
    .logos-track-1 {
        animation: scrollLeft 20s linear infinite;
    }
    
    .logos-track-2 {
        animation: scrollRight 20s linear infinite;
    }
    
    .logo-item {
        width: 120px;
        height: 80px;
        padding: 15px;
    }
    
    .logos-scroll-wrapper::before,
    .logos-scroll-wrapper::after {
        width: 80px;
    }
    
    .logos-scroll-wrapper {
        padding: 15px 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .animated-logos-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .logos-track {
        gap: 30px;
    }
    
    .logo-item {
        width: 100px;
        height: 70px;
        padding: 12px;
    }
    
    .logos-scroll-wrapper::before,
    .logos-scroll-wrapper::after {
        width: 50px;
    }
}
