/* service-card start -------------------------------*/
.serviceSlide1 {
    margin-right: -7% !important;

    @include lg {
        margin-right: 0 !important;
    }

    .slider-controller {
        width: 100%;
        display: inline-flex;
        justify-content: center;
    }

    .slider-arrow {
        position: absolute;
        left: 45%;
        transform: translate(-50%, -50%);

        @include lg {
            display: none;
        }

        i {
            color: $title-color;
        }

        img {
            filter: invert(1);
        }

        &:hover {
            i {
                color: $white-color;
            }
        }
    }
}

.service-card {
    position: relative;
    z-index: 2;
    display: flex;

    @media (max-width: 480px) {
        display: block;
    }

    .box-img {
        margin-right: -100px;

        @include sm {
            margin-right: 0;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 500ms;
            transform: perspective(0px) rotateX(0deg) rotateY(0deg) scaleX(1) scaleY(1);
            transform-origin: center center;
        }
    }

    .box-content {
        background-color: $white-color;
        padding: 47px 18px 47px 47px;
        top: 48px;
        position: absolute;
        left: unset;
        right: 0;

        @include lg {
            right: 50px;
        }

        @include sm {
            right: 0;
        }

        @media (max-width: 480px) {
            position: relative;
            top: 0;
            padding: 30px 18px 0 30px;

        }

    }

    .box-icon {
        margin-bottom: 24px;
    }

    .box-title {
        font-family: $title-font2;
        font-weight: 400;
        font-size: 48px;
        letter-spacing: 0.02em;
        margin-bottom: 5px;

        @include xl {
            font-size: 38px;
        }

        @include vxs {
            font-size: 35px;
        }
    }

    .box-text {
        margin-bottom: -0.3rem;

    }

    &:hover {
        .box-img {
            img {
                transform: perspective(2000px) rotateX(0.06deg) rotateY(0deg) scaleX(1.1) scaleY(1.1);
            }
        }
    }
}

/* service-box start --------------------------------*/
.service-box {
    position: relative;
    z-index: 2;

    .box-img {
        position: relative;
        margin-bottom: 32px;
        overflow: hidden;

        img {
            transition: transform 500ms;
            transform: perspective(0px) rotateX(0deg) rotateY(0deg) scaleX(1) scaleY(1);
            transform-origin: center center;
        }
    }

    .box-title {
        font-size: 40px;
        margin-bottom: 10px;

        @include ml {
            font-size: 22px;
        }

        @include xs {
            max-width: 100%;
            font-size: 20px;
        }
    }

    .box-text {
        margin-bottom: 30px;
    }

    &.style2 {
        .box-img {
            margin-bottom: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .box-content {
            padding: 30px;
            border: 1px solid #2D2D2D;

        }

        .box-title {
            color: $white-color;
            font-weight: 700;
            font-size: 24px;
        }

        .box-text {
            font-weight: 400;
            font-size: 16px;
            line-height: 26px;
            color: #6C6D71;
        }

        .line-btn {
            color: $white-color;
            font-size: 16px;
            margin-bottom: 0;

            &:before {
                display: none;
            }
        }
    }

    &:hover {
        .box-img {
            img {
                transform: perspective(2000px) rotateX(0.06deg) rotateY(0deg) scaleX(1.1) scaleY(1.1);
            }
        }
    }
}

.service-image {
    border-radius: 24px;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px;
    }
}


/* service-box end --------------------------------*/

