@import '../../../scss/base';

// Portfolio Style1
.rt-portfolio-style1 {   

    .portfolio-item {
        position: relative;
        overflow: hidden;
        background: #fff;
        .portfolio-img a img {
            width: 100%;
        }

        .portfolio-content {
            padding: 25px;

            .vertical-middle {
                position: relative;
                z-index: 9;
            }

            .p-category {
                color: #999999;
                font-size: 14px;
                margin-bottom: 5px;

                a {
                    color: #999999;
                }
            }

            .vertical-middle {
                display: table;
                height: 100%;
                width: 100%;
            }

            .vertical-middle-cell {
                display: table-cell;
                vertical-align: middle;
            }
        }

        .portfolio-text {
            padding-top: 15px;
        }

        .portfolio-img img {}

        .p-link {
            transition: all 0.3s ease 0s;
            display: inline-block;
            font-size: 19px;
            width: 52px;
            line-height: 54px;
            height: 52px;
            text-align: center;
            border-radius: 50%;
            background: #fff;

            i {
                margin-left: 2px;
            }

            &:hover {
                background-color: $primaryColor;
                color: #fff;
            }
        }

        .p-title {
            font-size: 18px;
            line-height: normal;
            margin-bottom: 0;
            font-weight: 700;
            line-height: 27px;
        }

        .p-desc {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 0;
            margin-top: 10px;
        }

    }

    .read-btn {
        background: #ffffff;
        border-top: 1px solid #f1f1f1;
        padding: 16px 20px;
        display: block;
        -webkit-transition: all 0.3s ease 0s;
        -moz-transition: all 0.3s ease 0s;
        -ms-transition: all 0.3s ease 0s;
        -o-transition: all 0.3s ease 0s;
        transition: all 0.3s ease 0s;
        font-size: 14px;
        font-weight: 700;
        position: relative;
        z-index: 2;
        color: #999;

        i {
            margin-left: 10px;
            font-weight: 300;

        }

        &:before {
            content: "";
            position: absolute;
            background-color: $secondaryColor;
            width: 100%;
            height: 0;
            -webkit-transition: all 0.3s ease 0s;
            -moz-transition: all 0.3s ease 0s;
            -ms-transition: all 0.3s ease 0s;
            -o-transition: all 0.3s ease 0s;
            transition: all 0.3s ease 0s;
            left: 0;
            top: 0;
            z-index: -1;
        }

        span.f-right {
            float: right;
        }
    }

    .grid-item {
        &:hover {
            .read-btn {
                color: #fff;

                &:before {
                    height: 100%;
                    bottom: 0;
                }
            }
        }
    }

    .slick-slider {
        .slick-arrow {
            width: 60px;
            height: 55px;
            border-radius: 0;
            line-height: 60px;
            bottom: -172px;
            top: -84px;

            &:before {
                color: #fff;
            }

        }

        .slick-prev {
            left: 88.5%;

            &:hover {
                background: #fff;

                &:before {
                    color: $primaryColor;
                }
            }
        }

        .slick-next {
            right: 1%;
            background: #fff;
            box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, .04);

            &:before {
                color: $primaryColor;
            }

            &:hover {
                background: $primaryColor;

                &:before {
                    color: #fff;
                }
            }
        }
    }

}

