.our-work-tab {
    background-color: #000;
    padding-block: 20px;
}

.our-work-tab .row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.our-work-tab .row .tab-button {
    background-color: transparent;
    padding: 10px 20px;
    border: none;
    color: var(--white);
    font-size: 18px;
    transition: all ease-in-out .2s;
}

.our-work-tab .row .tab-button:hover {
    border-bottom: 1px solid var(--white);
    transform: translateY(-5px);
}

.our-work-tab .row .tab-button.active {
    color: var(--e-global-color-text);
    transition: all ease-in-out .2s;
    border-bottom: 1px solid var(--e-global-color-text);
}




.portfolio__area-5 {
    margin-top: 20px;
    border-block: .1px solid #d3d3d360;
    position: relative;
    overflow: hidden;
    padding-block: 20px;
}

.portfolio__area-5::after {
    position: absolute;
    left: 61.6%;
    top: 0;
    width: 1px;
    height: 100%;
    filter: invert(1);
    content: "";
    background-color: #2c2c2c59;
}
.portfolio__area-5::before {
    position: absolute;
    left: 38.3%;
    top: 0;
    width: 1px;
    height: 100%;
    filter: invert(1);
    content: "";
    background-color: #2c2c2c69;
}
#items__border{
    width: 100%;
    height: 100%;
    position: absolute;
    /* background-color: #D3D3D3; */
    top: 0;
}
#items__border .sec-line{
    position: absolute;
    width: 100%;
    height: .5px;
    background-color:#d3d3d37c;
}
.portfolio__inner-5 {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.portfolio__inner-5 .portfolio__item-5 {
    width: 30%;
    position: relative;
    transition: .5s all ease-in-out;
    margin-bottom: 50px;

}

.portfolio__content-5 {
    padding: 20px 30px 22px;
    display: inline-block;
    position: absolute;
    top: 50%;
    right: -40px;
    opacity: 0;
    -webkit-transition: .5s;
    transition: .5s;
    background-color: var(--black-2);
    z-index: 9;
}

.portfolio__name-5 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    padding-bottom: 2px;
    color: var(--white);
    text-transform: uppercase;
}

.portfolio__title-5 {
    font-size: 24px;
}

.portfolio__item-5:hover .portfolio__content-5 {
    opacity: 1;
    right: -30px
}
/* الأساس */
.our-work-tab {
    background-color: #000;
    padding-block: 20px;
}

.our-work-tab .row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.our-work-tab .row .tab-button {
    background-color: transparent;
    padding: 10px 20px;
    border: none;
    color: var(--white);
    font-size: 18px;
    transition: all ease-in-out .2s;
}

.our-work-tab .row .tab-button:hover {
    border-bottom: 1px solid var(--white);
    transform: translateY(-5px);
}

.our-work-tab .row .tab-button.active {
    color: var(--e-global-color-text);
    border-bottom: 1px solid var(--e-global-color-text);
    transition: all ease-in-out .2s;
}

/* منطقة البورتفوليو */
.portfolio__area-5 {
    margin-top: 20px;
    border-block: .1px solid #d3d3d360;
    position: relative;
    overflow: hidden;
    padding-block: 20px;
}

.portfolio__area-5::after {
    position: absolute;
    left: 61.6%;
    top: 0;
    width: 1px;
    height: 100%;
    filter: invert(1);
    content: "";
    background-color: #2c2c2c59;
}
.portfolio__area-5::before {
    position: absolute;
    left: 38.3%;
    top: 0;
    width: 1px;
    height: 100%;
    filter: invert(1);
    content: "";
    background-color: #2c2c2c69;
}

#items__border {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}
#items__border .sec-line {
    position: absolute;
    width: 100%;
    height: .5px;
    background-color: #d3d3d37c;
}

.portfolio__inner-5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.portfolio__inner-5 .portfolio__item-5 {
    width: 30%;
    position: relative;
    transition: .5s all ease-in-out;
    margin-bottom: 50px;
}

.portfolio__content-5 {
    padding: 20px 30px 22px;
    display: inline-block;
    position: absolute;
    top: 50%;
    right: -40px;
    opacity: 0;
    transition: .5s;
    background-color: var(--black-2);
    z-index: 9;
}

.portfolio__name-5 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    padding-bottom: 2px;
    color: var(--white);
    text-transform: uppercase;
}

.portfolio__title-5 {
    font-size: 24px;
}

.portfolio__item-5:hover .portfolio__content-5 {
    opacity: 1;
    right: -30px;
}
.portfolio__item-5 {
    transition: transform 0.9s ease-in-out, opacity 1s ease;
  }
  
/* ---------------------------------------------------- */
/* الرسبونسف */
/* ---------------------------------------------------- */

/* تابلت (992px وأقل) */
@media (max-width: 992px) {
    .our-work-tab .row {
        justify-content: center;
        gap: 15px;
    }

    .our-work-tab .row .tab-button {
        font-size: 16px;
        padding: 8px 16px;
    }

    .portfolio__area-5::before,
    .portfolio__area-5::after {
        display: none; /* لإزالة الخطوط العمودية */
    }

    .portfolio__inner-5 .portfolio__item-5 {
        width: 45%;
        margin-bottom: 40px;
    }

    .portfolio__title-5 {
        font-size: 20px;
    }
}

/* موبايل كبير (768px وأقل) */
@media (max-width: 768px) {
    .our-work-tab .row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .our-work-tab .row .tab-button {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    .portfolio__inner-5 {
        justify-content: center;
    }

    .portfolio__inner-5 .portfolio__item-5 {
        width: 80%;
        margin-bottom: 30px;
    }

    .portfolio__content-5 {
        right: -20px;
        padding: 15px 20px;
    }

    .portfolio__title-5 {
        font-size: 18px;
    }
}

/* موبايل صغير (480px وأقل) */
@media (max-width: 480px) {
    .our-work-tab {
        padding-block: 15px;
    }

    .our-work-tab .row .tab-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    .portfolio__inner-5 .portfolio__item-5 {
        width: 100%;
    }

    .portfolio__content-5 {
        right: -10px;
        padding: 12px 16px;
    }

    .portfolio__title-5 {
        font-size: 16px;
    }
}