/* Counter Styles */
.about-stats {
    margin: 40px 0;
    padding: 30px 0;
    width: 100%;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a4b8b, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.stat-item h3::after {
    content: '+';
    display: inline;
    background: linear-gradient(135deg, #1a4b8b, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item[data-target="20"] h3::after {
    content: '+';
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    margin: 10px 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 280px;
        margin-bottom: 20px;
    }
    
    .stat-item {
        margin: 10px 0;
        width: 100%;
        padding: 0;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
}

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

.stat-item[data-aos] {
    opacity: 0;
}

.stat-item[data-aos].aos-animate {
    animation: countUp 0.8s ease-out forwards;
}

/* Counter animation */
@keyframes count {
    to {
        opacity: 1;
    }
}

.counter {
    display: inline-block;
    opacity: 0;
    animation: count 0.5s ease-out forwards;
    animation-delay: 0.3s;
    min-width: 1em;
    text-align: center;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .stats-container {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: nowrap;
        gap: 40px;
    }
    
    .stat-item {
        flex: 1;
        max-width: 300px;
        padding: 0 15px;
    }
    
    .stat-item h3 {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .stat-item p {
        font-size: 1rem;
        margin-top: 10px;
    }
}
