
.service-wrapper {
    padding: 0 130px;

    @include breakpoint (max-xxl){
        padding: 0 40px;
    }

    @include breakpoint (max-xl){
        padding: 0 30px;
    }

    .service-card-items {
        margin-top: 30px;
        padding: 30px;
        background-color: $bg-color;
        @include transition;

        h3 {
            margin-bottom: 15px;
        }

        .service-thumb {
            margin-top: 20px;
            margin-bottom: 30px;

            position: relative;
            overflow: hidden;
    
            &::after {
                background: linear-gradient(90deg, rgba(var(--white-rgb, 255, 255, 255), 0.13) 0px, rgba(var(--white-rgb, 255, 255, 255), 0.13) 77%, rgba(var(--white-rgb, 255, 255, 255), 0.3) 92%, rgba(var(--white-rgb, 255, 255, 255), 0));
                content: "";
                height: 200%;
                left: -210%;
                opacity: 0;
                position: absolute;
                top: -50%;
                transition: all 0.5s ease 0s;
                transition-property: all;
                transition-duration: 0.5s;
                transition-timing-function: ease;
                width: 200%;
            }

            img {
                @include imgw;
                @include transition;
            }
        }

        &:hover {
            background-color: $theme-color;

            h3 {
                a {
                    color: $white;
                }
            }

            p {
                color: $white;
            }

            .link-btn {
                color: $white;
                transition: initial !important;

                i {
                    background-color: $white;
                    color: $theme-color;
                }

                span {
                    color: $white;
                    background-image: linear-gradient($white,$white);
               }
            }

            .service-thumb {
               
                &::after {
                    left: -30%;
                    opacity: 1;
                    top: -20%;
                    transition-duration: 0.5s, 0.5s, 0.15s;
                    transition-property: left, top, opacity;
                    transition-timing-function: linear;
                }

                img {
                    transform: scale(1.1);
                }
            }
        }

        &.active {
            background-color: $theme-color;

            h3 {
                a {
                    color: $white;
                }
            }

            p {
                color: $white;
            }

            .link-btn {
                color: $white;
                transition: initial !important;

                i {
                    background-color: $white;
                    color: $theme-color;
                }

                span {
                    color: $white;
                    background-image: linear-gradient($white,$white);
               }
            }

            .service-thumb {
               
                &::after {
                    left: -30%;
                    opacity: 1;
                    top: -20%;
                    transition-duration: 0.5s, 0.5s, 0.15s;
                    transition-property: left, top, opacity;
                    transition-timing-function: linear;
                }

                img {
                    transform: scale(1.1);
                }
            }
        }
    }
}

