/* Testimonials Section - Modern Design */

.testimonials {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0a15 50%, #0a0a0f 100%);
    padding: 80px var(--spacing-lg) !important;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

.testimonials h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3rem);
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.testimonials-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    padding: var(--spacing-2xl);
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Gradient top border */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    border-radius: 16px 16px 0 0;
}

/* Hover shine effect */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.testimonial-card:hover::after {
    top: -20%;
    right: -20%;
}

.testimonial-card:hover {
    transform: translateY(-12px);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
}

/* Testimonial Text */
.testimonial-text {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 2.5rem;
    color: rgba(168, 85, 247, 0.3);
    position: absolute;
    top: -10px;
    left: -10px;
    font-weight: 900;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Testimonial Author */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

/* Testimonial Details */
.testimonial-details {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Testimonial Date */
.testimonial-date {
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: right;
}

/* Testimonial Rating */
.testimonial-rating {
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.testimonial-rating-stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-verified {
    color: #10b981;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Testimonial Title */
.testimonial-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Testimonial Experience */
.testimonial-experience {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Testimonial Subject */
.testimonial-subject {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Testimonial Quote */
.testimonial-quote {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 2.5rem;
    color: rgba(168, 85, 247, 0.3);
    position: absolute;
    top: -10px;
    left: -10px;
    font-weight: 900;
}

/* Testimonial Result */
.testimonial-result {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.testimonial-result strong {
    color: #a78bfa;
    font-weight: 700;
}

/* Testimonial Grade */
.testimonial-grade {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px var(--spacing-md) !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .testimonial-card {
        padding: var(--spacing-xl);
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonial-card:hover {
        transform: translateY(-8px);
    }
}
