/* --- Clients Page Stylesheet --- */

.clients-portfolio-section.premium-light-theme {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 8rem 5vw;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.clients-portfolio-section.premium-light-theme .light-leak {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.clients-portfolio-section.premium-light-theme .leak-cyan {
    top: 10%;
    left: -5%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #00f0ff 0%, transparent 70%);
}

.clients-portfolio-section.premium-light-theme .leak-purple {
    bottom: 15%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
}

.clients-portfolio-section.premium-light-theme .leak-red {
    top: 50%;
    left: 25%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #ff0055 0%, transparent 70%);
}

.clients-portfolio-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Centered Header Banner */
.showcase-header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1c77b4;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.showcase-title {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-bottom: 1.5rem !important;
}

.showcase-glow-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1c77b4, #8ebbda);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.showcase-desc {
    font-family: 'Nunito', sans-serif !important;
    font-size: 1.15rem;
    color: #475569;
    max-width: 700px;
    line-height: 1.6;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* Client Logo Grid - 6 columns in desktop */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Client Card */
.client-card {
    height: 160px; /* Reduced height to keep boxes rectangular and balanced in 6-column grid */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(28, 119, 180, 0.04) 0%, rgba(139, 187, 218, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.client-card:hover {
    transform: translateY(-8px);
    border-color: rgba(28, 119, 180, 0.3);
    box-shadow: 0 20px 45px rgba(28, 119, 180, 0.12);
}

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

/* Logo container inside card */
.client-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-card:hover .client-card-inner {
    transform: scale(1.05);
}

.client-card-logo {
    max-width: 90%;
    max-height: 90px;
    object-fit: contain;
    opacity: 0.85; /* Soft opacity by default */
    transition: all 0.5s ease;
}

.client-card:hover .client-card-logo {
    opacity: 1; /* Fully illuminated on hover */
}

/* Custom Typographic Wordmark Logos */
.client-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    color: #0b2c4a;
    transition: all 0.5s ease;
}

.wordmark-icon {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    color: #1c77b4;
    transition: color 0.5s ease, transform 0.5s ease;
}

.client-card:hover .wordmark-icon {
    color: #0b2c4a;
    transform: scale(1.1);
}

.wordmark-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.5s ease;
}

.client-card:hover .wordmark-text {
    color: #1c77b4;
}

.wordmark-subtext {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* Stagger Reveal and Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .client-card {
        height: 180px;
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .client-card {
        height: 150px;
        padding: 1.5rem;
    }
    .showcase-header {
        margin-bottom: 3rem;
    }
    .showcase-title {
        font-size: 2.2rem;
    }
}

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