/* ============================================
        TESTIMONIALS SLIDER
============================================ */

.testimonials {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
    background: var(--bg-soft);
    transition: background .4s ease;
}

.testimonials .container {
    width: min(1200px, 92%);
    margin: auto;
    position: relative;
    z-index: 3;
}

.testimonials-header {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

/* ============================================
        SLIDER
============================================ */

.testimonials-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 32px;
}

.slider-track {
    display: flex;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

/* Slide width: 2 per view on desktop, 1 on mobile */
.slide {
    flex: 0 0 50%;
    padding: 10px;
    min-width: 0;
}

/* ============================================
        CARD
============================================ */

.testimonial-card {
    position: relative;
    height: 100%;
    padding: 40px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px var(--shadow);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity .4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 70px var(--shadow-strong), 0 0 45px var(--accent-glow);
}

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

.testimonial-stars {
    font-size: 23px;
    letter-spacing: 5px;
    margin-bottom: 25px;
    color: var(--accent);
    text-shadow: 0 0 18px var(--accent-glow);
}

.testimonial-text {
    font-size: 16.5px;
    line-height: 2.1;
    margin: 0 0 35px;
    color: var(--text);
    flex: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, var(--accent-3));
    box-shadow: 0 8px 22px var(--accent-glow);
    transition: transform .35s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1) rotate(-6deg);
}

.testimonial-user h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
}

.testimonial-user span {
    font-size: 14px;
    color: var(--text-muted);
}

.quote-icon {
    width: 44px;
    height: 44px;
    margin-right: auto;
    opacity: .25;
    color: var(--accent);
    transition: opacity .35s ease, transform .35s ease;
}

.testimonial-card:hover .quote-icon {
    opacity: .6;
    transform: rotate(-6deg) scale(1.1);
}

/* ============================================
        ARROWS
============================================ */

.slider-arrow {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all .35s ease;
    box-shadow: 0 10px 28px var(--shadow);
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
}

.slider-arrow:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: var(--bg);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--accent-glow-strong);
}

/* ============================================
        DOTS
============================================ */

.slider-dots {
    position: absolute;
    bottom: -55px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: var(--accent-border);
    transition: all .35s ease;
    padding: 0;
}

.slider-dot.active {
    width: 30px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
        RESPONSIVE
============================================ */

@media (max-width: 1000px) {
    .testimonials { padding: 130px 0; }
}

@media (max-width: 900px) {
    .testimonials { padding: 120px 0; }
    .testimonials-header { margin-bottom: 60px; }

    .slide {
        flex-basis: 100%;
    }

    .slider-arrow {
        display: none;
    }

    .slider-dots {
        bottom: -50px;
    }
}

@media (max-width: 768px) {
    .testimonials { padding: 90px 0; }
    .testimonials-title { font-size: 38px; }
    .testimonials-description { font-size: 16px; line-height: 2; }
    .testimonial-card { padding: 32px; border-radius: 25px; }
    .testimonial-stars { font-size: 19px; letter-spacing: 3px; }
    .testimonial-text { font-size: 15px; }
    .testimonial-user h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .testimonials-tag { font-size: 12px; padding: 10px 22px; }
    .testimonials-title { font-size: 32px; }
    .testimonial-card { padding: 25px; }
    .testimonial-avatar { width: 52px; height: 52px; font-size: 20px; }
    .testimonial-user { gap: 14px; }
}