.rt-portfolio-style2 {
    .portfolio-item {
        position: relative;
        overflow: hidden;
        z-index: 1;

        img {
            width: 100%;
        }

        &:before {
            content: "";
            position: absolute;
            background-image: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0.70196) 0%, rgba(0, 0, 0, 0) 100%);
            background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.70196) 0%, rgba(0, 0, 0, 0) 100%);
            background-image: -ms-linear-gradient(90deg, rgba(0, 0, 0, 0.70196) 0%, rgba(0, 0, 0, 0) 100%);
            width: 100%;
            height: 100%;
            -webkit-transition: all 0.3s ease 0s;
            -moz-transition: all 0.3s ease 0s;
            -ms-transition: all 0.3s ease 0s;
            -o-transition: all 0.3s ease 0s;
            transition: all 0.3s ease 0s;
            left: 0;
            bottom: 0;
            z-index: 1;
        }

        &:after {
            content: "";
            position: absolute;
            background-color: $primaryColor;
            opacity: 0.902;
            clip-path: polygon(100% 0, 100% 100%, 44.5% 100%, 0% 65%, 0 0);
            width: 100%;
            height: 0;
            -webkit-transition: all 0.3s ease 0s;
            -moz-transition: all 0.3s ease 0s;
            -ms-transition: all 0.3s ease 0s;
            -o-transition: all 0.3s ease 0s;
            transition: all 0.3s ease 0s;
            left: 0;
            top: 0;
            z-index: 1;
        }

        .portfolio-content {
            padding: 0;
            position: absolute;
            left: 50px;
            top: auto;
            bottom: 20px;
            z-index: 3;
            -webkit-transition: all 0.3s ease 0s;
            -moz-transition: all 0.3s ease 0s;
            -ms-transition: all 0.3s ease 0s;
            -o-transition: all 0.3s ease 0s;
            transition: all 0.3s ease 0s;

            .p-title {
                font-size: 24px;
                font-weight: 700;
                line-height: 35px;

                span {
                    font-size: 14px;
                    font-weight: 400;
                    display: block;
                }

                bottom: -100px;
                left: 25px;

                span,
                a {
                    color: #ffffff;
                }

                a:hover {
                    color: $primaryColor;
                }
            }

        }

        .pf-btn {
            color: #083d59;
            background: #ffffff;
            width: 60px;
            height: 60px;
            font-size: 16px;
            line-height: 60px;
            text-align: center;
            border-radius: 50%;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            -o-border-radius: 50%;
            position: absolute;
            z-index: 3;
            left: 15%;
            bottom: 12.5%;
            transform: scale(0);
            -webkit-transform: scale(0);
            -moz-transform: scale(0);
            -ms-transform: scale(0);
            -o-transform: scale(0);
            -webkit-transition: all 0.3s ease 0s;
            -moz-transition: all 0.3s ease 0s;
            -ms-transition: all 0.3s ease 0s;
            -o-transition: all 0.3s ease 0s;
            transition: all 0.3s ease 0s;
        }

        &:hover {
            .portfolio-content {
                top: 10%;
                bottom: auto;
            }

            .pf-btn {
                transform: scale(1);
            }

            &:before {
                background-image: unset;
                background: #ffa84b;
                opacity: 0.902;
                clip-path: polygon(0 64.6%, 0% 100%, 45.5% 100%);
            }

            &:after {

                visibility: visible;
                height: 100%;
            }
        }
    }

    .slick-slider .slick-arrow {
        background: white;
        border: 2px solid #f0f0f0;
        border-radius: unset;
        top: -80px;
        left: unset;
        padding: 23px 23px;

        &::before {
            color: #083d59;
            font-size: 14px;
            top: -15px;
        }

        &:hover {
            background: #ffa84b;
            border: 2px solid #ffa84b;
        }
    }

    .slick-slider .slick-prev {
        right: 33.5%;
    }

    .slick-slider .slick-next {
        right: 30.0%;
    }

}

.rt-portfolio-style3 {
    .portfolio-item {
        position: relative;
        overflow: hidden;
        border-radius: 0;

        .portfolio-img {
            position: relative;
            z-index: 1;
            overflow: hidden;

            &:before {
                content: "";
                position: absolute;
                background: #bb0b0b;
                opacity: 0.902;
                width: 100%;
                height: 0;
                left: 0;
                top: 0;
                z-index: 1;
                -webkit-transition: all 0.3s ease 0s;
                -moz-transition: all 0.3s ease 0s;
                -ms-transition: all 0.3s ease 0s;
                -o-transition: all 0.3s ease 0s;
                transition: all 0.3s ease 0s;
            }

            img {
                width: 100%;
                -webkit-transition: 1.3s all ease;
                transition: 1.3s all ease;
                border-radius: 0px;
            }

            .p-link {
                display: none !important;
                top: 20px;
                right: 20px;
                display: inline-block;
                font-size: 32px;
                color: #ffffff;
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;
                opacity: 0;
                z-index: 10;

                i {
                    margin-left: 2px;
                    display: none;
                }
            }
        }

        .portfolio-content {
            position: relative;
            padding: 20px 0px 0;
            opacity: 1;
            z-index: 1;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: left;
            width: 100%;
            border-top: 0;

            a {
                color: $secondaryColor;
            }

            h4 {
                margin-bottom: 0;
                font-size: 24px;
                -webkit-transform: translateY(0);
                transform: translateY(0);
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;
                font-weight: 500 !important;
                line-height: 30px !important;

                a {
                    &:hover {
                        color: $primaryColor;
                    }
                }
            }

            p {
                margin-bottom: 0;
                color: $secondaryColor;
                -webkit-transform: translateY(0px);
                transform: translateY(0px);
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;

                a {
                    font-size: 14px;
                }
            }
        }

        a.pf-btn2 {
            color: #ffffff;
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
            padding: 15px 30px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            display: inline-block;
            position: absolute;
            z-index: 2;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%) scale(0);
            -webkit-transform: translate(-50%, -50%) scale(0);
            -moz-transform: translate(-50%, -50%) scale(0);
            -ms-transform: translate(-50%, -50%) scale(0);
            -o-transform: translate(-50%, -50%) scale(0);

        }


        &:hover {
            h4 {
                a {
                    text-decoration: underline !important;
                }
            }

            .portfolio-img {
                &:before {
                    height: 100%;
                }
            }

            .portfolio-img a.pf-btn2 {
                transform: translate(-50%, -50%) scale(1);
                -webkit-transform: translate(-50%, -50%) scale(1);
                -moz-transform: translate(-50%, -50%) scale(1);
                -ms-transform: translate(-50%, -50%) scale(1);
                -o-transform: translate(-50%, -50%) scale(1);
            }

        }
    }
}