/* service-grid start --------------------------------*/
.service-grid {
    position: relative;
    z-index: 2;
    background-color: #1F1F1F;
    border: 1px solid rgba(108, 109, 113, 0.5);
    border-radius: 300px;
    padding: 60px 30px;
    overflow: hidden;
    transition: all 0.4s ease-out;
    @include xl {
        padding: 50px 17px;
    }

    @media(max-width: 480px) {
        border-radius: 100px;
    }

    &.light {
        background-color: #fff;
        border: 1px solid rgba(108, 109, 113, 0.5);

        .overlay {

            &:before {
                content: '';
                position: absolute;
                inset: 0;
                width: 0;
                background-color: rgba(108, 109, 113, 0.5);
                z-index: 3;
                border-radius: inherit;
                transition: all 0.4s ease-out;
            }

            &:after {
                content: "";
                position: absolute;
                inset: 0;
                border-radius: inherit;
                background: rgba(108, 109, 113, 0.5);
                z-index: 2;
            }
        }

        &:hover {
            .box-title {
                color: #fff;
            }
        }
    }

    .overlay {
        position: absolute;
        inset: 0;
        border-radius: 300px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;

        @media(max-width: 480px) {
            border-radius: 100px;
        }

        &:before {
            content: '';
            position: absolute;
            inset: 0;
            width: 0;
            background-color: #1F1F1F;
            z-index: 3;
            border-radius: inherit;
            transition: all 0.4s ease-out;
        }

        &:after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: rgba(108, 109, 113, 0.5);
            z-index: 2;
        }
    }

    .box-content {
        position: relative;
        display: flex;
        align-items: center;
        gap: 40px;
        z-index: 3;

        @include xxl {
            gap: 25px;
        }

        @media(max-width: 480px) {
            flex-direction: column;
            gap: 30px;
        }
    }

    .box-title {
        font-family: $body-font;
        font-weight: 400;
        font-size: 20px;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: $white-color;


        margin-bottom: 0;
    }

    .box-icon {
        min-width: 160px;
        height: 160px;
        line-height: 160px;
        text-align: center;
        background: #1F1F1F;
        border: 1px solid rgba(108, 109, 113, 0.5);
        border-radius: 200px;

        img {
            transition: all 0.4s ease-in-out;
        }

    }

    &:hover {
        .overlay {
            width: 100%;
            opacity: 1;
            visibility: visible;

            &:before {
                transform: translate(100%, -100%);
            }
        }

        .box-icon {
            img {
                transform: rotateY(180deg);
            }
        }
    }
}

.service-content {
    max-width: 690px;
    display: block;
    margin: 80px auto auto auto;

    &.light {
        .box-text {
            color: $body-color;
        }
    }

    .box-text {
        font-weight: 400;
        font-size: 24px;
        color: #999999;
        margin-bottom: 50px;

    }
}



/* service-grid end --------------------------------*/
/* service-grid start --------------------------------*/
.service-grid2 {
    background-color: $white-color;
    border-radius: 8px;
    padding: 24px 48px;

    @include xxl {
        padding: 24px 35px;
    }

    @include sm {
        text-align: center;
        padding: 24px 25px;
    }

    .service-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 35px;

        @include md {
            flex-direction: column;
            align-items: flex-start;
        }

        @include sm {
            align-items: center;
        }
    }

    .box-wrapp {
        display: flex;
        align-items: center;
        gap: 48px;

        @include xl {
            gap: 20px;
        }

        @include sm {
            flex-direction: column;
        }
    }

    .box-right-wrapp {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 50px;

        @include xl {
            gap: 20px;
        }

        @include sm {
            flex-direction: column;
        }
    }

    .box-icon {
        position: relative;
        min-width: 100px;
        height: 100px;
        line-height: 100px;
        background: #F2F3FC;
        border-radius: 50%;
        text-align: center;
        display: block;
        margin: auto auto 24px auto;
        z-index: 2;
        transition: 0.4s ease-in-out;

        img {
            transition: 0.4s ease-in-out;
        }
    }

    .box-title {
        max-width: 195px;
        margin-bottom: 0;
    }

    .box-text {
        max-width: 467px;
        margin-bottom: 0;
    }

    .box-img {
        border-radius: 8px;

        img {
            border-radius: 8px;
        }
    }

    .th-btn {
        min-width: 176px;
        padding: 15px 24px;

        @include xl {
            min-width: 150px;
            padding: 15px 18px;
        }
    }

    &:hover {

        .box-icon {
            img {
                transform: scale(-1) rotate(180deg);
            }
        }

    }
}



