.clients-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.client-item {
    flex: 1 1 100%;
    max-width: 200px;
    margin: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.client-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.company-name {
    font-size: 1.1em;
    color: var(--primary-color);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0 10px;
}

/* Hover Effects */
.client-item:hover {
    transform: translateY(-5px);
}

.client-item:hover .client-logo {
    transform: scale(1.1);
}

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

/* .client-item:hover .company-name {
    opacity: 1;
    transform: translateY(0);
} */

/* Animation for initial load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .client-logo {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }

    .client-item {
        max-width: 250px;
        margin: 0 auto;
    }

    .client-logo {
        height: 100px;
    }
}