/* =============================================
   TESTIMONIALS SECTION - 3D Marquee Effect
   ============================================= */

.testimonials-section {
    padding: 80px 0;
    background: #E6DDCE; /* Cor bege do site */
    overflow: hidden;
    position: relative;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* Container principal com perspectiva 3D */
.testimonials-3d-container {
    position: relative;
    height: 600px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    overflow: hidden;
}

/* Wrapper com transformação 3D */
.testimonials-3d-wrapper {
    display: flex;
    gap: 20px;
    transform: translateX(-100px) translateY(0px) translateZ(-100px) rotateX(20deg) rotateY(-10deg) rotateZ(20deg);
    height: 100%;
}

/* Coluna de marquee */
.marquee-column {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Animação para baixo */
.marquee-down {
    animation-name: marquee-vertical-down;
    animation-duration: 40s;
}

/* Animação para cima */
.marquee-up {
    animation-name: marquee-vertical-up;
    animation-duration: 40s;
}

/* Pausa ao hover */
.testimonials-3d-wrapper:hover .marquee-column {
    animation-play-state: paused;
}

/* Card de depoimento */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 150px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Header do card (avatar + nome) */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Avatar */
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #E6DDCE;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback para avatar sem imagem */
.testimonial-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007c8c;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Info do usuário */
.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-country {
    font-size: 0.85rem;
}

.testimonial-username {
    font-size: 0.85rem;
    color: #8B7355;
    margin: 2px 0 0 0;
}

/* Corpo do depoimento */
.testimonial-body {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.2;
    margin: 0;
}

/* Gradientes de fade */
.testimonials-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to bottom, #E6DDCE, transparent);
    pointer-events: none;
    z-index: 10;
}

.testimonials-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to top, #E6DDCE, transparent);
    pointer-events: none;
    z-index: 10;
}

.testimonials-gradient-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 25%;
    background: linear-gradient(to right, #E6DDCE, transparent);
    pointer-events: none;
    z-index: 10;
}

.testimonials-gradient-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 25%;
    background: linear-gradient(to left, #E6DDCE, transparent);
    pointer-events: none;
    z-index: 10;
}

/* Animações Keyframes */
@keyframes marquee-vertical-down {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-100% - 20px));
    }
}

@keyframes marquee-vertical-up {
    0% {
        transform: translateY(calc(-100% - 20px));
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .testimonials-3d-container {
        height: 500px;
        max-width: 900px;
    }

    .marquee-column {
        flex: 0 0 240px;
    }

    .testimonials-3d-wrapper {
        gap: 15px;
        transform: translateX(-80px) translateY(0px) translateZ(-80px) rotateX(15deg) rotateY(-8deg) rotateZ(15deg);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 20px;
    }

    .testimonials-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .testimonials-3d-container {
        height: 400px;
        max-width: 600px;
    }

    .marquee-column {
        flex: 0 0 200px;
    }

    .testimonials-3d-wrapper {
        gap: 12px;
        transform: translateX(-50px) translateY(0px) translateZ(-50px) rotateX(10deg) rotateY(-5deg) rotateZ(10deg);
    }

    .testimonial-card {
        padding: 16px;
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .testimonials-3d-container {
        height: 350px;
        perspective: 500px;
    }

    .marquee-column {
        flex: 0 0 180px;
    }

    .testimonials-3d-wrapper {
        gap: 10px;
        transform: translateX(-30px) translateY(0px) translateZ(-30px) rotateX(8deg) rotateY(-4deg) rotateZ(8deg);
    }

    .testimonial-header {
        gap: 10px;
    }

    .testimonial-avatar {
        width: 36px;
        height: 36px;
    }

    .testimonial-name {
        font-size: 0.9rem;
    }

    .testimonial-username {
        font-size: 0.8rem;
    }

    .testimonial-body {
        font-size: 0.85rem;
    }
}
