/* Testimonials Section Styles */

.testimonials {
    padding: var(--space-xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials .section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials .subtitle {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.testimonials h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.testimonials .section-title-sm {
    margin-bottom: var(--space-md);
}

.testimonials-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-lg) 0;
    scrollbar-width: none;
    align-items: stretch;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: Georgia, serif;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    font-style: italic;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Highlighted Card styles */
.testimonial-card.highlighted {
    flex: 0 0 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 184, 48, 0.02) 100%);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.05);
}

.testimonial-card.highlighted::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.testimonial-card.highlighted:hover::after {
    opacity: 1;
}

.testimonial-card.highlighted:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-card.highlighted .testimonial-text {
    font-size: 1.2rem;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-primary);
    border: 1px solid rgba(255, 107, 53, 0.2);
    font-family: var(--font-heading);
}

.testimonial-card.highlighted .author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-card.highlighted .author-name {
    color: var(--accent-secondary);
}

/* Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    position: relative;
    z-index: 2;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-dots .dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-slider {
        padding: var(--space-lg) 20px;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 10px);
    }

    .testimonial-card.highlighted {
        flex: 0 0 calc(100% - 10px);
    }
}