/* Testimonials Section Styles */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

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

.testimonials-carousel {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #ff6b35;
    font-family: serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid #ff6b35;
    overflow: hidden;
    position: relative;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar img {
    transform: scale(1.1);
}

.testimonial-card h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ff6b35;
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 1.2rem;
    animation: sparkle 2s infinite;
}

.testimonial-rating i:nth-child(2) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.4s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.6s; }
.testimonial-rating i:nth-child(5) { animation-delay: 0.8s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.testimonial-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ff6b35;
    transform: scale(1.2);
}

/* Video Testimonials */
.video-testimonials {
    margin-top: 60px;
    text-align: center;
}

.video-testimonials h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ff6b35;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-testimonial {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-testimonial:hover {
    transform: scale(1.05);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff6b35, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.video-testimonial:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    color: #ff6b35;
    margin-bottom: 5px;
}

.video-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Testimonial Modal */
.testimonial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.testimonial-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    color: white;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials h2 {
        font-size: 2.2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-card h4 {
        font-size: 1.1rem;
    }
    
    .video-testimonials h3 {
        font-size: 1.5rem;
    }
}

/* Carousel Track Styles */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.carousel-track .testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
}

@media (max-width: 768px) {
    .carousel-track .testimonial-card {
        flex: 0 0 100%;
        min-width: 280px;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Featured Testimonial */
.testimonial-card.featured {
    border: 2px solid #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.testimonial-card.featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Animation Classes */
.fade-in-testimonial {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInTestimonial 0.8s ease forwards;
}

@keyframes fadeInTestimonial {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}