#testimonials {
    padding: 100px 20px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonials-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07) 0%, rgba(var(--accent-rgb), 0.02) 60%, transparent 80%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

#testimonials h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

/* Testimonials Carousel Wrapper */
.testimonials-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.testimonials-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 30px rgba(var(--accent-rgb), 0.05);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content .quote {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    position: relative;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Glass navigation buttons */
.carousel-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.carousel-nav-btn:hover {
    color: #fff;
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.25);
    transform: scale(1.05);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

/* Testimonial dot controls */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.testimonials-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonials-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.testimonials-dots .dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

@media (max-width: 768px) {
    #testimonials {
        padding: 60px 15px;
    }
    #testimonials h2 {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .testimonials-carousel {
        gap: 15px;
    }
    .testimonial-card {
        padding: 35px 25px;
    }
    .testimonial-content .quote {
        font-size: 1.05rem;
    }
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .carousel-nav-btn {
        display: none; /* Hide arrow buttons on mobile and use swipe/dots */
    }
    .testimonials-carousel {
        max-width: 100%;
    }
}