.rt-portfolio-style4 {
   

    .portfolio-item {
        position: relative;
        overflow: hidden;
        border-radius: 0;

        .portfolio-img {

            position: relative;
            z-index: 1;
            overflow: hidden;

            &:before {
                content: "";
                position: absolute;
                background: #086ad8;
                opacity: 0.902;
                width: 100%;
                height: 0;
                left: 0;
                bottom: 0;
                z-index: 1;
                -webkit-transition: all 0.3s ease 0s;
                -moz-transition: all 0.3s ease 0s;
                -ms-transition: all 0.3s ease 0s;
                -o-transition: all 0.3s ease 0s;
                transition: all 0.3s ease 0s;
                clip-path: polygon(0% -65%, 0% 100%, 99% 100%);
            }

            img {
                width: 100%;
                -webkit-transition: 1.3s all ease;
                transition: 1.3s all ease;
                border-radius: 0px;
            }

            .p-link {
                display: none !important;
                top: 20px;
                right: 20px;
                display: inline-block;
                font-size: 32px;
                color: #ffffff;
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;
                opacity: 0;
                z-index: 10;

                i {
                    margin-left: 2px;
                    display: none;
                }
            }
        }

        .portfolio-content {
            position: relative;
            padding: 35px 0px 0;
            opacity: 1;
            z-index: 1;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: left;
            width: 100%;
            border-top: 0;

            a {
                color: $secondaryColor;
            }

            h4 {
                margin-bottom: 0;
                font-size: 24px;
                -webkit-transform: translateY(0);
                transform: translateY(0);
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;
                font-weight: 500 !important;
                line-height: 30px !important;

                a {
                    &:hover {
                        color: $primaryColor;
                    }
                }
            }

            p {
                margin-bottom: 0;
                color: $secondaryColor;
                -webkit-transform: translateY(0px);
                transform: translateY(0px);
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;

                a {
                    font-size: 14px;
                }
            }
        }

        .portfolio-content {
            transition: 0.4s;
            opacity: 0;
            display: none;
            position: absolute;
            left: 40px;
            bottom: 40px;
            z-index: 5;

            .p-title {
                a {
                    color: #ffffff;
                }

                margin-bottom: 0;
                max-width: 255px;
            }

            .p-category {
                .separator {
                    color: #fff;
                }

                a {
                    color: #ffffff;
                    font-size: 14px;
                    font-weight: 400;


                }

                margin-bottom: 0;
            }
        }

        a.pf-btn2 {
            color: #ffffff;
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
            padding: 15px 16px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            display: inline-block;
            position: absolute;
            z-index: 6;
            right: 30px;
            bottom: 30px;
            transform: translate(-50%, -50%) scale(0);
            -webkit-transform: translate(-50%, -50%) scale(0);
            -moz-transform: translate(-50%, -50%) scale(0);
            -ms-transform: translate(-50%, -50%) scale(0);
            -o-transform: translate(-50%, -50%) scale(0);
            transform: translate(0%, 0%) scale(0);
            border-radius: 100px;
            background: #ffffff;
            width: 50px;
            height: 50px;

            i {
                color: #333333;
                position: relative;
                left: -3px;
            }

            &:hover {
                background: #086ad8;

                i {
                    color: #fff;
                }
            }

        }

        &:hover {
            h4 {
                a {
                    text-decoration: underline !important;
                }
            }

            .portfolio-img {
                &:before {
                    height: 100%;
                    display: block;
                }

                .portfolio-content {
                    display: block;
                    opacity: 1;
                }

            }

            .portfolio-img a.pf-btn2 {
                transform: translate(0%, 0%) scale(1);
                -webkit-transform: translate(0%, 0%) scale(1);
                -moz-transform: translate(0%, 0%) scale(1);
                -ms-transform: translate(0%, 0%) scale(1);
                -o-transform: translate(0%, 0%) scale(1);
            }

        }
    }
}

