:root {
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}


header {
    text-align: center;
    margin-bottom: 40px;
}

#clients-heading {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

#clients-heading::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--main-col);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.client-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--main-col);
}

.client-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.client-icon {
    font-size: 2.5rem;
    color: var(--main-col);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.client-card:hover .client-icon {
    transform: scale(1.1);
    color: var(--main-col-dark);
}

.client-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}


@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    #clients-heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 1.5rem;
    }
    
    .client-card {
        padding: 25px 15px;
        min-height: 160px;
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    #clients-heading {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}