/* Adaptive Testimonials Component */
/* Designed to work with different page color schemes and layouts */

.testimonials-section {
    padding: 80px 0;
    background: var(--testimonials-bg, #f8fafc);
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--testimonials-title-color, #1a1a1a);
    line-height: 1.2;
}

.testimonials-subtitle {
    font-size: 1.2rem;
    color: var(--testimonials-subtitle-color, #6b7280);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.testimonial-card {
    background: var(--testimonials-card-bg, white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--testimonials-accent-color, #2563eb);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--testimonials-accent-color, #2563eb), var(--testimonials-accent-secondary, #3b82f6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--testimonials-quote-color, #4b5563);
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--testimonials-accent-color, #2563eb);
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--testimonials-border-color, #e5e7eb);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--testimonials-accent-color, #2563eb), var(--testimonials-accent-secondary, #3b82f6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--testimonials-name-color, #1a1a1a);
    margin-bottom: 4px;
}

.testimonial-title {
    font-size: 0.9rem;
    color: var(--testimonials-title-small-color, #6b7280);
    margin-bottom: 4px;
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--testimonials-accent-color, #2563eb);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.testimonial-company:hover {
    color: var(--testimonials-accent-secondary, #3b82f6);
    text-decoration: underline;
}

/* Color Theme Variants */

/* Blue Theme (Growth Stage, Enterprise) */
.testimonials-section.theme-blue {
    --testimonials-bg: #f8fafc;
    --testimonials-title-color: #1a1a1a;
    --testimonials-subtitle-color: #6b7280;
    --testimonials-card-bg: white;
    --testimonials-accent-color: #2563eb;
    --testimonials-accent-secondary: #1e40af;
    --testimonials-quote-color: #4b5563;
    --testimonials-border-color: #e5e7eb;
    --testimonials-name-color: #1a1a1a;
    --testimonials-title-small-color: #6b7280;
}

/* Purple Theme (Technical PM, AI Strategy) */
.testimonials-section.theme-purple {
    --testimonials-bg: #faf5ff;
    --testimonials-title-color: #1a1a1a;
    --testimonials-subtitle-color: #6b7280;
    --testimonials-card-bg: white;
    --testimonials-accent-color: #7c3aed;
    --testimonials-accent-secondary: #6d28d9;
    --testimonials-quote-color: #4b5563;
    --testimonials-border-color: #e5e7eb;
    --testimonials-name-color: #1a1a1a;
    --testimonials-title-small-color: #6b7280;
}

/* Dark Theme (Enterprise, Competitive) */
.testimonials-section.theme-dark {
    --testimonials-bg: #1a1a1a;
    --testimonials-title-color: white;
    --testimonials-subtitle-color: #d1d5db;
    --testimonials-card-bg: #2d3748;
    --testimonials-accent-color: #fbbf24;
    --testimonials-accent-secondary: #f59e0b;
    --testimonials-quote-color: #e5e7eb;
    --testimonials-border-color: #4a5568;
    --testimonials-name-color: white;
    --testimonials-title-small-color: #d1d5db;
}

/* Gradient Theme (Competitive Intelligence) */
.testimonials-section.theme-gradient {
    --testimonials-bg: #f8fafc;
    --testimonials-title-color: #1a1a1a;
    --testimonials-subtitle-color: #6b7280;
    --testimonials-card-bg: white;
    --testimonials-accent-color: #667eea;
    --testimonials-accent-secondary: #764ba2;
    --testimonials-quote-color: #4b5563;
    --testimonials-border-color: #e5e7eb;
    --testimonials-name-color: #1a1a1a;
    --testimonials-title-small-color: #6b7280;
}

/* Red Theme (Integration, Post-Funding) */
.testimonials-section.theme-red {
    --testimonials-bg: #fef2f2;
    --testimonials-title-color: #1a1a1a;
    --testimonials-subtitle-color: #6b7280;
    --testimonials-card-bg: white;
    --testimonials-accent-color: #ef4444;
    --testimonials-accent-secondary: #dc2626;
    --testimonials-quote-color: #4b5563;
    --testimonials-border-color: #e5e7eb;
    --testimonials-name-color: #1a1a1a;
    --testimonials-title-small-color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-container {
        padding: 0 20px;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .testimonial-quote {
        font-size: 1rem;
    }
    
    .testimonial-quote::before {
        font-size: 3rem;
        top: -15px;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        padding: 0 15px;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .testimonials-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .testimonial-info {
        text-align: center;
    }
}

/* Animation for scroll-in effects */
.testimonials-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonials-animate.visible {
    opacity: 1;
    transform: translateY(0);
}