/* project-box start ---------------------------*/
.line-bottom {
    border-bottom: 1px solid $title-color;

    @include lg {
        border-bottom: none;
    }
}

.project-slider1 {
    .slider-pagination {
        position: relative;

        &:after,
        &:before {
            content: "";
            position: absolute;
            top: 50%;
            width: 410px;
            height: 1px;
            background-color: $title-color;

            @include sm {
                display: none;
            }
        }

        &:before {
            margin-left: -27rem;
        }

        &:after {
            margin-left: 1.5rem;
        }
    }

    .swiper-pagination-bullets {
        margin: 45px 0 8px 0;

        .swiper-pagination-bullet {
            display: inline-block;
            --swiper-pagination-bullet-size: 10px;
            --swiper-pagination-bullet-horizontal-gap: 15px;
            margin: 5px 10px;
            opacity: 1;
            background-color: #7A8392;
            color: #7A8392;
            border-radius: 50%;
            position: relative;
            cursor: pointer;

            &:before {
                inset: -5px;
                border: 1px solid #7A8392;
            }

            &.swiper-pagination-bullet-active {
                background-color: $title-color;

                &:before {
                    border-color: $title-color;
                }
            }
        }
    }
}

.project-title-area {
    background-color: $white-color;
    border: 1px solid $smoke-color;
    box-shadow: 0px 10px 50px 10px #E8E8E8;
    border-radius: 30px;
    padding: 40px;

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

    .sec-title {
        font-weight: 600;

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

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

    .project-line {
        padding-left: 80px;

        @include vxs {
            padding-left: 20px;
        }
    }

}

.project-box {
    background-color: $white-color;
    box-shadow: 0px 4px 16px 3px #E8E8E8;
    border-radius: 30px;
    padding: 30px;

    .box-img {
        border-radius: 20px;
        margin-bottom: 30px;

        img {
            width: 100%;
            border-radius: 20px;
        }
    }

    .box-title {
        margin-bottom: 6px;
    }

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

.project-btn {
    @include sm {
        text-align: center;
    }
}

/* project-box end ---------------------------*/

/* project card start ----------------------------*/
.project-area {
    position: relative;
    background-color: #0A0A0A;
}

.project-card {
    position: relative;
    --space: 40px;
    overflow: hidden;

    &.style2 {
        @include xs {
            --space: 30px;
        }
        @include vxs {
            --space: 20px;
        }
        .project-content {
            position: absolute;
            top: var(--space);
            left: var(--space);
            width: calc(100% - var(--space)*2);
            height: calc(100% - var(--space)*2);
            z-index: 2;
            background: $theme-color;
            display: flex;
            justify-content: end;
            flex-direction: column;
            padding: 30px;
            transform: scale(0);
            transition: 0.4s ease-in-out;
        }

        &:hover {
            .project-content {
                transform: scale(1);
            }
        }
    }

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

    &_wrapp {
        &:nth-child(2) {
            margin-top: 60px;

            @include sm {
                margin-top: 30px;
            }
        }

        &:nth-child(3) {
            margin-top: 120px;

            @include lg {
                margin-top: 0px;
            }

            @include sm {
                margin-top: 30px;
            }
        }
    }

    .box-title {
        color: $white-color;
        width: 200px;
        border-bottom: 1px solid $white-color;
        margin-bottom: 10px;
        padding-bottom: 15px;

        a {
            color: inherit;
        }
    }

    .box-subtitle {
        color: $white-color;
        font-size: 14px;
        margin-bottom: -0.3rem;
    }

    .project-content {
        position: absolute;
        left: var(--space);
        bottom: -40px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .project-icon {
        position: absolute;
        top: 30px;
        right: 30px;
    }

    .icon-btn {
        border: 1px solid $white-color;
        color: $white-color;

        &:hover {
            background-color: $white-color;
            color: $title-color;
        }
    }

    &:hover {
        .project-content {
            opacity: 1;
            bottom: var(--space);
            visibility: visible;
        }
    }
}

.th-btn.project-btn {
    color: $white-color;
    border-radius: 50%;
    padding: 31px 35px;
    width: 266px;
    position: absolute;
    bottom: 120px;

    @include lg {
        position: relative;
        bottom: 0;
        margin-top: 30px;
    }
}


.sec-text5 {
    color: #7A8392;
}

/* project start --------------------*/
.filter-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 60px;

    @include lg {
        margin-bottom: 50px;
    }

    @include md {
        margin-top: -10px;
        margin-bottom: 45px;
        gap: 6px;
    }

    .tab-btn {
        position: relative;
        background-color: transparent;
        border: none;
        border-radius: 8px;
        font-family: $body-font;
        font-weight: 500;
        font-size: 16px;
        color: $body-color;
        transition: all 0.4s ease-in-out;

        &:before {
            content: "";
            position: absolute;
            bottom: 0;
            width: 0;
            height: 1px;
            background-color: $theme-color;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease-in-out;
        }

        &:hover,
        &.active {
            color: $theme-color;

            &:before {
                width: 53px;
                opacity: 1;
                visibility: visible;
            }
        }
    }
}

.portfolio-box {
    position: relative;
    border-radius: 30px;
    --space: 30px;
    overflow: hidden;
    z-index: 9;
    @include md {
        --space: 20px; 
    }

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        background: #0A0A0A;
        border-radius: inherit;
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;

    }

    .box-img {
        img {
            width: 100%;
        }

        @include md {
            margin-bottom: 0;
        }
    }

    .box-title {
        color: $white-color;
        font-size: 22px;
        margin-bottom: 0px;
    }

    .box-subtitle {
        color: $white-color;
        font-size: 14px;
        margin-bottom: -0.3rem;
    }

    .box-content {
        position: absolute;
        left: var(--space);
        bottom: -40px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 2;
    }

    .icon-btn {
        background-color: $white-color;
        border: none;
        font-size: 18px;
        position: absolute;
        right: var(--space);
        top: -30px;
        z-index: 2;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;

        &:hover {
            background-color: $theme-color;
            color: $white-color;
        }

    }

    &:hover {
        &:before {
            opacity: 0.6;
            visibility: visible;
        }

        .box-content {
            opacity: 1;
            bottom: var(--space);
            visibility: visible;
        }

        .icon-btn {
            top: var(--space);
            opacity: 1;
            visibility: visible;
        }
    }
}

/* project details -------------------------*/
.project-info {
    &-wrap {
        position: absolute;
        right: 80px;
        top: 80px;
        background-color: $white-color;
        border-radius: 20px;
        padding: 40px;

        @media(max-width: 1399px) {
            right: 40px;
            top: 40px;
            padding: 30px;
        }

        @include md {
            position: relative;
            right: unset;
            left: 0;
            top: 0;
            margin-top: 30px;
            padding: 10px 30px 30px 0;
        }
    }

    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(27, 31, 37, 0.10);
    padding: 20px 0;

    &:last-child {
        padding-bottom: 0;
        margin-bottom: -0.3rem;
    }


    @include xl {
        gap: 15px;
    }

    @include xs {
        padding-left: 0;
    }

    &_icon {
        i {
            @include equal-size-lineHeight(50px);
            color: $theme-color;
            background-color: rgba(64, 102, 242, 0.1);
            border: none;
            border-radius: 50%;
            text-align: center;
            transition: all 0.4s ease-in-out;

            &:hover {
                background-color: $theme-color;
                color: $white-color;
            }
        }
    }

    &_subtitle {
        margin-bottom: 0;
    }

    &_title {
        font-family: $body-font;
        font-weight: 600;
        font-size: 18px;
        margin-bottom: 0;

        a {
            color: inherit;

            &:hover {
                color: $theme-color;
            }
        }
    }
}


.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
    padding: 17px 0;
    margin-top: 22px;

    .icon-btn {
        --btn-size: 55px;
        font-size: 16px;
        border-radius: 99px;
        border: none;
        background-color: transparent;
        border: 1px solid #EDEDED;
        color: $title-color;

        @include vxs {
            --btn-size: 45px;
        }

        &:hover {
            background-color: $theme-color;
            color: $white-color;
        }
    }

    .nav-btn {
        color: $body-color;
        font-family: $title-font;
        font-weight: 500;

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

        &:first-child {
            .icon-btn {
                margin-right: 10px;
            }
        }

        &:last-child {
            .icon-btn {
                margin-left: 10px;
            }
        }

        &:hover {
            color: $theme-color;
        }
    }

}