.testimonials-section {
    text-align: center;
}

.section-intro {
    color: #89BCD9;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    text-align: center;
    margin-bottom: 48px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.testimonial-card {
    position: relative;
    width: 100%;
    max-width: 370px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: var(--text-soft);
    text-align: center;
}

.testimonial-card-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        opacity 1.6s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.6s cubic-bezier(0.19, 1, 0.22, 1),
        filter 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.testimonial-card-default-shape {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    filter: saturate(1) brightness(1);
}

.testimonial-card-hover-shape {
    opacity: 0;
    z-index: 2;
    transform: scale(0.985);
    filter: saturate(0.96) brightness(0.985);
}

.testimonial-card:hover .testimonial-card-default-shape {
    opacity: 0;
    transform: scale(1.015);
    filter: saturate(0.97) brightness(1.01);
}

.testimonial-card:hover .testimonial-card-hover-shape {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) brightness(1);
}

.testimonial-card-content {
    position: relative;
    z-index: 3;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card h3 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 26px;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 6px;
}

.testimonial-card .testimonial-project {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #89BCD9;
    text-align: center;
    margin-bottom: 16px;
}

.testimonial-card .testimonial-project-prefix {
    color: #F8F5EC;
}

.testimonial-card p {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    color: #F8F5EC;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 10px;
}

.testimonial-card a {
    display: inline-block;
    color: #89BCD9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    text-decoration: underline;
    margin-top: 24px;
}

/* ── Testimonial Grid Scrollbar ───────────────── */
.testimonial-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(137, 188, 217, 0.4) rgba(255, 255, 255, 0.05);
}

.testimonial-grid::-webkit-scrollbar {
    height: 3px;
}

.testimonial-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
}

.testimonial-grid::-webkit-scrollbar-thumb {
    background: rgba(137, 188, 217, 0.4);
    border-radius: 99px;
}

.testimonial-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(137, 188, 217, 0.7);
}
