/* =========================================
   OUR CLIENTS PAGE STYLES
   ========================================= */

/* Massive Title Styles */
.massive-title-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.massive-line-single {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 7vw, 90px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
}

.text-glow-blue {
    color: #255bbd;
    text-shadow: 0 0 30px rgba(37, 91, 189, 0.3);
}

/* Force navbar to be white and readable at all times */
.enterprise-theme .navbar.white-pill-navbar { 
    background: #ffffff !important; 
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
}
.enterprise-theme .navbar.white-pill-navbar .nav-link, 
.enterprise-theme .navbar.white-pill-navbar .logo-text { 
    color: #0F172A !important; 
}
.enterprise-theme .navbar.white-pill-navbar .nav-link svg { 
    stroke: #0F172A !important; 
}

body.enterprise-theme {
    background-color: #f8fafc; /* Clean subtle background */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px; /* Subtle dot pattern */
}

/* Premium Hero Design */
.clients-hero.modern-premium-hero {
    text-align: center;
    padding: 10rem 2rem 4rem; /* Extra top padding for navbar */
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.7) 0%, rgba(186, 230, 253, 0.4) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: #475569;
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-breadcrumbs {
    display: inline-flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px !important;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.8);
    margin-bottom: 25px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Decorative Background Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: float-orb 15s infinite ease-in-out alternate;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(147, 197, 253, 0.4);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(186, 230, 253, 0.3);
    bottom: -50px;
    right: 5%;
    animation-delay: -5s;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.clients-grid-container {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Exactly 7 logos per row */
    gap: 0.25rem; /* Minimal gap to bring logos closer */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .clients-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1024px) {
    .clients-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
    .massive-line-single { gap: 10px; }
}
@media (max-width: 480px) {
    .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}

.client-card {
    background: transparent;
    border-radius: 16px;
    padding: 0.25rem; /* Very minimal padding to maximize logo size */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    height: 110px; /* Reduced height to pull rows tightly together */
}

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

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 16px;
}

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

@media (max-width: 768px) {
    .clients-hero.modern-premium-hero {
        padding-top: 9rem !important; 
        padding-bottom: 1.5rem !important;
    }
    .clients-grid-container {
        margin-top: 1rem !important;
    }
    .clients-hero h1 {
        font-size: 2.5rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.25rem;
    }
    
    .client-card {
        height: 80px; /* Reduce height on mobile to pull rows tightly together */
    }
}
