/* Stats Section Styles */

.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-item {
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.stats-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.counter {
    transition: all 0.3s ease;
    display: inline-block;
}

.counter.animated {
    animation: counterPulse 0.6s ease-out;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Staggered animation for stats items */
.stats-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.stats-item:nth-child(1) { animation-delay: 0.1s; }
.stats-item:nth-child(2) { animation-delay: 0.2s; }
.stats-item:nth-child(3) { animation-delay: 0.3s; }
.stats-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-item {
        animation-delay: 0.1s !important;
    }
    
    .stats-section .grid {
        gap: 1rem;
    }
    
    .stats-item {
        padding: 1rem;
    }
}

/* Enhanced text effects */
.stats-section h2 {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-section p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
} 