/* Counter Section - Premium Animated Design */

.counter-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    color: #fff;
    z-index: 10;
}



.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.counter-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 45px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(46, 163, 214, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.counter-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(46, 163, 214, 0.1) 0%, rgba(0, 229, 255, 0.1) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--primary-color);
    border: 1px solid rgba(46, 163, 214, 0.2);
    transition: all 0.4s ease;
}

.counter-box:hover .counter-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(46, 163, 214, 0.3);
}

.counter-box h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.counter-box p {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Mouse tracking glow effect */
.counter-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(46, 163, 214, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

.counter-box:hover::after {
    opacity: 1;
}

/* Responsive Decor */
@media (max-width: 1100px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-box {
        padding: 35px 20px;
    }
    
    .counter-box h2 {
        font-size: 3rem;
    }
}
