/* Testimonials Scrolling Banners Styles */

.testimonials-banners-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Fading edges effect */
.testimonials-banners-container::before,
.testimonials-banners-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-banners-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.testimonials-banners-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.testimonials-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    /* Center content vertically */
}

/* Specific height for Logo Banner */
.testimonials-banner.middle {
    height: 100px;
    /* Compact height for logos */
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.02);
    /* Very subtle background strip */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
}

.top .banner-track,
.bottom .banner-track {
    padding: 20px 0;
}

.middle .banner-track {
    padding: 0;
    gap: 60px;
    /* Wider gap for logos */
    align-items: center;
}

/* Base Card Style */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    background: rgba(108, 92, 231, 0.08);
    border-color: #6c5ce7;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.2);
    z-index: 10;
}

.testimonials-banner:hover .banner-track {
    animation-play-state: paused;
}

/* Homogenized Logo Styles - Circular Tokens */
.banner-logo-item {
    height: 75px;
    /* Circle Size */
    width: 75px;
    object-fit: contain;

    /* Circular Look */
    background: rgba(255, 255, 255, 0.95);
    padding: 14px;
    /* Padding inside circle */
    border-radius: 50%;
    /* Perfect Circle */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Full Color & Visibility */
    filter: none;
    opacity: 1;

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.banner-logo-item:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
    border: 2px solid #6c5ce7;
    background: #fff;
    z-index: 10;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-logo-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.client-role {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* Animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-50% - 15px));
    }

    100% {
        transform: translateX(0);
    }
}

.top .banner-track {
    animation: scrollRight 80s linear infinite;
    /* Move Right */
}

.middle .banner-track {
    animation: scrollLeft 60s linear infinite;
    /* Move Left */
}

.bottom .banner-track {
    animation: scrollRight 80s linear infinite;
    /* Move Right */
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 20px;
    }

    .testimonials-banners-container {
        padding: 20px 0;
        gap: 20px;
    }

    .testimonials-banner.middle {
        height: 80px;
    }

    .banner-logo-item {
        height: 40px;
    }

    .testimonials-banners-container::before,
    .testimonials-banners-container::after {
        width: 60px;
    }
}