/* Clients Section */
.clients-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/portfolio-img5.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(12, 81, 124, 0.051);
    text-align: center;
    position: relative;
    padding: 4rem 0;
    box-sizing: border-box;
}

.clients-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    border-radius: 10px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.clients-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

/* Client Wrapper */
.client-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    border-color: rgba(56, 189, 248, 0.2);
}

.client-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    border-radius: 20px 20px 0 0;
    transition: all 0.4s ease;
}

.client-wrapper:hover::before {
    height: 6px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #38bdf8);
}

.client-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-3px);
}

.client-btn {
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    background: rgba(168, 185, 228, 0.403);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

/* Client Logo Styling */
.client-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    position: relative;
}

.company-logo {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1);
}

.client-btn:hover .company-logo {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Special handling for dark logos */
.company-logo[src*="nexatech"] {
    filter: brightness(0) invert(1);
}

.client-btn:hover .company-logo[src*="nexatech"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Custom Logo Styles (kept for fallback) */
.custom-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Deel Logo */
.deel-logo {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.deel-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.deel-logo:hover::before {
    left: 100%;
}

/* Nexatech Logo */
.nexatech-logo {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nexatech-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nexatech-logo:hover::before {
    left: 100%;
}

/* Udeaku Logo */
.udeaku-logo {
    background: linear-gradient(135deg, #F093FB, #F5576C);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.udeaku-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.udeaku-logo:hover::before {
    left: 100%;
}

/* DVAIO Logo */
.dvaio-logo {
    background: linear-gradient(135deg, #4FACFE, #00F2FE);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.dvaio-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dvaio-logo:hover::before {
    left: 100%;
}

/* Hover Effects for Custom Logos */
.custom-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.client-btn i {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.client-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 100, 235, 0.483);
    z-index: 1;
}

.client-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-btn:hover::before {
    opacity: 1;
}

.client-btn i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-btn h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.client-btn p {
    font-size: 0.95rem;
    color: rgb(16, 16, 16);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.client-btn .btn {
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.client-btn:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .clients-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-btn .btn {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .client-btn {
        padding: 1.5rem;
    }

    .client-btn i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .client-btn h3 {
        font-size: 1.1rem;
    }

    .client-btn p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

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

    .client-btn {
        min-height: auto;
        padding: 1.5rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}