/* Testimonial Section */
.testimonial-section {
    max-width: 1500px;
    margin: 0 auto;
    margin-bottom: 130px;
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    z-index: 1; /* Ensure the section is below the wave */
}

/* Each Testimonial Container */
.testimonial-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align to the right */
    text-align: right; /* Align text to the right */
    padding: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* Active testimonial will use fadeInOut animation */
.testimonial-container.active {
    opacity: 1;
}

/* Active testimonial will use fadeInOut animation */
.testimonial-container.active {
    animation: fadeInOut 10s ease-in-out infinite;
}

/* Testimonial Content */
.testimonial-content {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9); /* Soft white background with transparency */
    padding: 20px 30px;
    border-radius: 15px; /* Softer, rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    color: #333; /* Darker text for contrast */
    position: absolute;
    top: 50px; /* Position adjusted for better alignment */
    right: 60px; /* Keep aligned to the right */
    text-align: left; /* Left align the text */
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth animation */
    transform: translateY(20px); /* Initial position for animation */
    opacity: 0; /* Initial hidden state */
}

.testimonial-container.active .testimonial-content {
    transform: translateY(0); /* Slide up effect */
    opacity: 1; /* Fade in effect */
}

/* Testimonial Text */
#testimonials h2 {
    max-width: 1500px;
    margin: 0 auto;
    font-size: 3rem;
    font-style: italic;
    color: #fcfbfb;
    margin-bottom: -5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: #057c85;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-size: 400% 400%;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: gradient-animation 10s ease infinite;
    z-index: 2;
}

/* Testimonial Text */
.testimonial-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #057c85; /* Highlighted color for client name */
    font-weight: bold;
    letter-spacing: 0.05em;
}

.testimonial-text blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #555; /* Slightly darker text for contrast */
    line-height: 1.6;
}

/* Additional styling for a modern look */
.testimonial-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: transparent; /* Transparent border */
    z-index: -1;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Shadow on the content */
}