/* ============================================ */
/* TESTIMONIALS SECTION - STYLES */
/* ============================================ */

#testimonials {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
    overflow: hidden;
    direction: rtl;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

/* ============================================ */
/* CONTAINER */
/* ============================================ */

#testimonials #testimonials-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    padding: 0 24px;
}

/* ============================================ */
/* SECTION HEADER */
/* ============================================ */

#testimonials #testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 120px;
}

#testimonials .testimonials-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#testimonials .testimonials-title {
     font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a2e 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

#testimonials .testimonials-subtitle {
       font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================ */
/* FILTER BUTTONS */
/* ============================================ */

#testimonials #testimonials-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

#testimonials .filter-btn {
    font-family: "Vazirmatn";
    padding: 12px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#testimonials .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#testimonials .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================ */
/* CAROUSEL CONTAINER */
/* ============================================ */

#testimonials #testimonials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

#testimonials #testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

/* ============================================ */
/* TESTIMONIAL CARDS */
/* ============================================ */

#testimonials .testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

#testimonials .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

#testimonials .testimonial-card:hover::before {
    transform: scaleX(1);
}

#testimonials .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.2);
}

/* Card Header */
#testimonials .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#testimonials .customer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

#testimonials .customer-info {
    flex: 1;
}

#testimonials .customer-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

#testimonials .customer-location {
    font-size: 0.95rem;
    color: #999;
    margin: 0;
}

/* Rating Stars */
#testimonials .rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

#testimonials .star {
    font-size: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.3;
}

#testimonials .star.filled {
    filter: grayscale(0%);
    opacity: 1;
}

#testimonials .star.half {
    filter: grayscale(0%);
    opacity: 0.7;
}

#testimonials .rating-number {
    margin-right: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

/* Testimonial Text */
#testimonials .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 20px 0;
    text-align: justify;
}

/* Card Footer */
#testimonials .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#testimonials .testimonial-date {
    font-size: 0.9rem;
    color: #999;
}

#testimonials .testimonial-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

#testimonials .testimonial-badge.badge-verified {
    background: #e7f5ec;
    color: #27ae60;
}

#testimonials .testimonial-badge.badge-trending {
    background: #fff3e0;
    color: #f57c00;
}

/* ============================================ */
/* CAROUSEL CONTROLS */
/* ============================================ */

#testimonials #carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

#testimonials .carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#testimonials .carousel-btn svg {
    width: 24px;
    height: 24px;
    color: #667eea;
}

#testimonials .carousel-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

#testimonials .carousel-btn:hover svg {
    color: white;
}

/* Carousel Dots */
#testimonials #carousel-dots {
    display: flex;
    gap: 10px;
}

#testimonials .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#testimonials .carousel-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    border-radius: 10px;
}

/* ============================================ */
/* CTA SECTION */
/* ============================================ */

#testimonials #testimonials-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

#testimonials .cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
}

#testimonials .cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
}

#testimonials .cta-button {
    font-family: 'Vazirmatn';
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#testimonials .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#testimonials .cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

#testimonials .cta-button:hover .cta-icon {
    transform: translateX(-5px);
}

/* ============================================ */
/* RESPONSIVE DESIGN - MOBILE & TABLET */
/* ============================================ */

@media (max-width: 1200px) {
    #testimonials .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    #testimonials #testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #testimonials {
    }
    
    #testimonials .testimonials-title {
        font-size: 2rem;
    }
    
    #testimonials .testimonials-subtitle {
        font-size: 1rem;
    }
    
    #testimonials #testimonials-filters {
        gap: 10px;
    }
    
    #testimonials .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    #testimonials .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    
    #testimonials .stat-number {
        font-size: 2rem;
    }
    
    #testimonials #testimonials-cta {
        padding: 40px 20px;
    }
    
    #testimonials .cta-title {
        font-size: 1.8rem;
    }
    
    #testimonials .cta-subtitle {
        font-size: 1rem;
    }
    
    #testimonials .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    #testimonials .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    #testimonials .customer-avatar {
        width: 60px;
        height: 60px;
    }
    
    #testimonials .customer-name {
        font-size: 1.1rem;
    }
}

/* ============================================ */
/* HIDDEN CLASS FOR FILTERING */
/* ============================================ */

#testimonials .testimonial-card.hidden {
    display: none;
}

/* ============================================ */
/* SMOOTH ANIMATIONS */
/* ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#testimonials .testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}
