/* =========================================================
   KOTI PRODUCTS
   CLIENT SECTION
========================================================= */

.client-section {
    width: 100%;
    position: relative;
    padding: 10px 20px 7px;
    overflow: hidden;

    background: #ffffff;

    font-family: "Poppins", Arial, sans-serif;
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.client-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
}


/* =========================================================
   HEADING
   CENTERED
========================================================= */

.client-heading {
    width: 100%;
    text-align: center;

    margin-bottom: 25px;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Small heading */

.client-heading::before {

    display: block;

    color: #173b91;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 5px;

    margin-bottom: 12px;
}


/* Main heading */

.client-heading h2 {
    margin: 0;

    color: #173b91;

    font-size: 32px;
    line-height: 1.15;

    font-weight: 700;

    letter-spacing: -1px;

    text-align: center;
}


/* =========================================================
   CARDS CONTAINER
========================================================= */

.client-cards {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 32px;

    align-items: stretch;
}


/* =========================================================
   CLIENT CARD
========================================================= */

.client-card {
    position: relative;

    min-height: 450px;

    padding: 32px 38px 30px;

    background:
        linear-gradient(
            145deg,
            #3d55b3 0%,
            #263b91 48%,
            #1d317e 100%
        );

    border-radius: 70px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    box-shadow:
        0 20px 45px rgba(32, 57, 135, 0.16);

    opacity: 0;

    transform:
        translateY(45px)
        scale(0.97);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}


/* =========================================================
   CARD SHOW ANIMATION
========================================================= */

.client-card.client-show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CARD STAGGER
========================================================= */

.client-card:nth-child(1) {
    transition-delay: 0s;
}

.client-card:nth-child(2) {
    transition-delay: 0.35s;
}

.client-card:nth-child(3) {
    transition-delay: 0.70s;
}


/* =========================================================
   CARD HOVER
========================================================= */

.client-card:hover {
    transform:
        translateY(-10px)
        scale(1.015);

    background:
        linear-gradient(
            145deg,
            #4c68c7 0%,
            #304aa8 48%,
            #233889 100%
        );

    box-shadow:
        0 28px 60px rgba(28, 55, 140, 0.28);
}


/* =========================================================
   SOFT LIGHT EFFECT
========================================================= */

.client-card::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -120px;
    right: -90px;

    background: rgba(255,255,255,0.10);

    border-radius: 50%;

    filter: blur(5px);

    transition:
        transform 0.5s ease;
}


.client-card:hover::before {
    transform: scale(1.5);
}


/* =========================================================
   QUOTATION
========================================================= */

.client-quote {
    position: relative;

    z-index: 2;

    color: #fff;

    font-family: Georgia, serif;

    font-size: 65px;

    font-weight: bold;

    line-height: 40px;

    margin-bottom: -55px;
}


/* =========================================================
   REVIEW
========================================================= */

.client-review {
    position: relative;

    z-index: 2;

    color: #ffffff;

    font-size: 16px;

    line-height: 2;

    font-weight: 400;

    margin-top: 5px;

    max-width: 100%;
}


/* =========================================================
   DIVIDER
========================================================= */

.client-person {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 16px;

    margin-top: 35px;

    padding-top: 27px;

    border-top:
        1px solid rgba(255,255,255,0.22);
}


/* =========================================================
   CLIENT IMAGE
========================================================= */

.client-image {
    width: 72px;
    height: 72px;

    min-width: 72px;

    border-radius: 50%;

    overflow: hidden;

    background: rgba(255,255,255,0.15);

    border:
        2px solid rgba(255,255,255,0.7);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}


.client-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.client-card:hover .client-image {
    transform: scale(1.08);

    border-color: #ffffff;
}


.client-card:hover .client-image img {
    transform: scale(1.08);
}


/* =========================================================
   CLIENT DETAILS
========================================================= */

.client-details h3 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 18px;

    font-weight: 700;
}


.client-details p {
    margin: 0;

    color: rgba(255,255,255,0.82);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   CARD NUMBER
========================================================= */

.client-card::after {
    content: "";

    position: absolute;

    right: 28px;
    bottom: 25px;

    color: rgba(255,255,255,0.35);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1px;
}


/* Different numbers */

/* .client-card:nth-child(1)::after {
    content: "01";
}

.client-card:nth-child(2)::after {
    content: "02";
}

.client-card:nth-child(3)::after {
    content: "03";
} */


/* =========================================================
   FLOATING ANIMATION
========================================================= */

@keyframes clientFloat {

    0% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-5px)
            scale(1);
    }

    100% {
        transform:
            translateY(0)
            scale(1);
    }

}


/* Only after entrance animation */

.client-card.client-show {
    animation:
        clientFloat 5s ease-in-out infinite;
}


/* Keep hover stronger */

.client-card.client-show:hover {
    animation-play-state: paused;

    transform:
        translateY(-10px)
        scale(1.015);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .client-section {
        padding:
            65px 25px 75px;
    }

    .client-heading {
        margin-bottom: 50px;
    }

    .client-heading h2 {
        font-size: 40px;
    }

    .client-cards {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 22px;
    }

    .client-card {
        min-height: 500px;
    }

    .client-card:last-child {
        grid-column: 1 / -1;

        max-width: 50%;

        width: 100%;

        margin: 0 auto;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .client-section {
        padding:
            2px 18px 1px;
    }


    .client-heading {
        margin-bottom: 40px;
    }


    .client-heading::before {
        font-size: 11px;

        letter-spacing: 4px;

        margin-bottom: 10px;
    }


    .client-heading h2 {
        font-size: 32px;

        letter-spacing: -0.5px;
    }


    .client-cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .client-card {
        min-height: 470px;

        padding:
            30px 27px 28px;
    }


    .client-card:last-child {
        grid-column: auto;

        max-width: none;

        margin: 0;
    }


    .client-review {
        font-size: 15px;

        line-height: 1.85;
    }


    .client-quote {
        font-size: 58px;

        margin-bottom: 28px;
    }


    .client-image {
        width: 64px;
        height: 64px;

        min-width: 64px;
    }


    .client-details h3 {
        font-size: 16px;
    }


    .client-details p {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .client-heading h2 {
        font-size: 28px;
    }

    .client-heading::before {
        font-size: 10px;

        letter-spacing: 3px;
    }

    .client-card {
        min-height: 450px;

        padding:
            28px 23px;
    }

}