/* Testimonials Page Specific Styles */

/* Testimonials Hero Section */
.testimonials-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.testimonials-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.testimonials-hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Featured Testimonials */
.featured-testimonials {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.testimonial-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: -10px;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-type {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* All Testimonials */
.all-testimonials {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.testimonials-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-item {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.testimonial-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-company {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Client Logos */
.client-logos {
    padding: 80px 0;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    opacity: 0.7;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-hero-content h1 {
        font-size: 2.5rem;
    }

    .testimonials-hero-content p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card.featured::before {
        left: 1.5rem;
    }

    .testimonials-masonry {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-item {
        padding: 1.5rem;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-hero {
        padding: 100px 0 40px;
    }

    .testimonials-hero-content h1 {
        font-size: 2rem;
    }

    .testimonials-hero-content p {
        font-size: 1rem;
    }

    .stats-section,
    .featured-testimonials,
    .all-testimonials,
    .client-logos {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .testimonial-author img {
        width: 50px;
        height: 50px;
    }

    .testimonial-item {
        padding: 1.25rem;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation for testimonial items */
.testimonial-card,
.testimonial-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for testimonial cards */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Stagger animation for testimonial items */
.testimonial-item:nth-child(1) { animation-delay: 0.1s; }
.testimonial-item:nth-child(2) { animation-delay: 0.2s; }
.testimonial-item:nth-child(3) { animation-delay: 0.3s; }
.testimonial-item:nth-child(4) { animation-delay: 0.4s; }
.testimonial-item:nth-child(5) { animation-delay: 0.5s; }
.testimonial-item:nth-child(6) { animation-delay: 0.6s; }
.testimonial-item:nth-child(7) { animation-delay: 0.7s; }
.testimonial-item:nth-child(8) { animation-delay: 0.8s; }

/* Hover effects for stars */
.stars:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Quote animation */
.quote-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Loading state for images */
.testimonial-author img {
    transition: opacity 0.3s ease;
}

.testimonial-author img:not([src]) {
    opacity: 0;
}

/* Focus states for accessibility */
.testimonial-card:focus-within,
.testimonial-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .testimonials-hero,
    .client-logos,
    .contact-cta {
        display: none;
    }
    
    .testimonial-card,
    .testimonial-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .stats-section {
        background: white;
    }
    
    .stat-item {
        background: white;
        border: 1px solid #ccc;
    }
}