/* service-grid end --------------------------------*/

/* service details start ---------------------------*/
.page-img {
    overflow: hidden;

    &.service-img {
        height: 541px;

        @include sm {
            height: 400px;
        }
    }

    &.project-img {
        height: 541px;

        @include sm {
            height: 400px;
        }
    }

    &.style1 {
        border-radius: 20px;

        img {
            border-radius: 20px;
        }
    }

    img {}
}

.page-subtitle {
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    color: $title-color;
}

.page-text {
    max-width: 876px;
}

.service-process {
    background-color: $white-color;
    box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 30px 20px 30px 30px;
    position: relative;
    z-index: 2;

    &-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 30px;

        @include lg {
            grid-template-columns: repeat(2, 1fr);
            margin-bottom: 0;
        }

        @include sm {
            grid-template-columns: repeat(1, 1fr);
        }


    }

    &_img {
        margin-bottom: 20px;
    }

    &_title {
        font-family: $title-font;
        font-size: 24px;
        line-height: 34px;
        font-weight: 600;
        text-transform: capitalize;
        margin-bottom: 6px;

        @include xl {
            font-size: 20px;
            line-height: 30px;
        }
    }

    &_text {
        line-height: 26px;
        margin-bottom: -0.4rem;
    }
}

.service-meta {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    @include lg {
        justify-content: flex-start;
        margin-bottom: 30px;
    }

    .feature {
        background-color: $theme-color;
        border-radius: 4px;
        font-weight: 400;
        font-size: 18px;
        letter-spacing: 0.02em;
        color: $white-color;
        padding: 11px 16px;
    }

    .rating {
        padding: 10px 16px;
        background: #FFF2F2;
        border-radius: 4px;
        font-weight: 400;
        font-size: 18px;
        letter-spacing: 0.02em;
        color: #0D0D0C;

        i {
            color: #FFA944;
            margin-right: 8px;
        }
    }
}

/* service-list start -------------------*/


