/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6b7ae6;
    --dark-color: #1d2144;
    --light-color: #f5f8ff;
    --text-color: #4a5568;
    --white: #ffffff;
    --gray: #e2e8f0;
    --light-gray: #f7fafc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-top: 65px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Rating Summary */
.rating-summary {
    display: inline-block;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    color: var(--warning-color);
    font-size: 20px;
}

.rating-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.rating-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-color) 100%);
}

.testimonial-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonial-badge i {
    font-size: 14px;
}

/* Testimonial Content */
.testimonial-content {
    margin-bottom: 25px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Client Rating */
.client-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: var(--warning-color);
    font-size: 14px;
}

.rating-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

/* Client Info */
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--light-color);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details {
    flex: 1;
}

.client-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.client-position {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    opacity: 0.8;
}

.project-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-type {
    font-size: 12px;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.project-duration {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}

/* Statistics Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

/* Trust Indicators */
.trust-indicators {
    text-align: center;
    margin-bottom: 80px;
}

.trust-indicators h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 40px;
    font-weight: 600;
}

.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.trust-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.trust-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.trust-logo i {
    font-size: 32px;
    color: var(--primary-color);
    background: var(--light-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-logo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

/* CTA Section */
.testimonial-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(74, 108, 247, 0.3);
}

.cta-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .trust-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .rating-summary {
        padding: 15px 20px;
    }
    
    .overall-rating {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .rating-text {
        align-items: center;
    }
    
    .trust-logos {
        grid-template-columns: 1fr;
    }
    
    .testimonial-cta {
        padding: 40px 25px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
}

/* Animation for cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.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; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
.testimonial-card:hover .client-avatar {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.testimonial-card:hover .quote-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(10deg);
}

.client-avatar,
.quote-icon {
    transition: var(--transition);
}