/* ========================================
   MODERN CLIENT SHOWCASE SECTION
   ========================================*/

.modern-client-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    margin: 2rem 0;
    border-top: 1px solid rgba(13, 110, 253, 0.1);
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

    .modern-client-showcase::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="clientGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%230d6efd" stroke-width="0.2" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23clientGrid)"/></svg>');
        opacity: 0.2;
        z-index: 1;
    }

    .modern-client-showcase .container {
        position: relative;
        z-index: 2;
    }

/* ========================================
   HEADER SECTION
   ========================================*/

.client-header {
    text-align: center;
    margin-bottom: 4rem;
}

.client-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

    .client-badge:hover {
        background: rgba(13, 110, 253, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    }

    .client-badge i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

.client-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

    .client-title .text-primary {
        background: linear-gradient(135deg, #0d6efd, #0056b3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.client-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   SCROLLING LOGOS SECTION
   ========================================*/

.scrolling-logos-container {
    margin: 3rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    border-radius: 20px;
    padding: 3rem 0;
    position: relative;
}

    .scrolling-logos-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.08"/><circle cx="30" cy="80" r="1" fill="white" opacity="0.06"/><circle cx="70" cy="70" r="1.2" fill="white" opacity="0.07"/></svg>');
        opacity: 0.4;
    }

.scrolling-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

    .scrolling-track:hover {
        animation-play-state: paused;
    }

.logo-slide {
    flex: 0 0 auto;
    /* background: rgba(255, 255, 255, 0.15); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* border-radius: 16px; */
    padding: 2rem;
    /* backdrop-filter: blur(10px); */
    transition: all 0.4s ease;
    min-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
}

    .logo-slide:hover {
        /* background: rgba(255, 255, 255, 0.25); */
        transform: translateY(-5px);
        /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); */
    }

    .logo-slide .client-logo {
        max-width: 100%;
        max-height: 80px;
        width: auto;
        height: auto;
        object-fit: contain;
        /* filter: brightness(0) invert(1); */
        /* //opacity: 0.9; */
        transition: all 0.4s ease;
        border-radius: 8px;
    }

    .logo-slide:hover .client-logo {
        opacity: 1;
        transform: scale(1.1);
        /* filter: brightness(0) invert(1); */
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 3rem));
    }
}

/* ========================================
   TESTIMONIAL SECTION
   ========================================*/

.testimonial-highlight {
    margin: 4rem 0;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #495057;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
}

    .testimonial-quote::before {
        content: '"';
        font-size: 4rem;
        color: rgba(13, 110, 253, 0.2);
        position: absolute;
        top: -1rem;
        left: -1rem;
        font-family: serif;
    }

.testimonial-author {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.testimonial-position {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ========================================
   CLIENT LOGOS GRID
   ========================================*/

.clients-grid {
    margin: 3rem 0;
}

.client-logo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

    .client-logo-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.08), transparent);
        transition: left 0.6s;
    }

    .client-logo-card:hover::before {
        left: 100%;
    }

    .client-logo-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(13, 110, 253, 0.15);
        border-color: rgba(13, 110, 253, 0.2);
    }

.client-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    /*    filter: grayscale(100%) opacity(0.7);*/
}

.client-logo-card:hover .client-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ========================================
   PREMIUM SLIDER SECTION
   ========================================*/

.premium-slider-container {
    margin: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    border-radius: 20px;
    padding: 3rem 0;
}

    .premium-slider-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.08"/><circle cx="30" cy="80" r="1" fill="white" opacity="0.06"/><circle cx="70" cy="70" r="1.2" fill="white" opacity="0.07"/></svg>');
        opacity: 0.4;
    }

.premium-slider {
    position: relative;
    z-index: 2;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent 0%, white 10%, white 90%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, white 10%, white 90%, transparent 100%);
}

.premium-track {
    display: flex;
    animation: premiumScroll 25s linear infinite;
    gap: 2rem;
}

    .premium-track:hover {
        animation-play-state: paused;
    }

