/* Enhanced Testimonials with Morphing Borders */
.testimonials {
    padding: 100px 0;
    background: var(--gradient-light);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.1;
    animation: pulse 10s ease-in-out infinite;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(142, 78, 198, 0.15);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-rainbow);
    background-size: 300% 300%;
    animation: gradientBorder 8s ease infinite;
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 25px 60px rgba(142, 78, 198, 0.25), 
                0 0 30px rgba(169, 104, 212, 0.2);
}

.stars {
    background: linear-gradient(45deg, var(--warning-gold), #ffed4e, var(--warning-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: starTwinkle 3s ease infinite;
    font-size: 1.4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

@keyframes starTwinkle {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
    }
}

.testimonial-card p {
    color: var(--dark-gray);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-author strong {
    color: var(--dark-purple);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 0.95rem;
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}