/* ================================
   Testimonials Section Styles
================================ */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1545 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.testimonials-section .testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.testimonials-section .testimonials-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.05) 50%, transparent 100%);
    animation: float-testimonials 20s ease-in-out infinite;
}

.testimonials-section .testimonials-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.testimonials-section .testimonials-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes float-testimonials {
    0%, 100% {
        opacity: 0.3;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Section Content */
.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section .section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.testimonials-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.testimonials-section .section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonials Grid */
.testimonials-section .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Testimonial Card */
.testimonials-section .testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.testimonials-section .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonials-section .testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.testimonials-section .testimonial-card:hover::before {
    opacity: 1;
}

/* Rating Stars */
.testimonials-section .testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonials-section .testimonial-rating svg {
    transition: transform 0.3s ease;
}

.testimonials-section .testimonial-card:hover .testimonial-rating svg {
    transform: scale(1.1);
}

/* Quote Icon */
.testimonials-section .testimonial-quote-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #667eea;
    opacity: 0.1;
    pointer-events: none;
}

/* Testimonial Text */
.testimonials-section .testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Author Section */
.testimonials-section .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.testimonials-section .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.testimonials-section .testimonial-card:hover .author-avatar {
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

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

.testimonials-section .author-info {
    flex: 1;
}

.testimonials-section .author-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.testimonials-section .author-project {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Stats Section */
.testimonials-section .testimonials-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    flex-wrap: wrap;
}

.testimonials-section .stat-item {
    text-align: center;
}

.testimonials-section .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.testimonials-section .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.testimonials-section .stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonials-section .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section .section-title {
        font-size: 2rem;
    }

    .testimonials-section .section-description {
        font-size: 1rem;
    }

    .testimonials-section .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .testimonials-section .testimonial-card {
        padding: 25px;
    }

    .testimonials-section .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonials-section .testimonials-stats {
        gap: 30px;
        padding: 30px 20px;
    }

    .testimonials-section .stat-number {
        font-size: 2rem;
    }

    .testimonials-section .stat-label {
        font-size: 0.85rem;
    }

    .testimonials-section .stat-divider {
        display: none;
    }

    .testimonials-section .testimonials-circle-1,
    .testimonials-section .testimonials-circle-2 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .testimonials-section .section-title {
        font-size: 1.6rem;
    }

    .testimonials-section .testimonial-card {
        padding: 20px;
    }

    .testimonials-section .author-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonials-section .author-name {
        font-size: 0.95rem;
    }

    .testimonials-section .author-project {
        font-size: 0.85rem;
    }

    .testimonials-section .stat-number {
        font-size: 1.8rem;
    }
}

/* Animation Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .testimonials-section .testimonial-card {
        animation: fade-in-up 0.6s ease-out backwards;
    }

    .testimonials-section .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
    .testimonials-section .testimonial-card:nth-child(2) { animation-delay: 0.2s; }
    .testimonials-section .testimonial-card:nth-child(3) { animation-delay: 0.3s; }
    .testimonials-section .testimonial-card:nth-child(4) { animation-delay: 0.4s; }
    .testimonials-section .testimonial-card:nth-child(5) { animation-delay: 0.5s; }
    .testimonials-section .testimonial-card:nth-child(6) { animation-delay: 0.6s; }

    @keyframes fade-in-up {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
