/**
 * Testimonials Section
 *
 * @package Manu_Portfolio
 */

/* =====================================================
   SECTION
   ===================================================== */

.testimonials {
    position: relative;
    overflow: hidden;
    background: var(--color-background);
}

.testimonials__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.testimonials__glow {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.055);
    filter: blur(150px);
    transform: translate(-50%, -50%);
}

.testimonials__grid {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image:
        linear-gradient(
            rgba(139, 92, 246, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.045) 1px,
            transparent 1px
        );
    background-size: 100px 100px;
    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 15%,
            black 85%,
            transparent
        );
}


/* =====================================================
   HEADER
   ===================================================== */

.testimonials__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 70px;
}

.testimonials__label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.testimonials__label span:first-child {
    color: var(--color-primary-soft);
}

.testimonials__line {
    flex: 1;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.22),
            transparent
        );
}

.testimonials__hint {
    flex-shrink: 0;
    color: var(--color-text-subtle);
    font-size: 9px;
    letter-spacing: 0.14em;
}


/* =====================================================
   INTRO
   ===================================================== */

.testimonials__intro {
    max-width: 900px;
    margin: 0 auto 75px;
    text-align: center;
}

.testimonials__kicker {
    margin: 0 0 20px;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.testimonials__title {
    margin: 0;
    color: var(--color-text) !important;
    font-size: clamp(48px, 6vw, 84px);
    font-weight: var(--font-weight-bold);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
}

.testimonials__title span {
    display: block;
    color: var(--color-primary-light) !important;
    text-shadow:
        0 0 45px rgba(139, 92, 246, 0.16);
}

.testimonials__description {
    max-width: 650px;
    margin: 30px auto 0;
    color: var(--color-text-muted) !important;
    font-size: 15px;
    line-height: 1.8;
}


/* =====================================================
   CAROUSEL
   ===================================================== */

.testimonials__carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonials__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}


/* =====================================================
   TESTIMONIAL CARD
   ===================================================== */

.testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 16, 26, 0.96),
            rgba(11, 9, 16, 0.96)
        );
    border: 1px solid var(--color-border);
    transition:
        border-color var(--transition-base),
        background var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.testimonial:hover {
    border-color: rgba(139, 92, 246, 0.28);
    background:
        linear-gradient(
            145deg,
            rgba(20, 17, 30, 0.98),
            rgba(11, 9, 16, 0.98)
        );
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: var(--color-primary);
    box-shadow:
        0 0 14px rgba(139, 92, 246, 0.55);
}


/* =====================================================
   TESTIMONIAL TOP
   ===================================================== */

.testimonial__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.testimonial__stars {
    display: flex;
    gap: 3px;
    color: var(--color-primary-soft);
    font-size: 10px;
    line-height: 1;
}

.testimonial__index {
    color: var(--color-text-subtle);
    font-size: 8px;
    letter-spacing: 0.10em;
}


/* =====================================================
   QUOTE
   ===================================================== */

.testimonial__quote {
    position: relative;
    margin: auto 0;
    padding-top: 35px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    line-height: 1.85;
}

.testimonial__quote::before {
    content: "“";
    position: absolute;
    top: 2px;
    left: 0;
    color: rgba(192, 132, 252, 0.22);
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1;
}


/* =====================================================
   AUTHOR
   ===================================================== */

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(168, 163, 184, 0.10);
}

.testimonial__author-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: var(--color-primary-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    border: 1px solid rgba(139, 92, 246, 0.20);
    background: rgba(139, 92, 246, 0.05);
}

.testimonial__author div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testimonial__author strong {
    color: var(--color-text);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
}

.testimonial__author span {
    color: var(--color-text-subtle);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =====================================================
   FOOTER
   ===================================================== */

.testimonials__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 55px;
    color: var(--color-text-subtle);
    font-size: 8px;
    letter-spacing: 0.14em;
}

.testimonials__footer span:nth-child(even) {
    color: rgba(139, 92, 246, 0.35);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1100px) {

    .testimonials__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {

    .testimonials__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial {
        min-height: 290px;
        padding: 24px;
    }

}

@media (max-width: 600px) {

    .testimonials__header {
        gap: 12px;
        margin-bottom: 55px;
    }

    .testimonials__hint {
        display: none;
    }

    .testimonials__intro {
        margin-bottom: 55px;
    }

    .testimonials__kicker {
        font-size: 9px;
        line-height: 1.6;
    }

    .testimonials__title {
        font-size: clamp(40px, 12vw, 62px);
        line-height: 0.94;
    }

    .testimonials__description {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.75;
    }

    .testimonials__track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 5px;
    }

    .testimonials__track::-webkit-scrollbar {
        display: none;
    }

    .testimonial {
        width: min(86vw, 360px);
        min-width: min(86vw, 360px);
        min-height: 300px;
        scroll-snap-align: start;
    }

    .testimonials__footer {
        flex-wrap: wrap;
        gap: 9px;
        margin-top: 40px;
        line-height: 1.8;
    }

}

@media (max-width: 400px) {

    .testimonial {
        width: calc(100vw - 48px);
        min-width: calc(100vw - 48px);
        padding: 22px;
    }

}
