.testimonials {
    padding: 5rem 1rem;
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 221, 0.05), transparent 70%);
    z-index: -1;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: var(--neon-teal);
    text-shadow: 0 0 30px var(--neon-teal);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-teal), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-teal);
    transition: width 0.5s ease;
}

.testimonials h2:hover::after {
    width: 150px;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
    animation: scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 350px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 255, 221, 0.1);
    border: 1px solid rgba(0, 255, 221, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 255, 221, 0.3);
}

.testimonial-author {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--neon-teal);
    box-shadow: 0 0 15px rgba(0, 255, 221, 0.3);
    flex-shrink: 0;
}

.author-avatar a {
    text-decoration: none;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.author-info a {
    text-decoration: none;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--neon-teal);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.rating {
    display: flex;
    margin-top: 5px;
}

.rating i {
    color: var(--neon-yellow);
    margin-right: 3px;
    text-shadow: 0 0 5px var(--neon-teal);
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    font-style: italic;
    position: relative;
    margin: 0;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 1rem;
    color: var(--neon-teal);
    opacity: 1;
}

.testimonial-content p::before {
    position: absolute;
    left: -15px;
    top: -10px;
}

.testimonial-content p::after {
    margin-left: 5px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 6 - 30px * 6));
    }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px var(--neon-teal), 0 0 20px var(--neon-teal); }
    100% { text-shadow: 0 0 20px var(--neon-teal), 0 0 30px var(--neon-teal), 0 0 40px var(--neon-teal); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 2rem;
    }

    .testimonial-card {
        width: 300px;
        padding: 20px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 6 - 30px * 6));
        }
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 280px;
        padding: 15px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 6 - 30px * 6));
        }
    }
}