@use "../utilities" as *;

/**----------------------------------------
    START: Counter CSS
----------------------------------------*/

.counter-section{
    position: relative;
    @include background;
    width: 100%;
    height: 100%;
    z-index: 2;
    .overlay{
        background-color: rgba(0, 15, 41, 0.75);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    .shape{
        position: absolute;
        height: 100%;
        img{
            height: 100%;
        }
        &.shape-1{
            top: 0;
            left: 0;
        }
        &.shape-2{
            top: 0;
            right: 0;
        }
    }
}

.counter-item{
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    grid-template-columns: 92px 1fr;
    grid-gap: 20px;
    .icon{
        max-width: 92px;
        width: 100%;
        height: 92px;
        position: relative;
        z-index: 1;
        .icon-inner{
            background: rgba(216, 231, 253, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12.5px);
            height: 85px;
            width: 85px;
            @include flex-center;
            margin-left: auto;
            border-radius: 10px;
        }
        .shape{  
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            border-radius: 10px;
            width: 85px;
            height: 85px;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: -1;
        }
    }
    .counter-content{
        .title{
            color: var(--bz-color-common-white);
            margin-bottom: 0;
            line-height: 1;
            .odometer-auto-theme{
                font-family: inherit;
                line-height: 1;
            }
        }
        p{
            color: var(--bz-color-common-white);
            margin-bottom: 0;
            line-height: 1;
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            margin-top: 10px;
        }
    }
}

// Service Counter

.service-counter{
    position: relative;
    z-index: 1;
    .bg-item{
        .bg-img{
            @include background;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
            filter: saturate(0);
        }
        .overlay{
            background: rgba(9, 15, 26, 0.7);
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
        }
        .shapes{
            .shape{
                position: absolute;
                z-index: -1;
                height: 100%;
                img{
                    height: 100%;
                }
                &.shape-1{
                    top: 0;
                    left: 0;
                }
                &.shape-2{
                    top: 0;
                    right: 0;
                }
            }
        }
    }
}

.counter-card{
    @include flex-vertical-center;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.27);
    box-shadow: 0px 12px 31px rgba(4, 10, 21, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    @include breakpoint(lg){
        padding: 40px 30px;
    }
    .icon{
        padding-right: 30px;
        margin-right: 30px;
        border-right: 1px solid rgba(255, 255, 255, 0.17);
    }
    .content{
        .title{
            color: var(--bz-color-common-white);
            font-size: 48px;
            font-weight: 600;
            margin-bottom: 0;
            line-height: 1;
            @include flex-vertical-center;
            @include breakpoint(lg){
                font-size: 36px;
            }
            .odometer-auto-theme{
                font-family: inherit;
                line-height: 1;
                margin-bottom: -2px;
            }
        }
        p{
            font-family: var(--bz-ff-heading);
            color: var(--bz-color-common-white);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 0;
        }
    }
}

/* !END: Counter CSS */
