/* =========================
   TESTIMONIALS SECTION
========================= */

.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 135px 0 125px;
    background:
        radial-gradient(
            circle at 82% 45%,
            rgba(47, 109, 246, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #f7faff 0%,
            #f4f8ff 100%
        );
}


/* Technical vertical grid */

.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            to right,
            rgba(47, 109, 246, 0.055) 1px,
            transparent 1px
        );

    background-size: 180px 100%;
}


/* Soft bottom glow */

.testimonials-section::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -280px;
    bottom: -320px;

    border: 1px solid rgba(47, 109, 246, 0.13);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================
   LEFT
========================= */

.testimonial-intro {
    position: relative;
    z-index: 2;
    max-width: 540px;
}


/* Eyebrow */

.testimonial-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 25px;

    font-size: 14px;
    font-weight: 500;
    color: #566273;
}

.testimonial-eyebrow span {
    width: 10px;
    height: 10px;

    display: inline-block;

    background: var(--color-primary);
    border-radius: 50%;
}


/* Heading */

.testimonial-intro h2 {
    margin: 0;

    font-size: clamp(44px, 4.2vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.045em;

    font-weight: 600;
    color: var(--color-text);
}

.testimonial-intro h2 strong {
    color: var(--color-primary);
    font-weight: 600;
}


/* Description */

.testimonial-intro p {
    max-width: 470px;

    margin: 30px 0 0;

    font-size: 17px;
    line-height: 1.65;

    color: var(--color-text-muted);
}


/* Trust */

.testimonial-trust {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-top: 42px;
    padding-top: 24px;

    border-top: 1px solid rgba(17, 19, 24, 0.10);

    max-width: 470px;
}

.trust-avatar {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e9f0ff;
    border: 1px solid rgba(47, 109, 246, 0.16);

    color: var(--color-primary);

    font-size: 18px;
    font-weight: 600;
}

.trust-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-content strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.trust-content span {
    font-size: 14px;
    color: var(--color-text-muted);
}


/* =========================
   RIGHT
========================= */

.testimonial-main {
    position: relative;
    z-index: 2;

    padding-top: 12px;
}


/* Meta */

.testimonial-meta {
    display: flex;
    align-items: center;

    width: 100%;
    margin-bottom: 18px;
}

.testimonial-count {
    display: flex;
    align-items: baseline;
    gap: 5px;

    min-width: 65px;

    font-size: 13px;
}

.testimonial-count strong {
    color: var(--color-text);
    font-weight: 600;
}

.testimonial-count span {
    color: #98a2b1;
}

.testimonial-meta-line {
    flex: 1;

    height: 1px;

    background: rgba(17, 19, 24, 0.10);
}

.testimonial-meta-dot {
    width: 30px;
    height: 2px;

    margin-left: 18px;

    background: var(--color-primary);
}


/* =========================
   CARD
========================= */

.testimonial-card {
    position: relative;

    min-height: 380px;

    padding: 48px 52px 42px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(17, 19, 24, 0.07);
    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(47, 109, 246, 0.09),
        0 4px 15px rgba(17, 19, 24, 0.025);

    backdrop-filter: blur(12px);

    transition:
        transform 0.5s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 32px 85px rgba(47, 109, 246, 0.12),
        0 5px 18px rgba(17, 19, 24, 0.035);
}


/* Card top */

.testimonial-card-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


/* Decorative dots instead of fake rating */

.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f4b400;
    font-size: 16px;
    line-height: 1;
}

.testimonial-stars i {
    display: block;
}


/* Quote */

.testimonial-quote-mark {
    position: absolute;
    right: 0;
    top: -20px;

    font-family: Georgia, serif;

    font-size: 105px;
    line-height: 1;

    color: rgba(47, 109, 246, 0.10);

    user-select: none;
}


/* Quote text */

.testimonial-card blockquote {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin: 35px 0 42px;

    font-size: clamp(25px, 2.15vw, 34px);
    line-height: 1.28;
    letter-spacing: -0.025em;

    color: var(--color-text);
}

.testimonial-card blockquote strong {
    font-weight: 600;
}


/* Client */

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-initial {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf3ff;

    color: var(--color-primary);

    font-size: 19px;
    font-weight: 600;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.client-info strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.client-info span {
    font-size: 14px;
    color: var(--color-text-muted);
}


/* Controls */

.testimonial-controls {
    position: absolute;

    right: 42px;
    bottom: 40px;

    display: flex;
    gap: 10px;
}

.testimonial-arrow {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dfe5ee;
    border-radius: 50%;

    background: #fff;

    color: #657181;

    font-size: 15px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.testimonial-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;

    transform: translateY(-2px);
}

.testimonial-arrow-next {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}


/* =========================
   HANDWRITTEN NOTE
========================= */

.testimonial-note {
    position: absolute;

    right: -55px;
    top: -65px;

    display: flex;
    flex-direction: column;

    color: #536277;

    font-family: "Comic Sans MS", "Segoe Print", cursive;

    font-size: 13px;
    line-height: 1.35;

    transform: rotate(-4deg);
}

.testimonial-note svg {
    width: 80px;
    height: 45px;

    margin-top: 2px;
    margin-left: -15px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199.98px) {

    .testimonial-card {
        padding: 42px 42px 38px;
    }

    .testimonial-note {
        right: -15px;
    }

}


@media (max-width: 991.98px) {

    .testimonials-section {
        padding: 100px 0;
    }

    .testimonial-intro {
        max-width: 700px;
    }

    .testimonial-intro h2 {
        font-size: clamp(44px, 8vw, 62px);
    }

    .testimonial-main {
        padding-top: 20px;
    }

    .testimonial-note {
        display: none;
    }

}


@media (max-width: 767.98px) {

    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-section::before {
        background-size: 120px 100%;
    }

    .testimonial-intro h2 {
        font-size: 43px;
        line-height: 1;
    }

    .testimonial-intro p {
        font-size: 15px;
        margin-top: 22px;
    }

    .testimonial-trust {
        margin-top: 30px;
    }

    .testimonial-card {
        min-height: auto;

        padding: 32px 26px 105px;

        border-radius: 20px;
    }

    .testimonial-meta {
        margin-bottom: 14px;
    }

    .testimonial-card blockquote {
        margin: 28px 0 32px;

        font-size: 23px;
        line-height: 1.35;
    }

    .testimonial-quote-mark {
        font-size: 80px;
        top: -10px;
    }

    .testimonial-controls {
        left: 26px;
        right: auto;
        bottom: 30px;
    }

    .testimonial-arrow {
        width: 44px;
        height: 44px;
    }

}


@media (max-width: 480px) {

    .testimonials-section {
        padding: 70px 0;
    }

    .testimonial-intro h2 {
        font-size: 38px;
    }

    .testimonial-card {
        padding: 28px 22px 100px;
    }

    .testimonial-stars {
        font-size: 17px;
    }

    .testimonial-card blockquote {
        font-size: 21px;
    }

    .testimonial-client {
        gap: 12px;
    }

    .client-initial {
        width: 50px;
        height: 50px;
    }

}