.testimonials-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 100px 60px 80px;
    animation: fadeIn 1s ease-out forwards;
}

.testimonials-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.testimonials-hero p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #e1e1e1;
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.filter-button {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #a9a9a9;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-button:hover, .filter-button.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #5a5a5a;
}

.filter-button.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #0c0c0c;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #4a4a4a;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 120px;
    line-height: 1;
    font-family: serif;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.customer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
}

.customer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-avatar i {
    font-size: 28px;
    color: #777;
}

.customer-info {
    flex: 1;
}

.customer-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.customer-details {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #a9a9a9;
}

.customer-details span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.customer-details i {
    margin-right: 5px;
    font-size: 12px;
}

.rating {
    display: flex;
    margin-bottom: 15px;
    color: #ffd700;
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.6;
    color: #e1e1e1;
    margin-bottom: 20px;
}

.car-purchased {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
}

.car-thumbnail {
    width: 60px;
    height: 40px;
    background: #222;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-details {
    flex: 1;
}

.car-details h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.car-details p {
    font-size: 12px;
    color: #a9a9a9;
}

.testimonial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #a9a9a9;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0 60px;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.pagination-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0c0c;
    border: 1px solid #2e2e2e;
    border-radius: 50%;
    color: #a9a9a9;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover, .pagination-button.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #4a4a4a;
}

.pagination-button.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.stats-section {
    background: #050505;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 16px;
    color: #a9a9a9;
}

.testimonial-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.testimonial-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.testimonial-cta p {
    font-size: 18px;
    line-height: 1.6;
    color: #a9a9a9;
    margin-bottom: 30px;
}

.testimonial-cta-button {
    background: linear-gradient(90deg, #333 0%, #1a1a1a 100%);
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #444 0%, #2a2a2a 100%);
}

.contact-section {
    background: #0d0d0d;
    padding: 80px 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info p {
    color: #a9a9a9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #e1e1e1;
}

.contact-item i {
    width: 30px;
    font-size: 16px;
    color: #a9a9a9;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-media a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9a9a9;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: #333;
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: #0c0c0c;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 30px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    color: white;
    font-family: "Inter", sans-serif;
}

textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(90deg, #333 0%, #1a1a1a 100%);
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: linear-gradient(90deg, #444 0%, #2a2a2a 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .testimonials-hero {
        padding: 80px 30px 60px;
    }
    
    .testimonials-hero h1 {
        font-size: 36px;
    }

    .testimonials-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials-hero h1 {
        font-size: 32px;
    }

    .testimonials-hero p {
        font-size: 16px;
    }

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

    .stats-container {
        gap: 20px;
    }

    .stat-item {
        min-width: 150px;
    }

    .stat-value {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .testimonials-hero {
        padding: 60px 20px 40px;
    }

    .testimonials-hero h1 {
        font-size: 28px;
    }

    .testimonial-filter {
        gap: 10px;
    }

    .filter-button {
        padding: 8px 15px;
        font-size: 13px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-cta h2 {
        font-size: 28px;
    }

    .testimonial-cta p {
        font-size: 16px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Animation for cards */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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