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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: #374151;
    font-weight: 600;
    margin: 0.5rem 0;
}

.stat-note {
    color: #64748b;
    font-size: 0.9rem;
}

.filter-section {
    margin-bottom: 3rem;
}

.filter-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.filter-btn {
    background: #f1f5f9;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.reference-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.reference-header {
    padding: 1.5rem;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.client-details h3 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.client-position {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.project-info {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
}

.rating {
    text-align: center;
}

.stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.rating-value {
    display: block;
    font-weight: bold;
    color: #374151;
}

.reference-content {
    padding: 1.5rem;
}

.reference-content blockquote {
    margin: 0;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
    position: relative;
}

.reference-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

.reference-footer {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

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

.project-date {
    color: #64748b;
    font-size: 0.85rem;
}

.testimonials-section {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 4rem;
}

.testimonials-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-item p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-style: italic;
}

.highlight-stat {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.references-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.references-cta h2 {
    margin-bottom: 1rem;
}

.references-cta p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

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

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reference-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
