.testimonials {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 120px 0;
    background-color: rgb(11, 11, 11);
    transition: background-color .6s;
}

.testimonials-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.testimonials-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 5px;
    text-align: center;
    opacity: 0;
    transition: color .6s;
}

.testimonials-titleanim {
    animation-name: testimonialstitleanimation;
    animation-duration: .6s;
    animation-fill-mode: forwards;
}

@keyframes testimonialstitleanimation {
    from { transform: translateX(-150%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.testimonials-line {
    height: 2.5px;
    width: 400px;
    background-image: linear-gradient(to right, rgb(11, 11, 11), var(--redcolor), rgb(11, 11, 11));
    border-radius: 15px;
    opacity: 0;
    transition: background-image .6s;
}

.testimonials-lineanim {
    animation-name: testimonialslineanimation;
    animation-duration: .6s;
    animation-fill-mode: forwards;
}

@keyframes testimonialslineanimation {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.testimonials-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1100px;
}

.firsttestimonial-card, .secondtestimonial-card { opacity: 0; }

.firsttestimonial-cardanim {
    animation-name: testimonialcardanimation;
    animation-duration: .35s;
    animation-fill-mode: forwards;
}

.secondtestimonial-cardanim {
    animation-name: testimonialcardanimation;
    animation-duration: .35s;
    animation-delay: .15s;
    animation-fill-mode: forwards;
}

@keyframes testimonialcardanimation {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.testimonial-card {
    background-image: linear-gradient(to right, rgba(41, 41, 41, 0.7), rgba(65, 65, 65, 0.5));
    border-radius: 20px;
    padding: 32px 30px;
    width: 460px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform .4s, box-shadow .4s, background-image .6s;
    cursor: default;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 0px 35px rgba(255, 0, 0, .55);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: gold;
    font-size: 1rem;
}

.testimonial-quote {
    color: rgb(210, 210, 210);
    font-size: .85rem;
    line-height: 1.75;
    font-style: italic;
    margin: 0;
    transition: color .6s;
}

.testimonial-project {
    color: white;
    font-weight: 600;
    font-size: .9rem;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: color .6s, border-color .6s;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(160, 160, 160);
    font-size: .75rem;
    margin: 0;
    transition: color .6s;
}

.testimonial-meta .fa-upwork {
    color: rgb(20, 186, 20);
    font-size: 1rem;
}

/* Light mode */
.testimonials-light {
    background-color: rgb(250, 250, 250);
}

.testimonials-title-light {
    color: black;
}

.testimonials-line-light {
    background-image: linear-gradient(to right, rgb(250, 250, 250), var(--redcolor), rgb(250, 250, 250));
}

.testimonial-card-light {
    background-image: linear-gradient(150deg, rgb(255, 255, 255) 60%, rgb(230, 230, 230));
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.06);
}

.testimonial-quote-light {
    color: rgb(60, 60, 60);
}

.testimonial-project-light {
    color: rgb(20, 20, 20);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.testimonial-meta-light {
    color: rgb(100, 100, 100);
}

@media (max-width: 1020px) {
    .testimonial-card { width: 380px; }
}

@media (max-width: 860px) {
    .testimonials-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .testimonial-card {
        width: 100%;
        max-width: 520px;
        padding: 24px 20px;
    }
}

@media (max-width: 455px) {
    .testimonials-title { font-size: 2rem; }
    .testimonials-line { width: 230px; }
    .testimonial-card { padding: 20px 16px; }
}
