/* Ultra-Premium Testimonials Section - 11/10 Design */

/* Container and Layout */
.testimonials-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Card Design */
.testimonial-card {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Glowing effect on cards */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Quote Icon */
.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 80px;
    color: rgba(59, 130, 246, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

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

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: rgba(148, 163, 184, 0.9);
}

/* Company Logo */
.company-logo {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: rgba(96, 165, 250, 0.9);
    font-weight: 500;
}

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

.star {
    color: #fbbf24;
    font-size: 18px;
    animation: star-pulse 2s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.1s; }
.star:nth-child(3) { animation-delay: 0.2s; }
.star:nth-child(4) { animation-delay: 0.3s; }
.star:nth-child(5) { animation-delay: 0.4s; }

@keyframes star-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Testimonial Text */
.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 24px;
    flex-grow: 1;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 40px;
    color: rgba(59, 130, 246, 0.3);
    font-family: Georgia, serif;
}

/* Result Metrics */
.testimonial-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.metric-item {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Swiper Custom Styles */
.testimonials-swiper {
    padding: 40px 0 60px;
    overflow: visible !important;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.testimonials-swiper .swiper-slide-prev,
.testimonials-swiper .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.9);
}

/* Custom Pagination Dots */
.testimonials-pagination {
    position: relative !important;
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(148, 163, 184, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.testimonials-pagination .swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

.testimonials-pagination .swiper-pagination-bullet-active::after {
    border-color: rgba(59, 130, 246, 0.5);
}

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9), 
        rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2), 
        rgba(96, 165, 250, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: -24px;
}

.testimonial-nav.next {
    right: -24px;
}

/* Auto-play Progress Bar */
.autoplay-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(148, 163, 184, 0.1);
    overflow: hidden;
}

.autoplay-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0;
    transform-origin: left;
    will-change: width;
}

.testimonials-swiper.paused .autoplay-progress-bar {
    transition-duration: 0s !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 24px;
    }
    
    .quote-icon {
        font-size: 60px;
        top: 20px;
        right: 20px;
    }
    
    .testimonial-nav {
        display: none;
    }
    
    .testimonials-swiper .swiper-slide {
        transform: scale(0.95);
    }
    
    .testimonials-swiper .swiper-slide-active {
        transform: scale(1);
    }
}

/* Gradient Text Effect */
.gradient-highlight {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}