.service-section {
    position: relative;

    .shape-image {
        position: absolute;
        left: 0;
        top: 0;
    }

    .left-shape {
        position: absolute;
        top: 0;
        left: 0;
    }

    .right-shape {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .line-shape-2 {
        position: absolute;
        left: 0;
        bottom: 8%;
    }

    .bottom-shape {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .bg-shape{
        position: absolute;
        top: -20%;
        left: 0;
        z-index: -1;

        @include breakpoint(max-xl){
            display: none;
        }
    }
}

.service-section-2 {
    position: relative;

    &::before {
        @include before;
        background-color: $bg-color-5;
        z-index: -1;
        top: 68%;
    }
}

.service-box-items {
    position: relative;
    margin-top: 30px;
    background-color: $white;
    box-shadow: $shadow;
    padding: 35px 35px;
    z-index: 9;
    overflow: hidden;

    @include breakpoint (max-sm){
        padding: 30px 25px;
        text-align: center;
    }

    &::before {
        @include before;
        background-color: $theme-color;
        transform: scale(1, 0);
        transition: transform 500ms ease;
        transform-origin: bottom center;
        z-index: -1;
    }

    &::after {
        position: absolute;
        bottom: -50px;
        left: 0;
        right: 0;
        width: 100%;
        height: 320px;
        content: "";
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url(../../assets/img/service/line-shape.png);
        z-index: -1;
        visibility: hidden;
        opacity: 0;
        @include transition;
    }

    .icon {
        position: relative;
        @include transition;
        display: inline-block;
        font-size: 60px;
        color: $theme-color;

        &::before {
            position: absolute;
            bottom: -20px;
            left: 0;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: rgba(8, 106, 216, 0.08);
            content: "";
        }
    }

    .content {
        margin-top: 40px;

        @include breakpoint (max-md){
            margin-top: 30px;;
        }

        @include breakpoint (max-sm){
            margin-top: 20px;;
        }

        h3 {
            margin-bottom: 20px;
            font-size: 21px;

            @include breakpoint (max-sm){
               margin-bottom: 10px;
            }
        }
    }

    .arrow-icon {
        transform: rotate(-50deg);
        display: inline-block;
        color: $theme-color;
        margin-top: 30px;
        @include transition;

        @include breakpoint (max-md){
            margin-top: 30px;
        }

        @include breakpoint (max-sm){
            margin-top: 20px;
        }
    }

    &:hover {
       &::before {
            transform: scale(1, 1);
            transform-origin: top center;
       }

       &::after {
            bottom: 0;
            visibility: visible;
            opacity: 1;
       }

       .icon {
            color: $white;
            transform: scaleX(-1);
       }

       .content {
            h3 {
                color: $white;
            }

            p {
                color: $white;
            }
       }

       .arrow-icon {
            color: $white;
            transform: initial;
       }
    }

    &.active {
        &::before {
             transform: scale(1, 1);
             transform-origin: top center;
        }
 
        &::after {
             bottom: 0;
             visibility: visible;
             opacity: 1;
        }
 
        .icon {
            color: $white;
        }
 
        .content {
             h3 {
                color: $white;
             }
 
             p {
                 color: $white;
             }
        }
 
        .arrow-icon {
             color: $white;
             transform: initial;
        }
    }

    &.style-2 {
        text-align: center;
        margin: 0 auto;
        padding: 50px 20px;
        width: 100%;

        &::before {
            background-color: $theme-color-2;
        }

        &::after {
            position: absolute;
            bottom: -50px;
            left: 5px;
            width: 12px;
            height: 12px;
            content: "";
            background-repeat: initial;
            background-size: initial;
            background-image: initial;
            background: rgba(255, 255, 255, 0.23);
        }

        .icon {
            font-size: 70px;
            color: $theme-color-2;
        }

        .content {
            h6 {
                font-weight: bold;
            }
        }

        &:hover {
            &::after {
                bottom: 5px;
            }
     
            .icon {
                color: $white;
            }
     
            .content {
                 h6 {
     
                     a {
                         color: $white;
                     }
                 }
            }
     
        }

        &.active {
            &::after {
                bottom: 5px;
            }
     
            .icon {
                color: $white;
            }
     
            .content {
                 h6 {
     
                     a {
                         color: $white;
                     }
                 }
            }
     
        }
    }
}

.service-counter-section {
    position: relative;

    &::before {
        @include before;
        background-color: $bg-color-6;
        z-index: -1;
        top: 55%;
    }
}

.service-counter-wrapper {
    background-color: $theme-color;
    padding: 85px;

    @include breakpoint (max-xl){
      padding: 50px 35px;
    }

    @include breakpoint (max-lg){
        padding: 85px;
    }

    @include breakpoint (max-sm){
        padding: 40px 30px;
    }

    .service-counter-content {

        @include breakpoint (max-lg){
            text-align: center;
            margin: 0 auto;
        }

    }

    .service-counter-items {
        text-align: center;
        position: relative;
        z-index: 9;
        padding-bottom: 50px;
        overflow: hidden;

        &::before {
            @include before;
            background: #d41124;
            border-radius: 9px;
            z-index: -1;
            top: -50px;
            height: initial;
            @include transition;
            visibility: hidden;
            opacity: 0;
        }

        .icon {
            width: 100px;
            height: 100px;
            line-height: 120px;
            border-radius: 50%;
            text-align: center;
            background-color: $white;
            font-size: 56px;
            color: $theme-color;
            text-align: center;
            margin: 40px auto;
            @include transition;

            @include breakpoint (max-sm){
                font-size: 38px;
                width: 85px;
                height: 85px;
                line-height: 100px;
                margin: 30px auto;
            }
        }

        .content {
            h2 {
                font-size: 55px;
                color: $white;

                @include breakpoint (max-xxl){
                   font-size: 42px;
                } 
                
                @include breakpoint (max-lg){
                    font-size: 55px;
                } 
                
                @include breakpoint (max-sm){
                    font-size: 42px;
                }  
            }

            p {
                color: $white;
                font-size: 18px;
                margin-top: 20px;

                @include breakpoint (max-sm){
                   margin-top: 0;
                }   
            }
        }

        &:hover {
            &::before {
                top: 20%;
                visibility: visible;
                opacity: 1;
            }

            .icon {
                transform: scaleX(-1);
            }
        }

        &.active {
            &::before {
                top: 20%;
                visibility: visible;
                opacity: 1;
            }
        }
    }
}

.service-wrapper-3 {
    @include flex;
    justify-content: space-between;
    width: 100%;
    gap: 25px;
    margin-top: 30px;

    @include breakpoint (max-xxl){
        flex-wrap: wrap;
    }
}

.service-text-area {
    .link-btn-2 {
        span {
            color: $theme-color-2;
            background-size: 100% 1px;
       }
    }
}

.single-it-service-provide {
    position: relative;
    .arrow-shape{
        position: absolute;
        top: 130px;
        right: 0;
        z-index: 11;
        @include breakpoint(max-xxl){
            display: none;
        }
    }
    .arrow-shape-2{
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 9;
        @include breakpoint(max-xxl){
            display: none;
        }
    }
    .service-bg {
        padding: 130px 110px;
        position: relative;
        z-index: 1;
        @include breakpoint(max-lg){
           padding: 80px 80px;
        }
        @include breakpoint(max-md){
            padding: 60px 30px;
        }
        &::before{
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            content: "";
            background-image: linear-gradient(90deg, #E20935 0%, rgba(226, 9, 53, 0.00) 100%);
        }
        .single-provide-content{
            display: flex;
            align-items: center;
            gap: 180px;
            position: relative;
            z-index: 9;
            @include breakpoint(max-lg){
                gap: 100px;
            }
            @include breakpoint(max-md){
                flex-wrap: wrap;
                gap: 80px;
                justify-content: center;
            }
            .section-content{
                max-width: 550px;
                @include breakpoint(max-md){
                    text-align: center;
                    margin: 0 auto;
                }

                .sub-cont {
                    margin-bottom: 10px;
                    color: $white;
                    font-size: 22px;
                    font-weight: 700;
                    display: inline-block;
                }
                h2{
                    margin-bottom: 25px;
                    color: $white;
                }
                p{
                    margin-bottom: 35px;
                    color: $white;
                }
                .bg-style-3{
                    &::before,&::after{
                        background-color: $theme-color;
                    }
                }
            }
            .video-btn{
                position: relative;
                text-align: center;
                display: inline-block;
                z-index: 2;
                a{
                    position: relative;
                    color: var(--black);
                    font-size: 16px;
                    z-index: 1;
                    background-color: $white;
                    width: 90px;
                    height: 90px;
                    line-height: 90px;
                    border-radius: 50%;
                    display: block;
                    transition: 0.4s;

                    i{
                        color: $theme-color;
                    }
                }
            }
            
        }
    }
}

.service-provide-2 {
    position: relative;

    .line-shape-2{
        position: absolute;
        bottom: -85%;
        right: 0;
        @include breakpoint(max-xl){
            display: none;
        }
    }

    &::before {
        @include before;
        background-color: #191919;
    }
}

.single-case-study-wrapper{
    padding: 0 70px;
    position: relative;
    &::before{
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        height: 130%;
        content: "";
        background-color: #191919;
        top: -77%;
        z-index: -1;
    }
    @include breakpoint(max-md){
        padding: 0 0;
    }

    .it-case-study-carousel-active {
        .slick-slide {
          margin: 0 15px;
        }
      
        .slide-dots{
            text-align: center;
            border: 1px dotted $theme-color;
            width: 145px;
            height: 40px;
            line-height: 40px;
            border-radius: 30px;
            margin: 0 auto;
            margin-top: 30px;
            
            li {
                  display: inline-block;
                  margin: 13px 5px;
                  button {
                      position: relative;
                      text-indent: -9999px;
                      border-radius: 10px;
                      width: 10px;
                      height: 10px;
                      background-color: $white;
                      transition: all .3s ease-in-out;
                      border: 2px solid $theme-color;
          
                      &:hover {
                          background-color: $theme-color;
                      }
                  }
                  
                  &.slick-active{
                      button{
                          background-color: $theme-color;
                          border-color: $theme-color;
                      }
                  }
            }
        }
    
        .slick-list {
            margin: 0 -15px;
        }
    }
}

.single-it-case-study{
    .case-study-image{
        position: relative;
        img{
            @include imgw;
        }
        .case-study-content{
            position: absolute;
            bottom: 30px;
            left: 40px;
            right: 40px;
            background-color: $white;
            padding: 40px 50px;
            @include breakpoint(max-sm){
               bottom: 20px;
               left: 20px;
               right: 20px;
               padding: 25px;
            }
            .arrow-shape{
                position: absolute;
                right: 0;
                top: 0;
                @include breakpoint(max-md){
                    display: none;
                }
            }
            .icon{
                margin-bottom: 20px;
                img{
                    width: initial;
                    height: initial;
                }
            }
            h4{
                a{
                    &:hover{
                        color: $theme-color;
                    }
                }
            }
            p{
                margin-bottom: 15px;
            }
        }
    }
}

.service-visa-items {
    margin-top: 30px;
    background-color: $white;
    box-shadow: $shadow;
    border-radius: 10px;

    .service-visa-thumb {
        position: relative;
        overflow: hidden;
        
        img {
            @include imgw;
            border-radius: 10px 10px 0 0;
            transition: 0.5s;
            background-size: cover;

            &:nth-child(1){
                perspective: 300px;
                transition: transform 500ms ease;
                transform-origin: top center;
                transform: translateX(0%) translateX(0px) scaleX(1) rotateY(0deg);
            }

            &:nth-child(2){
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                object-fit: cover;
                transition: transform 700ms ease, top 700ms ease;
                transform: translateX(0%) translateX(150px) scaleX(0) rotateY(90deg);
                transform-origin: bottom center;
                width: 100%;
            }
        }

        .image-overlay {
            display: flex;
            width: 100%;
            height: 100%;
            background-color: rgba(2, 32, 61, 0.6);
            position: absolute;
            top: 0;
            left: 0;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transform: translateY(-20%);
            transition: opacity 500ms ease, transform 500ms ease;
            border-radius: 10px 10px 0 0;
            font-size: 32px;
            color: $white;
        }
    }

    .service-visa-content {
        padding: 30px;

        h3 {
            margin-bottom: 5px;

            a {
                &:hover {
                    color: $theme-color;
                }
            }
        }

        p {
            margin-bottom: 20px;
        }
    }

    &:hover {
        .service-visa-thumb{
            img {
                &:nth-child(1){
                    transform-origin: bottom center;
                    transform: translateX(-100%) translateX(150px) scaleX(0) rotateY(90deg);
                }
                
                &:nth-child(2){
                    transition: transform 500ms ease, top 500ms ease;
                    transform: translateX(0%) translateX(0px) scaleX(1) rotateY(0deg);
                }
            }

            .image-overlay {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
}

.visa-service-section-2 {
    position: relative;
    z-index: 9;

    &::before {
        @include before;
        z-index: -1;
        background-color: #09161d;
        opacity: .8;
    }

    &::after {
        @include before;
        background-color: $white;
        z-index: -1;
        top: 75%;
    }
}

.visa-details-wrapper {
    .visa-sidebar {
        .visa-widget-categories {
            margin-bottom: 30px;
            ul {
                li {
                    padding: 22px 20px;
                    background-color: $white;
                    font-weight: 500;
                    @include transition;
                    border: 1px solid $border-color;
                    border-radius: 0;
                    font-size: 18px;
                    line-height: 1;
                    position: relative;

                    a {
                        color: $header-color;
                    }

                    span {
                        position: absolute;
                        width: 60px;
                        line-height: 55px;
                        height: 100%;
                        content: "";
                        background-color: $theme-color;
                        right: 0;
                        top: 0;
                        text-align: center;
                        color: $white;
                        @include transition;
                    }

                    &:not(:last-child){
                        margin-bottom: 12px;
                    }

                    &:hover {
                        background-color: $theme-color;

                        a {
                            color: $white;
                        }

                        span {
                            background-color: $header-color;
                        }
                    }


                    &.active {
                        background-color: $theme-color;

                        a {
                            color: $white;
                        }

                        span {
                            color: $white;
                        }
                    }
                }
            }
        }

        .visa-sidebar-widget {
            margin-bottom: 30px;
            
            .contact-bg {
                padding: 50px 30px;
                position: relative;
                z-index: 9;

                &::before {
                    @include before;
                    z-index: -1;
                    background: linear-gradient(90deg, #16171A 0.06%, rgba(22, 23, 26, 0) 99.93%);
                }

                h4 {
                    color: $white;
                    margin-bottom: 10px;
                }

                h3 {
                    margin-bottom: 10px;

                    a {
                        color: $white;
                    }
                }

                p {
                    color: $white;
                    margin-bottom: 30px;
                }
            }
        }
    }

    .service-details-items {
        .details-image {
            img {
                @include imgw;
            }
        }

        .details-content{
            margin-top: 30px;

            h3 {
                font-size: 36px;
            }

            .single-icon-items {
                margin-top: 30px;

               .icon-box {
                    @include flex;
                    gap: 15px;
                    border: 1px solid #e1e8e4;
                    padding: 16px 30px;
                    @include transition;
                    
                    &:not(:last-child){
                        margin-bottom: 20px;
                    }

                    i {
                        color: $theme-color;
                        font-size: 18px;
                        @include transition;
                    }

                    &:hover {
                        background-color: $theme-color;

                        i {
                            color: $white;
                        }

                        h6 {
                            color: $white;
                        }
                    }
               }
            }
        }
    }
}