.rt-portfolio-style5 {
    .portfolio-item {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        border:1px solid #EDEFF3;
        padding:35px;
        .portfolio-img {
            position: relative;
            z-index: 1;
            overflow: hidden;
            border-radius: 15px;
            &:before {
                position: absolute;
                content: "";
                height: 100%;
                width: 133%;
                background: $primaryColor;
                opacity: .5;
                left: 0;
                top: 0;
                transform: rotate(-54deg) translateY(-162%);
                transition: 0.5s;
                z-index: 0;

            }
            &:after{
                position: absolute;
                content: "";
                height: 100%;
                width: 133%;
                background: $primaryColor;
                opacity: .5;
                left: 0;
                top: 0;
                transform: rotate(-45deg) translateY(126%);
                transition: 0.5s;
                z-index: 0;
            }
            

            img {
                width: 100%;
                -webkit-transition: 1.3s all ease;
                transition: 1.3s all ease;
                border-radius: 0px;
            }

            a.pf-btn2{
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) scale(0);
                z-index: 5;
                background: $primaryColor;
                border-radius: 50%;
                width: 55px;
                height: 55px;
                line-height: 55px;
                text-align: center;
                i{
                    color:#fff
                }
                
            }
            &:hover{
                &:before{
                    transform: rotate(-54deg) translateY(-100%);
                }
                &:after{
                    transform: rotate(-54deg) translateY(30%);
                }
            }
        }

        .portfolio-content {
            position: relative;
            padding: 35px 0px 0;
            opacity: 1;
            z-index: 1;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: left;
            width: 100%;
            border-top: 0;

            a {
                color: $secondaryColor;
            }
            .p-title{
                line-height: 28px;
                margin-bottom: 8px;
            }

            h4 {
                margin-bottom: 0;
                font-size: 24px;
                -webkit-transform: translateY(0);
                transform: translateY(0);
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;
                font-weight: 500 !important;
                line-height: 30px !important;

                a {
                    &:hover {
                        color: $primaryColor;
                    }
                }
            }

            p {
                margin-bottom: 0;
                color: $bodyColor;
                -webkit-transform: translateY(0px);
                transform: translateY(0px);
                -webkit-transition: 0.6s all ease;
                transition: 0.6s all ease;

                a {
                    font-size: 14px;
                }
            }
        }
        &:hover {
            h4 {
                a {
                    text-decoration: underline !important;
                }
            }
            .portfolio-img {
                &:before {
                    height: 100%;
                    display: block;
                }

                .portfolio-content {
                    top: 0;
                    display: block;
                    opacity: 1;
                }
            }
            .portfolio-img a.pf-btn2 {
                transform: translate(-50%, -50%) scale(1);
            }               

        }
    }
}
.rts-btn{
    padding: 17px 30px;
    min-width: max-content;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    border-radius: 15px;
    background: $primaryColor;
    color:#fff;
    &:hover{
        background-color: $titleColor;
    }   
}
.rt-portfolio-style6 {
    &.swiper{
        overflow: visible !important;
        .swiper-pagination-frac{
            top:-19%;
            right:75px;
            font-weight: 700;
            position: absolute;
            max-width: max-content;
            left:unset;
            .swiper-pagination-current{
                color: $primaryColor;
            }
        }
    }
  .bg-right-gallery{
     background: #181c27;
     padding: 102px 50px 60px;
     border-radius: 15px;
     position: relative;
     .shape--bg{
        position: absolute;
        top:0;
        right: 0;
     }
     .rts-btn:hover{
        background: #FFECEC;
        color: $titleColor;
     }
  }
  .p-title{
    margin-top: 30px;
    a{
        font-size: 30px;
        font-family: $titleFont;
        font-weight: 700;
        color: #fff;
    }
  }
  .p-category{
    a{
        font-size: 16px;
        color: #fff;
    }
  }
  p.disc{
    margin-top: 16px;
    color: #B3B7C1;
    margin-bottom: 45px;
    line-height: 26px;
    margin-top: 20px;
  }

  .thumbnail-gallery{
    img{
        border-radius: 15px;
    }
  }
  .swiper-button-next{
    top: -16%;
    right: 0px;
  }
 .swiper-button-prev {
    top: -16%;
    right: 135px;
    left: auto;
}
.swiper-button-prev,
.swiper-button-next{
    background: #fff;
    box-shadow: 0px 10px 20px rgba(24, 16, 16, .06);
    border-radius: 8px;
}   
  
}

