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

.testimonials-section-modern {
    position: relative;
    padding: 4rem 0; /* 64px = 1.7cm */
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}

/* Background Effects */
.testimonials-bg-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.4;
    pointer-events: none;
    animation: mesh-breathe 20s ease-in-out infinite;
}

.testimonials-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    animation: float-orb 16s ease-in-out infinite;
    pointer-events: none;
}

.testimonials-orb--1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-brand-purple), transparent);
    top: 15%;
    right: -5%;
    animation-delay: -6s;
}

.testimonials-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-brand-cyan), transparent);
    bottom: 15%;
    left: -5%;
    animation-delay: -11s;
}

/* 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: 2.5rem;
    }

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

/* Testimonial Card - Glassmorphism */
.testimonial-card-modern {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Gradient top border */
.testimonial-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand-purple), var(--color-brand-pink));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card-modern:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonial-card-modern:hover::before {
    opacity: 1;
}

/* 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;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.testimonials-pagination .swiper-pagination-bullet:hover {
    background: rgba(168, 85, 247, 0.6);
    transform: scale(1.2);
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--color-brand-purple), var(--color-brand-pink));
    width: 32px;
    border-radius: 6px;
    border-color: var(--color-brand-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

/* Stats Section */
.testimonials-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item-modern {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item-modern:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.stat-number-modern {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label-modern {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Testimonial Lightbox */
.testimonial-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    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.8);
    backdrop-filter: blur(12px);
    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 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .stat-item-modern {
        padding: 1.5rem;
    }

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

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

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

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