/*================================================ STATISTICS CSS ======================================*/

/* stats */
.stat-box{
    text-align:center;
    padding:20px;
}

.stat-box h3{
    font-weight:800;
    color:var(--primary);
}

/* number animation feel */
.stat-box h3{
    transition:0.3s;
}

.stat-box:hover h3{
    transform: scale(1.15);
    text-shadow:0 5px 15px rgba(79,70,229,0.3);
}

/* label text enhancement */
.stat-box p{
    transition:0.3s;
}

.stat-box:hover p{
    color:#111;
}

.stat-box::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg,transparent,rgba(79,70,229,0.08),transparent);
    transition:0.5s;
}

.stat-box:hover::before{
    left:100%;
}

/* CLICKABLE STAT WIDGET */
.stat-box{
    display:block;
    text-align:center;
    padding:25px 20px;
    border-radius:16px;
    background:#fff;
    border:1px solid rgba(0,0,0,0.05);

    position:relative;
    overflow:hidden;
    cursor:pointer;

    transition: all 0.35s ease;
}

/* ICON */
.stat-icon{
    font-size:28px;
    color:var(--primary);
    margin-bottom:10px;
    display:block;
    transition:0.3s;
}

/* ARROW */
.stat-arrow{
    position:absolute;
    bottom:12px;
    right:14px;
    font-size:14px;
    opacity:0.6;
    transition:0.3s;
}

/* HOVER EFFECT */
.stat-box:hover{
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    border-color: rgba(79,70,229,0.25);

    background: linear-gradient(
        135deg,
        rgba(79,70,229,0.06),
        rgba(6,182,212,0.06)
    );
}

/* ICON ANIMATION */
.stat-box:hover .stat-icon{
    transform: scale(1.2) rotate(5deg);
}

/* ARROW MOVE */
.stat-box:hover .stat-arrow{
    transform: translateX(5px);
    opacity:1;
}

/* CLICK EFFECT */
.stat-box:active{
    transform: scale(0.97);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* TEXT COLORS */
.stat-box h3{
    color:var(--primary);
    font-weight:800;
    transition:0.3s;
}

.stat-box p{
    color:#555;
    margin-bottom:0;
}