.premium-slide {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .premium-slide:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-3px);
    }

    .premium-slide .client-logo {
        /* filter: brightness(0) invert(1); */
        /* opacity: 0.9; */
        max-height: 60px;
    }

    .premium-slide:hover .client-logo {
        opacity: 1;
        transform: scale(1.1);
    }

@keyframes premiumScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

/* ========================================
   STATS SECTION
   ========================================*/

.client-stats {
    margin-top: 4rem;
    padding: 3rem 0;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.modern-client-showcase .stat-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.modern-client-showcase .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

    .modern-client-showcase .stat-number::after {
        content: '+';
        font-size: 2rem;
        margin-left: 0.25rem;
        opacity: 0.7;
    }

.modern-client-showcase .stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   TESTIMONIAL SECTION
   ========================================*/

.testimonial-highlight {
    margin: 4rem 0;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #495057;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
}

    .testimonial-quote::before {
        content: '"';
        font-size: 4rem;
        color: rgba(13, 110, 253, 0.2);
        position: absolute;
        top: -1rem;
        left: -1rem;
        font-family: serif;
    }

.testimonial-author {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.testimonial-position {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ========================================*/

/* Tablet */
@media (max-width: 991.98px) {
    .modern-client-showcase {
        padding: 60px 0;
    }

    .client-title {
        font-size: 2.5rem;
    }

    .client-subtitle {
        font-size: 1.1rem;
    }

    .client-logo-card {
        height: 120px;
        padding: 1.5rem 1rem;
    }

    .client-logo {
        max-height: 70px;
    }

    .premium-slider-container {
        padding: 2rem 0;
        margin: 3rem 0 1.5rem;
    }

    .premium-slide {
        min-width: 180px;
        padding: 1.25rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonial-quote {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .modern-client-showcase {
        padding: 40px 0;
    }

    .client-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .client-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .client-subtitle {
        font-size: 1rem;
    }

    .client-logo-card {
        height: 100px;
        padding: 1rem;
        border-radius: 12px;
    }

    .client-logo {
        max-height: 60px;
    }

    .premium-slider-container {
        padding: 1.5rem 0;
        margin: 2rem 0 1rem;
        border-radius: 16px;
    }

    .premium-slide {
        min-width: 150px;
        padding: 1rem 1.25rem;
    }

        .premium-slide .client-logo {
            max-height: 50px;
        }

    .client-stats {
        padding: 2rem 0;
        margin-top: 3rem;
        border-radius: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .testimonial-highlight {
        padding: 2rem 1.5rem;
        margin: 3rem 0;
        border-radius: 16px;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .clients-grid .row {
        --bs-gutter-x: 0.75rem;
    }

    .client-logo-card {
        margin-bottom: 1rem;
        height: 90px;
    }

    .client-logo {
        max-height: 50px;
    }

    .premium-track {
        gap: 1rem;
    }

    .premium-slide {
        min-width: 130px;
        padding: 0.75rem 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   ANIMATIONS AND INTERACTIONS
   ========================================*/

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animate {
    animation: countUp 0.8s ease-out;
}

/* Logo Load Animation */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.client-logo-card.animate {
    animation: logoFadeIn 0.6s ease-out;
}

/* Hover Effects for Accessibility */
@media (hover: hover) {
    .client-logo-card:hover .client-logo {
        transform: scale(1.05);
    }

    .premium-slide:hover .client-logo {
        transform: scale(1.1);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .premium-track,
    .client-logo-card,
    .stat-item,
    .premium-slide {
        animation: none !important;
        transition: none !important;
    }

        .client-logo-card:hover,
        .stat-item:hover,
        .premium-slide:hover {
            transform: none !important;
        }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .modern-client-showcase {
        background: #ffffff;
    }

    .client-logo-card {
        border-color: #000000;
    }

    .premium-slider-container {
        background: #000000;
    }

    .client-logo {
        filter: none !important;
    }
}

/* Print Styles */
@media print {
    .modern-client-showcase {
        background: #ffffff !important;
        padding: 1rem 0 !important;
    }

    .premium-slider-container,
    .premium-track {
        display: none !important;
    }

    .client-logo-card {
        background: #f8f9fa !important;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
