/* =========================================================
   ShivanyaTech
   PHASE 14 — TESTIMONIALS
   PART 2 — CSS
   File: assets/css/testimonials.css
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.cs-testimonials {
    position: relative;
    overflow: hidden;
    padding: 120px 0 105px;

    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(0, 217, 255, 0.055),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 78%,
            rgba(248, 165, 27, 0.045),
            transparent 25%
        ),
        var(--cs-bg);

    color: var(--cs-text);

    isolation: isolate;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.cs-testimonials-bg {
    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;
}

.cs-testimonials-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(17, 17, 17, 0.028) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(17, 17, 17, 0.028) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: 0.55;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 15%,
            black 85%,
            transparent
        );
}

.cs-testimonials-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.cs-testimonials-glow-1 {
    width: 300px;
    height: 300px;

    top: -150px;
    right: 8%;

    background: rgba(0, 217, 255, 0.055);
}

.cs-testimonials-glow-2 {
    width: 260px;
    height: 260px;

    bottom: -130px;
    left: 8%;

    background: rgba(248, 165, 27, 0.045);
}


/* =========================================================
   HEADER
   ========================================================= */

.cs-testimonials-header {
    max-width: 880px;

    margin-bottom: 55px;
}

.cs-testimonials-eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.19em;

    text-transform: uppercase;

    color: #888;
}

.cs-testimonials-eyebrow-line {
    width: 35px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #00d9ff,
            rgba(0, 217, 255, 0)
        );
}

.cs-testimonials-title {
    max-width: 800px;

    margin: 0;

    font-size: clamp(43px, 5.3vw, 74px);

    line-height: 0.98;

    font-weight: 700;

    letter-spacing: -0.05em;

}

.cs-testimonials-highlight {
    color: #00aeca;
}

.cs-testimonials-description {
    max-width: 600px;

    margin: 25px 0 0;

    font-size: 15px;

    line-height: 1.75;

    color: #707070;
}


/* =========================================================
   SLIDER WRAPPER
   ========================================================= */

.cs-testimonials-slider-wrap {
    position: relative;

    width: 100%;
}

.cs-testimonials-swiper {
    width: 100%;

    overflow: visible;
}

.cs-testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

.cs-testimonials-swiper .swiper-slide {
    height: auto;

    display: flex;
}


/* =========================================================
   TESTIMONIAL CARD
   ========================================================= */

.cs-testimonial-card {
    position: relative;

    width: 100%;

    min-height: 445px;

    display: flex;
    flex-direction: column;

    padding: 30px;

    border: 1px solid rgba(17, 17, 17, 0.09);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.88);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.045);

    overflow: hidden;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.4s ease;
}

.cs-testimonial-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #00d9ff,
            #f8a51b,
            transparent
        );

    opacity: 0.8;
}

.cs-testimonial-card::after {
    content: "“";

    position: absolute;

    right: 24px;
    top: 38px;

    font-family: Georgia, serif;

    font-size: 100px;

    line-height: 0.7;

    color: rgba(0, 174, 202, 0.055);

    pointer-events: none;
}

.cs-testimonial-card:hover {
    transform: translateY(-7px);

    border-color: rgba(0, 174, 202, 0.22);

    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.025);
}


/* =========================================================
   CARD TOP
   ========================================================= */

.cs-testimonial-top {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 28px;
}

.cs-testimonial-number {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.16em;

    color: #aaa;
}

.cs-testimonial-quote-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 17, 17, 0.09);

    border-radius: 50%;

    background: #fafafa;

    color: #00aeca;

    font-size: 17px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.cs-testimonial-card:hover
.cs-testimonial-quote-icon {
    background: #111;

    color: #00d9ff;

    transform: rotate(-7deg);
}


/* =========================================================
   CONTENT
   ========================================================= */

.cs-testimonial-content {
    position: relative;

    z-index: 2;

    flex: 1;
}

.cs-testimonial-stars {
    display: flex;

    align-items: center;

    gap: 4px;

    margin-bottom: 18px;
}

.cs-testimonial-stars i {
    font-size: 10px;

    color: #f8a51b;
}