.service-list {
    &-area {
        position: relative;
        z-index: 2;
        min-height: 970px;

        &.style2 {
            min-height: 417px;

            @include xl {
                min-height: 500px;
            }

            @include lg {
                min-height: 800px;
            }
        }

        @include xl {
            margin-top: 50px;
        }

        @include md {
            margin-bottom: 70px;
        }
    }

    &.style2 {
        .service-list-content {
            max-width: 520px;
            margin: 0 0 30px 0;

            @include xl {
                //max-width: 100%;
            }
        }

        .service-img {
            left: unset;
            right: 25.3%;
            max-width: 524px;
            height: 417px;

            @include ml {
                right: 10%;
            }

            @include xl {
                position: absolute;
                top: 0%;
                right: 5%;
            }

            @include lg {
                top: 50%;
                right: 0;
            }

            @include vxs {
                top: 55%;
            }

            img {
                max-width: 524px;
                height: 417px;
            }
        }

        .service-img2 {
            max-width: 387px;
            height: 417px;
            right: 0;
            top: 0;
            bottom: unset;

            @include xl {
                top: 30%;
            }

            @include lg {
                top: 50%;
                right: unset;
                left: 0%;
            }

            img {
                height: 100%;
            }
        }

        .number {
            font-family: $title-font;
            font-weight: 400;
            font-size: 48px;
            color: #E4E4E5;
            margin: 0;

            @include xl {
                font-size: 35px;
            }

            @include vxs {
                font-size: 25px;
            }

        }

        .box-title {
            font-weight: 700;
            font-size: 48px;
            color: #E4E4E5;
            transition: all 0.4s ease-in-out;

            @include xl {
                font-size: 35px;
            }

            @include vxs {
                font-size: 25px;
            }

        }

        .box-text {
            height: 0;
            opacity: 0;
            overflow: hidden;
            transform: translateY(50px);
            transition: all 0.4s ease-in-out;
        }

        &.item-active {
            .service-img {
                height: 417px;
            }

            .service-img2 {
                height: 417px;
            }

            .service-list-content {
                .number {
                    color: #1F1F1F;
                }

                .box-title {
                    color: #1F1F1F;
                    text-decoration-line: underline;
                }

                .box-text {
                    height: 100%;
                    opacity: 1;
                    transform: translateY(0px);
                }
            }
        }
    }


    .service-list-content {
        max-width: 450px;
        display: block;
        margin-left: auto;
        margin-bottom: 28px;
        margin-right: 200px;

        @include xxl {
            margin-right: 100px;
        }

        @include ml {
            margin-right: 0;
        }

        @include lg {
            max-width: 360px;
        }

        @include md {
            margin-left: 0;
            max-width: 100%;
        }
    }

    .service-img {
        max-width: 798px;
        height: 700px;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        height: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;

        @include ml {
            max-width: 600px;
        }



        img {
            width: 798px;
            height: 700px;
            object-fit: cover;


        }

        @include ml {
            max-width: 600px;
        }

        @include lg {
            max-width: 530px;
        }

        @include md {
            position: absolute;
            top: 35%;
            max-width: 100%;
            border: 0;
            padding: 0;
        }


    }

    .service-img2 {
        max-width: 524px;
        position: absolute;
        bottom: 0;
        right: 13%;
        opacity: 0;
        height: 0;
        visibility: hidden;

        @include xxl {
            right: 4%;
        }

        @include ml {
            right: 0%;
        }

        @include xl {
            max-width: 450px;
        }

        @include md {
            display: none;
        }


    }

    .box-title {
        font-weight: 700;
        font-size: 40px;
        color: #999999;

        @include lg {
            font-size: 30px;
        }

        @include md {
            font-size: 24px;
        }
    }

    .service-wrapp {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;

    }

    .number {
        font-weight: 700;
        font-size: 24px;
        line-height: 34px;
        color: #999999;
        margin-top: -20px;


    }


    &.item-active {
        .box-title {
            color: $title-color;
        }

        .number {
            color: $title-color;
        }

        .service-img {
            height: 700px;
            opacity: 1;
            visibility: visible;


        }

        .service-img2 {
            height: 524px;
            opacity: 1;
            visibility: visible;

            @include xl {
                height: 450px;
            }
        }
    }

    &:hover {
        .box-title {
            color: $title-color;
        }

        .number {
            color: $title-color;
        }

        &:before {
            height: 100%;
        }

        &:before,
        &:after {
            opacity: 1;
            visibility: visible;
        }
    }
}

/*service-area ---------------------------*/
.service-area {
    background-color: #1F1F1F;
}

.service-area2 {
    position: relative;
    z-index: 2;
    padding: 160px 0;
    margin-bottom: 70px;

    @include md {
        padding: 100px 0;
    }

    .sec-title {
        margin-bottom: 0;
    }

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.57), rgba(0, 0, 0, 0.57));

    }
}

.service-area3 {
    background-color: #F8F8F8;
    padding: 40px;

    @include vxs {
        padding: 40px 20px;
    }
}

/* service-item --------------------------*/
.service-item {
    position: relative;
    background-color: $white-color;
    padding: 60px 50px;
    text-align: center;
    z-index: 2;

    @include ml {
        padding: 50px 45px;
    }

    @include lg {
        padding: 40px 30px;
    }

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        left: 0;
        width: 0;
        background-color: $title-color;
        transition: all 0.4s ease-in-out;
        z-index: -1;

    }

    .box-icon {
        margin-bottom: 40px;

        img {
            transition: all 0.4s ease-in-out;
        }
    }

    .box-title {
        border-bottom: 1px solid #EDEDED;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .line-btn {
        padding: 0;

        &:before {
            display: none;
        }
    }

    &:hover {
        &:before {
            width: 100%;
        }

        .box-icon {
            img {
                filter: brightness(0) invert(1);
            }
        }

        .box-title {
            color: $white-color;
            border-color: #2D2D2D;
        }

        .line-btn {
            color: $white-color;
        }
    }
}