/* ============================================
   TESTIMONIALS SECTION - MOBILE PREMIUM
   Design limpo e profissional
   ============================================ */

.testimonials {
    position: relative;
    background: radial-gradient(circle at 50% 50%, #0A1A3C 0%, #000B1D 100%);
    padding: 5rem 0;
    overflow: hidden;
}

/* Background Effects */
.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 92, 45, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

/* Section Header */
.testimonials .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.testimonials .section-title .fa-heart {
    color: var(--primary-orange);
    -webkit-text-fill-color: var(--primary-orange);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }
}

/* ============================================
   VIDEO TESTIMONIALS - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .testimonials {
        padding: 4rem 0;
    }

    .testimonials .section-title {
        font-size: 2rem;
    }

    /* Video Container */
    .video-testimonials-container {
        margin-bottom: 4rem;
    }

    .video-testimonials-grid {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 1rem 1.5rem;
        margin: 0 -1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar */
    .video-testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .video-testimonials-grid {
        scrollbar-width: none;
    }

    /* Video Card - DESIGN LIMPO */
    .video-testimonial-card {
        flex: 0 0 88%;
        scroll-snap-align: center;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(10, 26, 60, 0.8));
        backdrop-filter: blur(10px);
        border: 1.5px solid rgba(255, 92, 45, 0.25);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 92, 45, 0.1);
    }

    .video-testimonial-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 92, 45, 0.4);
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 92, 45, 0.2);
    }

    /* Video Wrapper */
    .video-wrapper-testimonial {
        position: relative;
        width: 100%;
        padding-top: 56.25%;
        background: #000;
        overflow: hidden;
    }

    .testimonial-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(1.05) contrast(1.02);
    }

    /* Play Overlay - LIMPO E CENTRALIZADO */
    .video-play-overlay-testimonial {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg,
                rgba(0, 11, 29, 0.5) 0%,
                rgba(10, 26, 60, 0.6) 100%);
        backdrop-filter: blur(3px);
        transition: opacity 0.3s ease, visibility 0.3s ease;
        cursor: pointer;
    }

    /* Quando o vídeo está tocando, esconde o overlay completamente */
    .video-play-overlay-testimonial.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .video-play-overlay-testimonial:hover {
        background: linear-gradient(135deg,
                rgba(0, 11, 29, 0.4) 0%,
                rgba(10, 26, 60, 0.5) 100%);
    }

    /* Play Button - CENTRALIZADO E LIMPO */
    .play-btn-testimonial {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--primary-orange), #ff7a50);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.8rem;
        padding-left: 5px;
        transition: all 0.3s ease;
        box-shadow:
            0 10px 30px rgba(255, 92, 45, 0.5),
            0 0 20px rgba(255, 92, 45, 0.4);
        animation: playPulse 2s ease-in-out infinite;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    @keyframes playPulse {

        0%,
        100% {
            transform: scale(1);
            box-shadow:
                0 10px 30px rgba(255, 92, 45, 0.5),
                0 0 20px rgba(255, 92, 45, 0.4);
        }

        50% {
            transform: scale(1.08);
            box-shadow:
                0 15px 40px rgba(255, 92, 45, 0.7),
                0 0 35px rgba(255, 92, 45, 0.6);
        }
    }

    .play-btn-testimonial:active {
        transform: scale(0.95);
    }

    /* Video Info */
    .video-testimonial-info {
        padding: 1.5rem;
        text-align: center;
        background: linear-gradient(to bottom, rgba(10, 26, 60, 0.5), rgba(10, 26, 60, 0.7));
    }

    .video-testimonial-info strong {
        display: block;
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        margin-bottom: 0.3rem;
    }

    .video-testimonial-info span {
        font-size: 0.9rem;
        color: rgba(255, 92, 45, 0.9);
        font-weight: 500;
    }

    /* Navigation Dots */
    .video-testimonials-dots {
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .video-testimonials-dots .dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .video-testimonials-dots .dot.active {
        background: var(--primary-orange);
        width: 30px;
        border-radius: 5px;
        box-shadow: 0 0 15px rgba(255, 92, 45, 0.5);
    }

    /* ============================================
       TEXT TESTIMONIALS - MOBILE
       ============================================ */
    .testimonial-slider {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .testimonial-card {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(10, 26, 60, 0.6));
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 2rem 1.5rem;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transform: translateY(30px);
    }

    .testimonial-card.testimonial-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .testimonial-card:nth-child(1).testimonial-visible {
        transition-delay: 0ms;
    }

    .testimonial-card:nth-child(2).testimonial-visible {
        transition-delay: 150ms;
    }

    .testimonial-card:nth-child(3).testimonial-visible {
        transition-delay: 300ms;
    }

    .testimonial-card.testimonial-active {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(10, 26, 60, 0.8));
        border-color: rgba(255, 92, 45, 0.3);
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.3),
            0 0 25px rgba(255, 92, 45, 0.15);
        transform: translateY(0) scale(1.02);
    }

    .testimonial-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid rgba(255, 92, 45, 0.3);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }

    .testimonial-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial-header strong {
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        display: block;
        margin-bottom: 0.2rem;
    }

    .testimonial-header .role {
        font-size: 0.9rem;
        color: #b0b0b0;
        margin-bottom: 0.3rem;
    }

    .testimonial-header .stars {
        display: flex;
        gap: 0.2rem;
    }

    .testimonial-text {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #e0e0e0;
        font-style: italic;
        position: relative;
        padding-left: 1rem;
        border-left: 3px solid rgba(255, 92, 45, 0.3);
    }

    .testimonial-card.testimonial-active .testimonial-text {
        color: #ffffff;
        border-left-color: var(--primary-orange);
    }

    .testimonial-text::before {
        content: '"';
        position: absolute;
        left: -0.5rem;
        top: -0.5rem;
        font-size: 3rem;
        color: rgba(255, 92, 45, 0.2);
        font-family: Georgia, serif;
        line-height: 1;
    }

    .testimonials .text-center {
        padding: 0 1.5rem;
    }

    .testimonials .btn-outline {
        width: 100%;
        max-width: 350px;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        font-weight: 600;
    }
}

/* ============================================
   DESKTOP LAYOUT
   ============================================ */
@media (min-width: 769px) {
    .video-testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .video-testimonial-card {
        flex: none;
    }

    .video-testimonials-dots {
        display: none;
    }

    .testimonial-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ============================================
   PERFORMANCE
   ============================================ */
.testimonial-card,
.video-testimonial-card {
    will-change: transform, opacity;
}