/* Testimonials Page Styles */

/* Hero Section */
.testimonials-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.testimonials-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.testimonials-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #ffd700;
    font-size: 1.5rem;
}

.rating-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Featured Testimonials */
.featured-testimonials {
    padding: 100px 0;
    background: white;
}

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

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.testimonial-card.featured {
    border-left: 4px solid #ff6b6b;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.client-avatar i {
    font-size: 1.2rem;
}

.client-details h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.client-role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.service-tag {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.testimonial-content p {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #ff6b6b;
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    opacity: 0.3;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* All Testimonials Section */
.all-testimonials {
    padding: 100px 0;
    background: #f8f9fa;
}

.testimonial-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #ff6b6b;
    background: #ff6b6b;
    color: white;
}

.testimonials-list {
    display: grid;
    gap: 1.5rem;
}

.testimonial-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-item .testimonial-header {
    margin-bottom: 1rem;
}

.testimonial-item .client-avatar {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
}

.testimonial-item .client-details h4 {
    font-size: 1.1rem;
}

.testimonial-item .date {
    color: #999;
    font-size: 0.85rem;
}

/* Google Reviews CTA */
.google-reviews-cta {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.google-reviews-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.google-reviews-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.google-reviews-cta .btn {
    background: white;
    color: #4285f4;
    border: none;
    font-weight: 600;
}

.google-reviews-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.google-reviews-cta .btn i {
    margin-right: 0.5rem;
}

/* Testimonials CTA */
.testimonials-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.testimonials-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.testimonials-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Filter Animation */
.testimonial-item.hidden {
    display: none;
}

.testimonial-item.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Active Navigation Link */
.nav-link.active {
    color: #ff6b6b !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}


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

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

    .rating-summary {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .client-info {
        width: 100%;
    }

    .service-tag {
        align-self: flex-start;
    }

    .testimonial-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
        text-align: center;
    }

    .testimonial-item {
        padding: 1.5rem;
    }

    .google-reviews-cta {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    .google-reviews-cta h3 {
        font-size: 1.5rem;
    }

    .testimonials-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
    }
}

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

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

    .featured-testimonials,
    .all-testimonials,
    .testimonials-cta {
        padding: 60px 0;
    }

    .testimonial-card,
    .testimonial-item {
        padding: 1rem;
    }

    .client-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .testimonial-item .client-avatar {
        width: 35px;
        height: 35px;
    }

    .google-reviews-cta {
        padding: 1.5rem;
        margin: 1.5rem 0.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Loading Animation for Filters */
.testimonials-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

.testimonials-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Testimonial Quote Styling */
.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-card.featured .testimonial-content p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hover Effects */
.testimonial-card:hover .client-avatar {
    transform: scale(1.1);
}

.testimonial-item:hover .rating i {
    transform: scale(1.1);
}

/* Accessibility */
.filter-btn:focus,
.testimonial-card:focus,
.testimonial-item:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .testimonials-hero,
    .testimonials-cta,
    .google-reviews-cta {
        background: white !important;
        color: black !important;
    }
    
    .testimonial-card,
    .testimonial-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