.rt-portfolio-style7{
    .rts-business-case-s-2{
        position: relative;
        overflow: hidden;
        z-index: 1;
        border-radius: 20px;
        width: 100%;    
        transition: 0.3s;
        .shape--bg{
            position: absolute;            
            height: 100%;
            width: 100%;           
            z-index: 1;
            background-repeat: no-repeat;
            transition: 0.3s;
            top: -75%;
            right: -55%;
            opacity: 0;
        }
        .thumbnail{
            border-radius: 20px;
            overflow: hidden;
            img{
                overflow: hidden;
                transition: .3s;
                border-radius: 20px;
            }
        }
        .inner{
            padding: 35px;
            text-align: center;
            position: absolute;
            bottom: 35px;
            left: 50%;
            transform: translateX(-50%);
            width: 84%;
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            z-index: 10;        
            .icon{
                position: absolute;
                height: 58px;
                width: 58px;
                bottom: -48px;
                left: -36px;
                transition: 0.3s;
                opacity: 0;
            }
            span{
                color: #5D666F;
                font-size: 16px;            
                position: relative;
            
            }
            .title{
                margin-bottom: 2px;
                transition: .3s;
                font-weight: 700;
                font-size: 24px;
                line-height: 32px;
                color: #1C2539;    
                       
            }
        }
        &:hover{
            .thumbnail{
                img{
                    transform: scale(1.1);
                }
            }
            &::after{
                top: -16%;
                right: -56%;
            }
            .inner{
                span{
                    &::after{
                        bottom: -55px;
                        left: -111px;
                    }
                }
            }
        }

        &:hover{
            .shape--bg{
                top: -28%;
                right: -55%;
                opacity: 1;
            }
            .inner .icon{
                bottom: -17px;
                left: -17px;
                opacity: 1;
            }
        }
    }
}
.rt-portfolio-style8 {
    .rts-business-case-s-2{
        position: relative;
        overflow: hidden;
        z-index: 1;
        border-radius: 5px;
        width: 100%;    
        transition: 1.3s;      
        .thumbnail{
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            img{
                overflow: hidden;
                transition: 1.3s;
                border-radius: 5px;
            }
            i{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) scale(0);
                height: 55px;
                width: 55px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: $primaryColor;
                background: #fff;
                z-index: 5;
                border-radius: 50%;
                transition: 0.3s;
            }
            
        }
        .inner{
            position: absolute;
            background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
            bottom: -30px;
            left: 30px;
            right: 30px;
            display: block;
            width: 90%;
            padding: 33px;
            opacity: 0;
            transition: 1s;   
            .icon{
                position: absolute;
                height: 58px;
                width: 58px;
                bottom: -48px;
                left: -36px;
                transition: 0.3s;
                opacity: 0;
            }
            span{
                color: #5D666F;
                font-size: 16px;            
                position: relative;
            
            }
            .title{
                margin-bottom: 2px;
                transition: .3s;
                font-weight: 700;
                font-size: 24px;
                line-height: 32px;
                color: #1C2539;    
                       
            }
        }
        &:hover{
            .thumbnail{
                img{
                    transform: scale(1.15);
                }
                i{
                    transform: translate(-50%, -50%) scale(1);
                }
            }
            &::after{
                top: -16%;
                right: -56%;
            }
            .inner{
                span{
                    &::after{
                        bottom: -55px;
                        left: -111px;
                    }
                }
            }
            
        }
    }
}
