/* Base Styles */
:root {
    --ms-blue: #0078d4;
    --ms-dark-blue: #005a9e;
    --ms-light-blue: #50e6ff;
    --ms-black: #000000;
    --ms-dark-gray: #2b2b2b;
    --ms-gray: #666666;
    --ms-light-gray: #f5f5f5;
    --ms-white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Hero Section */
.clients-header {
    background: linear-gradient(135deg, #0078d4 0%, #004578 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.clients-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.dinamika-si.com/wp-content/uploads/2019/01/hero-pattern.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.clients-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.clients-header-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clients-header-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Filter Section */
.clients-filter {
    background: var(--ms-white);
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-content {
    max-width: 800px;
    margin: 0 auto;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.search-input,
.category-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus,
.category-select:focus {
    outline: none;
    border-color: var(--ms-blue);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.filter-btn {
    background: var(--ms-blue);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--ms-dark-blue);
    transform: translateY(-2px);
}

.clear-btn {
    background: var(--ms-gray);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.clear-btn:hover {
    background: var(--ms-dark-gray);
    transform: translateY(-2px);
}

/* Clients by Category Section */
.clients-category-section {
    padding: 4rem 0;
    background: var(--ms-light-gray);
}

.client-category-group {
    margin-bottom: 4rem;
}

.client-category-group:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ms-black);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ms-blue);
    border-radius: 2px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.client-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.client-image {
    width:100%;
    height:290px;
    object-fit: contain;
    background: var(--ms-light-gray);
    padding: 1rem;
    transition: all 0.3s ease;
    filter: none;
}

.client-placeholder {
    width:100%;
    height:290px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ms-gray);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.client-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 120, 212, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0.1rem;
}

.client-item:hover .client-overlay {
    opacity: 1;
}

.client-item:hover .client-image {
    transform: scale(1.05);
}

.client-item:hover .client-placeholder {
    background: var(--ms-blue);
    color: white;
}

.client-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* No Clients */
.no-clients {
    text-align: center;
    padding: 4rem 0;
}

.no-clients-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-clients-content i {
    font-size: 4rem;
    color: var(--ms-gray);
    margin-bottom: 1.5rem;
}

.no-clients-content h3 {
    font-size: 1.8rem;
    color: var(--ms-black);
    margin-bottom: 1rem;
}

.no-clients-content p {
    color: var(--ms-gray);
    margin-bottom: 2rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #0078d4 0%, #004578 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-contact-white {
    background: white;
    color: var(--ms-blue);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-contact-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@media (max-width: 1050px) {
    .clients-header {
        padding: 180px 0 80px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .clients-header {
        padding: 150px 0 60px;
    }
    .clients-header-content h1 {
        font-size: 2.5rem;
    }

    .clients-header-content p {
        font-size: 1.1rem;
    }

    .filter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .client-image,
    .client-placeholder {
        height: 120px;
    }

    .client-name {
        font-size: 0.9rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}
@media (max-width: 600px) {
    .clients-header {
        padding: 100px 0 80px;
    }
}
@media (max-width: 480px) {
    .clients-header {
        padding: 100px 0 60px;
    }

    .clients-header-content h1 {
        font-size: 2rem;
    }

    .clients-header-content p {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .client-image,
    .client-placeholder {
        height: 100px;
    }

    .client-name {
        font-size: 0.8rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .btn-contact-white {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
