/* Testimonials Section */
.testimonials {
    background: #0f0f0f; /* Consistent dark background */
    position: relative;
    padding: 6rem 0; /* Spacious padding */
    overflow: hidden;
}

.testimonials h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.testimonials p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.testimonial-card {
    background: rgba(26, 26, 26, 0.9); /* Subtle dark card background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Fine border */
    padding: 2rem;
    border-radius: 0; /* Sharp edges for architectural feel */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

.client-image {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* Circular image */
    margin: 0 auto 1.5rem;
    border: 2px solid #ffffff; /* White border for emphasis */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .client-image {
    opacity: 1;
}

.testimonial-quote {
    margin: 0;
}

.testimonial-quote p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #d3d3d3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-quote p::before {
    content: '“'; /* Stylized quote mark */
    font-size: 2rem;
    color: #ffffff;
    position: absolute;
    top: -10px;
    left: -20px;
    opacity: 0.5;
}

.testimonial-footer {
    font-family: 'Montserrat', sans-serif;
    text-align: right;
}

.testimonial-footer cite {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-footer span {
    font-weight: 300;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }

.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    animation: revealCard 0.8s ease forwards;
}

.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }

@keyframes revealText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes revealCard {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Decorative Element */
.testimonials::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 1px;
    background: #ffffff;
    opacity: 0.4;
    transform: rotate(-45deg);
    animation: drawLine 1.5s ease forwards 0.5s;
}

@keyframes drawLine {
    from { width: 0; opacity: 0; }
    to { width: 50px; opacity: 0.4; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonials {
        padding: 4rem 0;
    }

    .testimonials h2 {
        font-size: 2.2rem;
    }

    .testimonials p {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .client-image {
        width: 60px;
        height: 60px;
    }

    .testimonial-quote p {
        font-size: 1rem;
    }

    .testimonial-footer cite {
        font-size: 0.9rem;
    }

    .testimonial-footer span {
        font-size: 0.8rem;
    }
}