/* ===== Testimonials Section ===== */
#testimonials {
    padding: 6rem 2rem;
    background: var(--background);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.client-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.client-role {
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0.8;
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.3;
}
/* ===== Responsive Styles ===== */

/* For screens up to 768px (Tablets & small laptops) */
@media (max-width: 768px) {
    #testimonials {
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-content: center;
    }

    .testimonial-card {
        padding: 1.75rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .client-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .client-photo {
        width: 55px;
        height: 55px;
    }

    .client-details h3 {
        font-size: 1rem;
    }

    .client-role {
        font-size: 0.85rem;
    }

    .rating {
        font-size: 1.1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        padding-left: 0;
        text-align: center;
    }

    .testimonial-text::before {
        font-size: 2rem;
        top: -0.3rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* For screens up to 480px (Mobile phones) */
@media (max-width: 480px) {
    #testimonials {
        padding: 3rem 1rem;
        text-align: center;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .client-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .client-photo {
        width: 50px;
        height: 50px;
    }

    .client-details h3 {
        font-size: 0.95rem;
    }

    .client-role {
        font-size: 0.8rem;
    }

    .rating {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.5;
        padding-left: 0;
        text-align: center;
    }

    .testimonial-text::before {
        font-size: 1.8rem;
        top: -0.2rem;
        left: 50%;
        transform: translateX(-50%);
    }
}
