/* Advanced Stats Section Styling */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.stats-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4A6CF7;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(74, 108, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    background: rgba(74, 108, 247, 0.2);
    transform: scale(1.1);
}

.stat-icon {
    font-size: 28px;
    color: #4A6CF7;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -15px;
    font-size: 24px;
    color: #4A6CF7;
    font-weight: 600;
}

.stat-number.percentage::after {
    content: '%';
}

.stat-number.no-plus::after {
    content: '';
}

.stat-label {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.stat-description {
    margin-top: 15px;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 992px) {
    .stats-container {
        padding: 60px 20px;
    }
    
    .stats-row {
        max-width: 900px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-description {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .stats-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .stat-card {
        flex: 0 1 100%;
        max-width: 350px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .stats-title {
        font-size: 24px;
    }
    
    .stats-subtitle {
        font-size: 14px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

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

.stat-number.animated {
    animation: countUp 1s ease-out forwards;
}

/* Decorative elements */
.stat-card .decoration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(74, 108, 247, 0.03);
    z-index: -1;
}

.stat-card .decoration::before {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 108, 247, 0.05);
}
