/* ================================================
   TESTIMONIALS SECTION - MODERN 2025 + SWIPER
   Client gratitude & reviews with glassmorphism
   ================================================ */

.testimonials-section-modern {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: var(--color-bg-secondary);  /* Alternating background */
}

/* All background effects removed for clear section alternation */

/* Section Title */
.testimonials-title-modern {
    /* Base styles come from .section-heading and .section-heading-gradient */
}

/* Swiper Wrapper */
.testimonials-swiper-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    overflow: visible; /* Allow peek of next slide */
}

.testimonials-swiper {
    width: 100%;
    padding-bottom: 3rem; /* Space for pagination */
    overflow: visible; /* Allow peek of next slide on mobile */
}

/* Swiper Slide */
.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Desktop: Grid Layout (Swiper disabled on desktop) */
@media (min-width: 769px) {
    .testimonials-swiper .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--card-grid-gap);
    }

    .swiper-slide {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Testimonial Card - Premium style */
.testimonial-card-modern {
    background: rgba(34, 40, 58, 0.65);  /* Lighter and more opaque */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);  /* More visible */
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

/* Testimonial Image */
.testimonial-image-modern {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: all 0.3s ease;
}

.testimonial-card-modern:hover .testimonial-image-modern {
    border-color: var(--color-brand-purple);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

/* Testimonial Info */
.testimonial-info-modern h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-family-headings);
}

.testimonial-project-modern {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 500;
}

/* Swiper Pagination (Custom Styled) */
.testimonials-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    margin: 0 !important;
    border-radius: 50% !important;
    cursor: pointer;
}

.testimonials-pagination .swiper-pagination-bullet:hover {
    background: rgba(59, 130, 246, 0.5) !important;
    transform: scale(1.15);
    border-color: rgba(59, 130, 246, 0.6) !important;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-purple)) !important;
    width: 28px !important;
    border-radius: 5px !important;
    border-color: var(--color-brand-cyan) !important;
    box-shadow:
        var(--shadow-sm),
        0 0 20px rgba(59, 130, 246, 0.3);
}


/* Stats Section - Minimalist Design */
.testimonials-stats-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.stat-item-modern {
    text-align: center;
    position: relative;
    padding: 0;
    transition: transform 0.3s ease;
}

/* Vertical separator between stats */
.stat-item-modern:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(168, 85, 247, 0.3) 20%,
        rgba(168, 85, 247, 0.5) 50%,
        rgba(168, 85, 247, 0.3) 80%,
        transparent);
}

.stat-item-modern:hover {
    transform: scale(1.05);
}

.stat-number-modern {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-brand-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    font-family: var(--font-family-headings);
    letter-spacing: -0.02em;
}

.stat-label-modern {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* Testimonial Lightbox - Optimized */
.testimonial-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.testimonial-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.testimonial-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 48px;
    height: 48px;
    background: rgba(26, 31, 58, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.testimonial-lightbox-close:hover {
    background: rgba(168, 85, 247, 0.6);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(168, 85, 247, 0.8);
}

.testimonial-lightbox-close i {
    width: 24px;
    height: 24px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonials-bg-gradient {
        animation: mesh-breathe-stable 20s ease-in-out infinite;
    }

    .testimonials-section-modern {
        padding: 2.5rem 0;
    }

    .testimonials-swiper-wrapper {
        margin-bottom: 2rem;
    }

    .testimonials-swiper {
        padding-bottom: 2.5rem;
        overflow: visible;   /* Allow small peek */
    }

    .testimonials-swiper .swiper-wrapper {
        overflow: visible;
    }

    .testimonial-card-modern {
        padding: 1.5rem;
    }

    .testimonial-image-modern {
        aspect-ratio: 16 / 10;
        margin-bottom: 1rem;
    }

    .testimonial-info-modern h4 {
        font-size: 1.125rem;
    }

    .testimonial-project-modern {
        font-size: 0.875rem;
    }

    .testimonials-stats-modern {
        flex-direction: column;
        gap: 2.5rem;
    }

    /* Horizontal separator on mobile */
    .stat-item-modern:not(:last-child)::after {
        right: 50%;
        transform: translateX(50%);
        top: auto;
        bottom: -1.25rem;
        width: 80px;
        height: 1px;
        background: linear-gradient(to right,
            transparent,
            rgba(168, 85, 247, 0.3) 20%,
            rgba(168, 85, 247, 0.5) 50%,
            rgba(168, 85, 247, 0.3) 80%,
            transparent);
    }

    .stat-number-modern {
        font-size: 3rem;
    }

    .testimonial-lightbox-overlay {
        padding: 1rem;
    }

    .testimonial-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .testimonial-lightbox-close i {
        width: 20px;
        height: 20px;
    }
}
