﻿.data-stats-wow {
    width: 100%;
    background: #fff;
    color: #000;
    padding: 60px 0;
}

.stats-header {
    display: flex;
    justify-content: center;
    gap: 180px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    text-align: center;
}

.stats-item h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stats-item p {
    font-size: 1rem;
    font-weight: 500;
}

.stats-gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 100%;
    height: 350px;
}

.stats-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* For parallax effect: */
    perspective: 800px;
}

.stats-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px; /* gives true 3D depth */
}

    .stats-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1) rotateX(0deg) rotateY(0deg);
        transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.6s ease, box-shadow 0.8s ease;
        filter: brightness(1);
    }

    /* ✅ Realistic 3D + zoom + light pop */
    .stats-box:hover img {
        transform: scale(1.25) rotateX(6deg) rotateY(-6deg) translateZ(30px);
        filter: brightness(1.15) contrast(1.1);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    }

    /* Subtle highlight overlay effect */
    .stats-box::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255,255,255,0.25), transparent 70%);
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .stats-box:hover::after {
        opacity: 1;
    }


@media (max-width:992px) {
    .stats-gallery {
        grid-template-columns: repeat(2,1fr);
        height: auto;
    }
}

@media (max-width:576px) {
    .stats-gallery {
        grid-template-columns: 1fr;
    }
}
