/* ---------- TESTIMONIALS ---------- */

.testimonials {
    padding: 160px 0;
    text-align: center;
    position: relative;
}

/* HEADER */

.section-header {
    max-width: 700px;
    margin: auto;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 44px;
    margin: 15px 0;
}

.section-header p {
    opacity: .7;
}

/* SLIDER */

.testimonial-slider {
    overflow: hidden;
    position: relative;
}

/* FADE EDGES */

.testimonial-slider::before,
.testimonial-slider::after {

    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.testimonial-slider::before {
    left: 0;
    background: linear-gradient(to right, #0b0b0b, transparent);
}

.testimonial-slider::after {
    right: 0;
    background: linear-gradient(to left, #0b0b0b, transparent);
}

/* TRACK */

.testimonial-track {
    display: flex;
    gap: 30px;

    width: max-content;
    will-change: transform;
    animation: scroll 10s linear infinite;
}

/* PAUSE ON HOVER */

.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

/* CARD */

.testimonial-card {

    width: 360px;

    padding: 35px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(6px);

    text-align: left;

    transition: .4s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.18);
}

/* STARS */

.stars {
    color: #ffd76a;
    margin-bottom: 15px;
}

/* TEXT */

.testimonial-card p {
    font-size: 15px;
    line-height: 1.7;
    opacity: .85;
    margin-bottom: 25px;
}

/* CLIENT */

.client {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.client h4 {
    font-size: 15px;
}

.client span {
    font-size: 13px;
    opacity: .6;
}

/* ANIMATION */

@keyframes scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}