@use "../utilities" as *;

/**----------------------------------------
START: Theme Project CSS
----------------------------------------*/
.project-section {
    overflow: hidden;
    .project-container {
        max-width: 1880px;
        margin: 0 auto;
        width: 100%;
        padding: 0 15px;
    }
}

.project-filter {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 20px;
    list-style: none;
    li {
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        padding: 5px 20px;
        border-radius: 30px;
        @include breakpoint(md) {
            padding: 5px 15px;
        }
        &:not(:last-of-type) {
            margin-right: 30px;
            @include breakpoint(md) {
                margin-right: 15px;
            }
        }
        &.active {
            background-color: var(--mt-color-theme-primary);
            color: var(--mt-color-common-white);
        }
    }
}

.filter-items > div {
    padding: 15px;
}
.project-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
    .overlay {
        background-color: rgba(0, 1, 3, 0.63);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        visibility: hidden;
        opacity: 0;
        @include transition(all 0.3s ease-in-out);
    }
    img {
        width: 100%;
        object-fit: cover;
    }
    .project-content {
        background-color: rgba(23, 92, 255, 0.8);
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        padding: 50px 20px 30px;
        width: calc(100% - 60px);
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
        visibility: hidden;
        opacity: 0;
        @include transition(all 0.3s ease-in-out);
        @include breakpoint(md) {
            width: calc(100% - 30px);
            padding: 50px 10px 30px;
        }
        .title {
            color: var(--mt-color-common-white);
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 0;
            @include breakpoint(md) {
                font-size: 18px;
            }
            span {
                font-family: var(--mt-ff-body);
                font-size: 16px;
                font-weight: 400;
                margin-top: 10px;
                display: block;
                @include breakpoint(md) {
                    font-size: 15px;
                }
            }
        }
        .project-btn {
            font-size: 40px;
            color: var(--mt-color-theme-secondary);
            position: relative;
            z-index: 1;
            transform: rotate(45deg);
            margin: 0 20px 20px 0;
            &:before {
                background-color: #8389da;
                content: "";
                height: 45px;
                width: 45px;
                border-radius: 50%;
                position: absolute;
                top: 0;
                left: 20px;
                z-index: -1;
            }
        }
    }
    &:hover {
        .overlay {
            visibility: visible;
            opacity: 1;
        }
        .project-content {
            visibility: visible;
            opacity: 1;
            bottom: 40px;
            @include breakpoint(md) {
                bottom: 30px;
            }
        }
    }
}

// Project 2
.project-section-2 {
    .custom-container {
        max-width: 1875px;
        width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }
    .project-item {
        overflow: hidden;
        .overlay {
            display: none;
        }
        .project-content {
            width: 100%;
            bottom: -20px;
            .project-btn {
                color: var(--mt-color-common-white);
                &:before {
                    background-color: rgba(255, 255, 255, 0.2);
                }
            }
        }
        &:hover {
            .project-content {
                bottom: 0;
            }
        }
    }
}

.project-carousel {
    padding-bottom: 80px;
}

// Project 3

.project-3{
    position: relative;
    z-index: 1;
    .bg-color{
        background-color: var(--mt-color-border-3);
        width: 100%;
        height: 45%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        @include breakpoint(sm){
            height: 100%;
        }
    }
    .project-filter li{
        color: var(--mt-color-common-white);
    }
}

/* Project details */

.project-details-thumb{
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 40px;
    img{
        width: 100%;
        @include breakpoint(sm){
            height: 500px;
            object-fit: cover;
        }
    }
    .shapes{
        .shape{
            background-color: var(--mt-color-theme-primary);
            height: 180px;
            width: 180px;
            position: absolute;
            top: -110px;
            right: -23px;
            border-radius: 50%;
            &.shape-2{
                background-color: var(--mt-color-theme-secondary);
                top: -50px;
                right: -100px;
            }
            &.shape-3{
                background-color: var(--mt-color-common-black);
                height: 400px;
                width: 400px;
                top: auto;
                bottom: -95px;
                right: -48px;
            }
        }
    }
    .project-details-list{
        position: absolute;
        bottom: 60px;
        right: 50px;
        list-style: none;
        li{
            font-family: var(--mt-ff-body);
            color: var(--mt-color-common-white);
            font-size: 17px;
            font-weight: 500;
            line-height: 1;
            @include flex-vertical-center;
            column-gap: 10px;
            span{
                font-weight: 400;
            }
            &:not(:last-of-type){
                margin-bottom: 15px;
            }
            i{
                color: var(--mt-color-theme-secondary);
            }
            &:nth-child(2){
                i{
                    color: var(--mt-color-theme-primary);
                }
            }
            &:nth-child(3){
                i{
                    color: var(--mt-color-common-pink);
                }
            }
            &:nth-child(4){
                i{
                    color: var(--mt-color-common-green);
                }
            }
        }
    }
}

.project-details-content{
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid var(--mt-color-border-1);
    @include breakpoint(md){
        margin-bottom: 50px;
        padding-bottom: 50px;
    }
    .title{
        font-weight: 700;
        margin-bottom: 15px;
    }
    p{
        &:last-child{
            margin-bottom: 0;
        }
    }
}

.project-skill-wrap{
    .left-content{
        padding-right: 60px;
        @include breakpoint(md){
            padding-right: 0;
        }
        .title{
            font-weight: 700;
            margin-bottom: 20px;
        }
        p{
            @include breakpoint(md){
            max-width: 500px;
            width: 100%;
            }
        }
        .list-wrap{
            display: flex;
            align-items: center;
            column-gap: 20px;
            margin: 30px 0;
            ul{
                list-style: none;
                li{
                    font-family: var(--mt-ff-body);
                    font-size: 15px;
                    font-weight: 400;
                    line-height: 1;
                    &:not(:last-of-type){
                        margin-bottom: 20px;
                    }
                    i{
                        color: var(--mt-color-theme-secondary);
                        margin-right: 10px;
                    }
                    &:nth-child(2){
                        i{
                            color: var(--mt-color-common-pink);
                        }
                    }
                }
            }
            .list-2{
                li{
                    i{
                        color: var(--mt-color-theme-primary);
                    }
                    &:nth-child(2){
                        i{
                            color: var(--mt-color-common-green);
                        }
                    }
                }
            }
        }
        a{
            margin-top: 20px;
        }
    }
}

.project-details-img{
    height: 100%;
    img{
        width: 100%;
        height: 100%;
    }
}

/* !END: Theme Project CSS */
