/* ===== TESTIMONIALS CAROUSEL STYLES ===== */

.testimonials {
    padding: 80px 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-container {
    overflow: hidden;
    border-radius: 24px;
    position: relative;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Desktop - Show 3 slides */
@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333%;
    }
}

/* Tablet - Show 2 slides */
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-glass);
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 15, 35, 0.6);
    border-color: var(--ps-primary);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--ps-primary);
    opacity: 0.3;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ps-primary);
    background: var(--glass-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ps-primary);
}

.testimonial-author-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--vibrant-gradient);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none; /* Hide images, use CSS avatars */
}

.testimonial-author-info {
    text-align: left;
    flex-grow: 1;
}

.testimonial-author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: var(--ps-secondary);
    margin: 0;
    font-weight: 500;
}

/* Navigation Arrows */
.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.testimonial-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-primary-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-btn:hover::before {
    opacity: 1;
}

.testimonial-btn:hover {
    transform: scale(1.1);
    border-color: var(--ps-primary);
    box-shadow: var(--shadow-glow);
}

.testimonial-btn i {
    position: relative;
    z-index: 2;
}

.testimonial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Dots Indicator */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--ps-primary);
    transform: scale(1.2);
}

.dot.active::before {
    border-color: var(--ps-primary);
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Auto-scroll animation */
@keyframes testimonial-slide {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
    75%, 95% { transform: translateX(-300%); }
    100% { transform: translateX(-400%); }
}

.testimonials-wrapper.auto-scroll {
    animation: testimonial-slide 20s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        height: auto;
        min-height: 350px;
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonials-nav {
        margin-top: 30px;
    }
    
    .testimonial-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Loading state */
.testimonials-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.testimonials-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--ps-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}