.cs-testimonial-text {
    max-width: 530px;

    margin: 0;

    font-size: clamp(20px, 2vw, 27px);

    line-height: 1.42;

    font-weight: 500;

    letter-spacing: -0.025em;

    color: #181818;
}


/* =========================================================
   CLIENT INFORMATION
   ========================================================= */

.cs-testimonial-client {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 32px;

    padding-top: 20px;

    border-top: 1px solid rgba(17, 17, 17, 0.08);
}


/* =========================================================
   CLIENT PHOTO / LOGO
   ========================================================= */

.cs-testimonial-client-visual {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 17, 17, 0.09);

    border-radius: 50%;

    background: #f2f4f3;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.cs-testimonial-card:hover
.cs-testimonial-client-visual {
    transform: scale(1.05);

    border-color: rgba(0, 174, 202, 0.30);
}

.cs-testimonial-client-visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   CLIENT INFO
   ========================================================= */

.cs-testimonial-client-info {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.cs-testimonial-name {
    font-size: 13px;

    line-height: 1.3;

    font-weight: 700;

    color: #111;
}

.cs-testimonial-designation {
    font-size: 9px;

    line-height: 1.4;

    color: #777;
}

.cs-testimonial-company {
    font-size: 9px;

    line-height: 1.4;

    font-weight: 700;

    color: #00aeca;
}


/* =========================================================
   CLIENT ARROW
   ========================================================= */

.cs-testimonial-client-arrow {
    width: 34px;
    height: 34px;

    margin-left: auto;

    flex: 0 0 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 17, 17, 0.09);

    border-radius: 50%;

    color: #777;

    font-size: 12px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.cs-testimonial-card:hover
.cs-testimonial-client-arrow {
    background: #111;

    color: #fff;

    transform: translate(2px, -2px);
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.cs-testimonials-arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(17, 17, 17, 0.12);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    color: #111;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.cs-testimonials-prev {
    left: -24px;
}

.cs-testimonials-next {
    right: -24px;
}

.cs-testimonials-arrow i {
    font-size: 15px;
}

.cs-testimonials-arrow:hover {
    background: #111;

    border-color: #111;

    color: #fff;

    transform:
        translateY(-50%)
        scale(1.06);
}

.cs-testimonials-arrow:focus-visible {
    outline: 2px solid #00d9ff;

    outline-offset: 4px;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.cs-testimonials-controls {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 25px;

    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid rgba(17, 17, 17, 0.09);
}


/* =========================================================
   COUNTER
   ========================================================= */

.cs-testimonials-counter {
    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.12em;
}

.cs-testimonials-current {
    color: #111;
}

.cs-testimonials-total {
    color: #aaa;
}

.cs-testimonials-counter-line {
    width: 34px;
    height: 1px;

    background: rgba(17, 17, 17, 0.20);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.cs-testimonials-pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;
}

.cs-testimonials-pagination button {
    position: relative;

    width: 28px;
    height: 4px;

    padding: 0;

    border: 0;

    border-radius: 100px;

    background: #d7d9d8;

    cursor: pointer;

    transition:
        width 0.35s ease,
        background 0.35s ease;
}

.cs-testimonials-pagination button span {
    position: absolute;

    inset: 0;

    border-radius: inherit;
}

.cs-testimonials-pagination
button.is-active {
    width: 48px;

    background: #111;
}

.cs-testimonials-pagination
button.is-active span {
    background:
        linear-gradient(
            90deg,
            #00d9ff,
            #f8a51b
        );
}

.cs-testimonials-pagination
button:focus-visible {
    outline: 2px solid #00d9ff;

    outline-offset: 5px;
}


/* =========================================================
   FOOTER LABEL
   ========================================================= */

.cs-testimonials-label {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.15em;

    color: #aaa;
}

.cs-testimonials-label-line {
    width: 30px;
    height: 1px;

    background: #ccc;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .cs-testimonials {
        padding-top: 140px;
        padding-bottom: 120px;
    }

    .cs-testimonial-card {
        min-height: 470px;

        padding: 32px;
    }

}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1199.98px) {

    .cs-testimonials {
        padding: 105px 0 90px;
    }

    .cs-testimonials-header {
        margin-bottom: 45px;
    }

    .cs-testimonial-card {
        min-height: 430px;

        padding: 25px;
    }

    .cs-testimonial-text {
        font-size: 22px;
    }

    .cs-testimonials-prev {
        left: -15px;
    }

    .cs-testimonials-next {
        right: -15px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .cs-testimonials {
        padding: 90px 0 80px;
    }

    .cs-testimonials-title {
        font-size: clamp(39px, 6.4vw, 58px);
    }

    .cs-testimonials-description {
        font-size: 14px;
    }

    .cs-testimonial-card {
        min-height: 425px;
    }

    .cs-testimonial-text {
        font-size: 21px;
    }

    .cs-testimonials-controls {
        grid-template-columns: 1fr auto;
    }

    .cs-testimonials-label {
        display: none;
    }

    .cs-testimonials-arrow {
        width: 42px;
        height: 42px;
    }

    .cs-testimonials-prev {
        left: -10px;
    }

    .cs-testimonials-next {
        right: -10px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .cs-testimonials {
        padding: 75px 0 65px;
    }

    .cs-testimonials-grid {
        background-size: 48px 48px;
    }

    .cs-testimonials-header {
        margin-bottom: 34px;
    }

    .cs-testimonials-eyebrow {
        font-size: 9px;

        letter-spacing: 0.15em;
    }

    .cs-testimonials-eyebrow-line {
        width: 26px;
    }

    .cs-testimonials-title {
        font-size: clamp(36px, 10.5vw, 50px);

        line-height: 1;
    }

    .cs-testimonials-description {
        margin-top: 20px;

        font-size: 13px;

        line-height: 1.7;
    }


    /* ---------------------------------------------
       CARD
       --------------------------------------------- */

    .cs-testimonial-card {
        min-height: 420px;

        padding: 22px;

        border-radius: 17px;
    }

    .cs-testimonial-top {
        margin-bottom: 23px;
    }

    .cs-testimonial-quote-icon {
        width: 38px;
        height: 38px;

        font-size: 15px;
    }

    .cs-testimonial-stars {
        margin-bottom: 15px;
    }

    .cs-testimonial-text {
        font-size: 19px;

        line-height: 1.45;
    }

    .cs-testimonial-client {
        margin-top: 25px;

        padding-top: 17px;
    }

    .cs-testimonial-client-visual {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

    .cs-testimonial-name {
        font-size: 12px;
    }

    .cs-testimonial-designation,
    .cs-testimonial-company {
        font-size: 8px;
    }


    /* ---------------------------------------------
       ARROWS
       --------------------------------------------- */

    .cs-testimonials-arrow {
        width: 37px;
        height: 37px;

        top: 46%;
    }

    .cs-testimonials-prev {
        left: -7px;
    }

    .cs-testimonials-next {
        right: -7px;
    }

    .cs-testimonials-arrow i {
        font-size: 12px;
    }


    /* ---------------------------------------------
       CONTROLS
       --------------------------------------------- */

    .cs-testimonials-controls {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 16px;

        margin-top: 22px;

        padding-top: 18px;
    }

    .cs-testimonials-pagination {
        order: 1;
    }

    .cs-testimonials-counter {
        order: 2;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cs-testimonials {
        padding: 65px 0 55px;
    }

    .cs-testimonials-title {
        font-size: 35px;
    }

    .cs-testimonial-card {
        min-height: 410px;

        padding: 20px;
    }

    .cs-testimonial-text {
        font-size: 18px;
    }

    .cs-testimonial-card::after {
        font-size: 80px;

        right: 18px;
        top: 32px;
    }

    .cs-testimonials-arrow {
        width: 34px;
        height: 34px;
    }

    .cs-testimonials-prev {
        left: -5px;
    }

    .cs-testimonials-next {
        right: -5px;
    }

    .cs-testimonials-pagination button {
        width: 22px;
    }

    .cs-testimonials-pagination
    button.is-active {
        width: 38px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cs-testimonial-card,
    .cs-testimonial-quote-icon,
    .cs-testimonial-client-visual,
    .cs-testimonial-client-arrow,
    .cs-testimonials-arrow,
    .cs-testimonials-pagination button {
        transition: none !important;
    }

}