@import '../../common';

.rs-addon-services {
    &.style1 {
        .services-inner {
            padding: 40px 30px;
            background-color: #f7f7f7;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            .media_wrap {
                .image_style  {
                    width: 60px;
                    height: auto;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .numbering {
                flex-shrink: 0;
                -webkit-transition: all 0.5s ease;
                transition: all 0.5s ease;
                position: absolute;
                bottom: -80px;
                right: -8px;
            
                span{
                    -webkit-transition: all 0.5s ease;
                    transition: all 0.5s ease;
                    font-size: 238px;
                    font-weight: 700;
                    line-height: 266px;
                    color: #f0f0f1;
                }
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 32px; 
                    margin-top: 45px;
                    margin-bottom: 15px;
                }
                > * {
                    transition: 0.3s;
                }
            }
            .content_part {
                position: relative;
            }
            &:hover {
                background-color: $primaryColor;
                .media_wrap{
                    svg{
                        animation: foldAnimation linear 0.3s;

                    }
                }
                .btn-part {
                    transition: 0.5s;
                }
                .services-btn {
                    .ser-icon-right{
                        background: #323f7c;
                    }
                }

                .numbering {
                    span {
                        color: #ec6315;
                    }
                }
               
            }
            &.box {
                &:hover {
                    .services-title {
                        .title,.title a {
                            color: #fff;
                        }
                    }
                    .desc-text {
                        color: #fff;
                    }
                    .media_wrap{
                        svg{
                            fill: #fff;
                            path{
                                fill: #fff;
                            }
    
                        }
                    }
                }
                
            }
            &.clip-path-enable {
                clip-path: polygon(0% 0%, 79% 0, 100% 20%, 100% 100%, 0% 100%) !important
            }

        }
    }
    &.style2 {
        .services-inner {
            background-color: #f7f7f7;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            .media_wrap {
                position: absolute;
                top: 2px;
                right: 2px;
                width: 85px;
                height: 80px;
                background-color: #f2f2f2;
                border-radius: 0 2px 0 2px;
                display: flex;
                align-items: center;
                justify-content: center;
                -webkit-transition: all 0.5s ease;
                transition: all 0.5s ease;
                .image_style  {
                    width: 60px;
                    height: 60px;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                padding: 0 30px 0 0;
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px; 
                    margin-bottom: 35px;
                    -webkit-transition: all 0.5s ease;
                    transition: all 0.5s ease;
                }
                > * {
                    transition: 0.3s;
                }
            }
            .desc-text {
                -webkit-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }
            .content_part {
                position: relative;
                padding: 40px 40px;
            }
            &:hover {
                background-color: $oilgas_secondary;
                .media_wrap{
                    background-color: $oilgas_primary;
                    svg{
                        animation: foldAnimation ease 0.5s;

                    }
                }
                .btn-part {
                    -webkit-transition: all 0.5s ease;
                    transition: all 0.5s ease;
                }
                .services-btn {
                    .ser-icon-right{
                        background: #323f7c;
                    }
                }
               
            }
            &.box {
                &:hover {
                    .services-title {
                        .title,.title a {
                            color: #fff;
                        }
                    }
                    .desc-text {
                        color: #E6E6E6;
                    }
                    .media_wrap{
                        svg{
                            fill: $oilgas_secondary;
                        }
                    }
                }
                
            }

        }
    }
    &.style3 {
        .services-inner {
            padding: 45px 60px 70px 40px;
            background-color: #F9FAFB;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            .media_wrap {
                .image_style  {
                    width: 60px;
                    height: 60px;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .numbering {
                flex-shrink: 0;
                -webkit-transition: all 0.5s ease;
                transition: all 0.5s ease;
                position: absolute;
                bottom: 20px;
                right: 20px;
                background-color: #F7F7F7;
                width: 50px;
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 2px;
                border: 1px solid #F0F0F0;
            
                span{
                    -webkit-transition: all 0.5s ease;
                    transition: all 0.5s ease;
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px;
                    color: $manufacture_primary;
                }
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px; 
                    margin-bottom: 20px;
                    color: $titleColor;
                    a {
                        color: $titleColor;
                    }
                }
              
                > * {
                    transition: 0.3s;
                }
            }
            .content_part {
                position: relative;
            }
            &:hover {
                background-color: #ffffff;
                .numbering {
                    background-color: $manufacture_primary;
                    border: 1px solid $manufacture_primary;
                    span{
                        color: #fff;
                    }
                }
            }

        }
    }
    &.style4 {
        .services-inner {
            padding: 40px 30px;
            background-color: #023B4A;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            .media_wrap {
                .image_style  {
                    width: 60px;
                    height: 60px;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                        fill: $energry_primary;
                        path {
                            fill: $energry_primary;
                        }
                    }
                }
            }
            .btn-part {
                transition: color .3s ease-out,background-color .35s ease-out,border-color .35s ease-out;
                visibility: hidden;
                opacity: 0;
                svg {
                    fill: $energry_primary;
                    width: 15px;
                    height: 15px;
                    
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
            }
            .services-title {
                margin-bottom: 40px;
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 32px; 
                    margin: 0;
                    color: #fff;
                }
                > * {
                    transition: 0.3s;
                }
                display: flex;
                align-items: center;
                justify-content: space-between;
                a {
                    width: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                }
                &:hover {
                    .btn-part {
                        visibility: visible;
                        opacity: 1;
                    }
                    .title {
                        color: $oilgas_primary;
                    }
                }

            }
            &.box:hover {
                .btn-part {
                    visibility: visible;
                    opacity: 1;
                }
            }
            .desc-text {
                color: #D4D4D4;
                margin-top: 45px;
            }
            .content_part {
                position: relative;
            }
            &:hover {
                .btn-part {
                    transition: 0.5s;
                }
                &:after {
                    width: 100%;
                    visibility: visible;
                    opacity: 1;
                }

            }
            &:after {
                position: absolute;
                content: "";
                width: 0;
                height: 2px;
                bottom: 0;
                left: 0;
                background-color: $oilgas_primary;
                visibility: hidden;
                opacity: 0;
                transition: all 0.3s ease-in-out;
                border-radius: 0 0 2px 2px;

            }

        }
    }
    &.style5 {
        .services-inner {
            padding: 40px 0 40px 40px;
            border-radius: 4px;
            position: relative;
            .content_part {
                padding: 0 40px 0 0;
                .title {
                    margin-bottom: 20px;
                    font-size: 30px;
                    font-weight: 700;
                    line-height: 40px; 
                    a {
                        color: $labratory_heading;
                        display: inline;
                        background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);
                        background-size: 0 1px;
                        background-repeat: no-repeat;
                        background-position: left 100%;
                        transition: all 0.5s ease;
                        &:hover {
                            background-image: linear-gradient(to bottom, $labratory_primary 0%, $labratory_primary 100%);
                            background-size: 100% 2px!important;
                        }
                    }
                }
                .desc-text {
                    margin-bottom: 20px;
                    font-weight: 500;
                }
            }
            .media_wrap {
                .image_style  {
                    img {
                        border-radius: 4px 0 0 0;
                        transition: all 0.5s ease;
                        width: 100%;
                    }
                }
            }

            .numbering {
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: #fff;
                width: 31px;
                height: 31px;
                bottom: 20px;
                position: absolute;
                font-weight: 500;
                color: $labratory_primary;
            }

            &:after {
                position: absolute;
                content: "";
                width: 0;
                height: 3px;
                bottom: 0;
                left: 0;
                background-color: $labratory_primary;
                visibility: hidden;
                opacity: 0;
                transition: all 0.5s ease;
                border-radius: 0 0 4px 4px;
            }
            &:hover {
                &:after {
                    width: 100%;
                    visibility: visible;
                    opacity: 1;
                }
                .media_wrap {
                    .image_style  {
                        img {
                            border-radius: 100px 0 0 100px;
                        }
                    }
                }

            }
            .btn-part {
                margin-bottom: 25px;
                svg {
                    fill: $bodyColor;
                    width: 26px;
                    height: 12px;
                    
                }
                svg {
                    
                    transition: $transition;
                }
            }
        }
    }
    &.style6 {
        position: relative;
        .media_wrap {
            position:absolute;
            left: 40px;
            top: 20px;
            z-index: 3;
            .image_style  {
                width: 60px;
                height: 60px;
                img {
                    -webkit-transform-style: preserve-3d;
                    transition: -webkit-transform 1s ease-in;
                    transition: -mz-transform 1s ease-in;
                    transition: transform 1s ease-in;
                    
                }
            }
            .icon_style  {
                svg {
                    width: 60px;
                    height: 60px;
                }
            }
        }
        .services-inner {
            padding: 35px 60px 70px 40px;
            background-color: #fff;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            .media_wrap {
                .image_style  {
                    width: 60px;
                    height: 60px;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .numbering {
                flex-shrink: 0;
                transition: 0.5s;
                position: absolute;
                bottom: 20px;
                right: 20px;
                background-color: $page_color;
                width: 50px;
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 2px;
                border: 1px solid $page_color;
            
                span{
                    transition: $transition;
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px;
                    color: $primaryColor;
                }
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px; 
                    margin-bottom: 20px;
                    color: $titleColor;
                    a {
                        color: $titleColor;
                    }
                }
              
                > * {
                    transition: 0.3s;
                }
            }
            .content_part {
                position: relative;
            }
            &:hover {
                background-color: #ffffff;
                .numbering {
                    background-color: $primaryColor;
                    border: 1px solid $primaryColor;
                    span{
                        color: #fff;
                    }
                }
            }

            &.clip-path-enable {
                clip-path: polygon(0% 0%, 86% 0, 100% 20%, 100% 100%, 0% 100%) !important;
            }

        }
    }
    &.style7 {
        .services-inner {
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            display: flex;
            gap: 20px;
            .media_wrap {
                -webkit-transition: all 0.5s ease;
                transition: all 0.5s ease;
                flex-shrink: 0;
                .image_style  {
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                padding: 0 30px 0 0;
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 32px;
                    margin-bottom: 18px;
                    -webkit-transition: all 0.5s ease;
                    transition: all 0.5s ease;
                }
                > * {
                    transition: 0.3s;
                }
            }
            .desc-text {
                -webkit-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }
            .content_part {
                position: relative;
            }
            &:hover {
                .media_wrap{
                    svg{
                        animation: foldAnimation ease 0.5s;

                    }
                }
                .btn-part {
                    -webkit-transition: all 0.5s ease;
                    transition: all 0.5s ease;
                }
                .services-btn {
                    .ser-icon-right{
                        background: #323f7c;
                    }
                }
            }
        }
    }
    &.style8 {
        .services-inner {
            background-color: #fff;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            .media_wrap {
                margin-bottom: 20px;
                .image_style  {
                    width: 60px;
                    height: 60px;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .step-number {
                display: flex;
                align-items: center;
                gap: 10px;
                .step-title {
                    font-size: 36px;
                    line-height: 48px;
                    font-weight: 400;
                    text-transform: uppercase;
                    color: #e7e9ec;
                }
            }
            .numbering-step {
                flex-shrink: 0;
                transition: 0.5s;
                background-color: $labratory_primary;
                width: 42px;
                height: 48px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 100px;
                span{
                    transition: $transition;
                    font-size: 20px;
                    font-weight: 400;
                    line-height: 32px;
                    color: $whiteColor;
                }
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px; 
                    margin-bottom: 20px;
                    margin-top: 20px;
                    color: $titleColor;
                    a {
                        color: $titleColor;
                    }
                }
              
                > * {
                    transition: 0.3s;
                }
            }
            .content_part {
                position: relative;
                .desc-text {
                    color: $bodyColor;
                }
            }
            &:hover {
                background-color: #ffffff;
                
            }

            &.clip-path-enable {
                clip-path: polygon(0% 0%, 86% 0, 100% 20%, 100% 100%, 0% 100%) !important;
            }

        }
    }
    &.style9 {
        position: relative;
        .media_wrap {
            .image_style  {
                img {
                    -webkit-transform-style: preserve-3d;
                    transition: -webkit-transform 1s ease-in;
                    transition: -mz-transform 1s ease-in;
                    transition: transform 1s ease-in;
                }
            }
            .icon_style  {
                svg {
                    width: 60px;
                    height: 60px;
                }
            }
        }
        .services-inner {
            padding: 40px 60px 40px 40px;
            background-color: #fff;
            -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
            position: relative;
            border-radius: 2px;
            .media_wrap {
                .image_style  {
                    width: 60px;
                    height: 60px;
                    img {
                        -webkit-transform-style: preserve-3d;
                        transition: -webkit-transform 1s ease-in;
                        transition: -mz-transform 1s ease-in;
                        transition: transform 1s ease-in;
                        
                    }
                }
                .icon_style  {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }
            }
            .numbering {
                transition: $transition;
                font-size: 60px;
                font-weight: 700;
                line-height: 1;
            }
            .services-btn {
                display: inline-block;
                svg {
                    path {
                        fill: $primaryColor;
                    }
                    width: 15px;
                    height: 15px;
                    
                }
                .ser-icon-right{
                    background: #ebb88f;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    transition: 0.3s;
                    &:before{
                        content: "";
						position: absolute;
						width: 1px;
						height: 30px;
						background:#ffffff66;
						left: -10px;
                    }
                }
                svg {
                    top:1px
                }
                svg {
                    
                    transition: $transition;
                }
                &:hover {
                    svg {
                        transform: translateX(15deg);
                       
                    }
                }
            }
            .services-title {
                .title {
                    font-size: 24px;
                    font-weight: 700;
                    line-height: 36px; 
                    margin-bottom: 20px;
                    color: $titleColor;
                    a {
                        color: $titleColor;
                    }
                }
              
                > * {
                    transition: 0.3s;
                }
            }
            .content_part {
                position: relative;
            }

            &.clip-path-enable {
                clip-path: polygon(0% 0%, 86% 0, 100% 20%, 100% 100%, 0% 100%) !important;
            }

        }
    }
}


@media only screen and (max-width:767px) {
    .rs-addon-services .services-inner .media_wrap img {
        width: 100%;
    }
}

@-webkit-keyframes pulse-border {
    0% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
      opacity: 0.5;
    }
  }
  @keyframes pulse-border {
    0% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
      opacity: 0.5;
    }
  }


// Style 10

@keyframes foldAnimation {
    0% {
      transform: rotateY(0deg);
    }
    50% {
      transform: rotateY(90deg);
    }
    100% {
      transform: rotateY(0deg);
    }
}


