.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    transition: .4s ease;
    height: 100%;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
}

.portfolio-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .14);
}


/* IMAGE AREA */

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 320px;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}


/* DARK OVERLAY */

.portfolio-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    opacity: 0;
    transition: .4s ease;
    z-index: 1;
}

.portfolio-box:hover .portfolio-image-wrapper::after {
    opacity: 1;
}


/* IMAGE HOVER */

.portfolio-box:hover .portfolio-image-wrapper img {
    transform: scale(1.08);
}


/* TITLE */

.portfolio-title {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 24px;
    margin: 0;
    background: #fff;
    text-decoration: none;
    min-height: 160px;
    left: 0;
    bottom: 0;
    transform: none !important;
}

.portfolio-title p {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px !important;
    color: #fd5d13 !important;
    background: white;
    box-shadow: 0px 0px 1px 1px darkgray;
    border-radius: 5px;
    text-align: center;
    vertical-align: middle;
}

.portfolio-title .text-body {
    font-size: 15px;
    line-height: 1.7;
}


/* CENTER BUTTON */

.portfolio-btn {
    position: absolute;
    top: 160px;
    left: 50%;
    width: 72px;
    height: 72px;
    margin-left: -36px;
    margin-top: -36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
}

.portfolio-btn i {
    font-size: 28px;
}

.portfolio-box:hover .portfolio-btn {
    opacity: 1;
    visibility: visible;
}

.portfolio-btn:hover {
    transform: scale(1.08);
}


/* FILTERS */

#portfolio-flters li {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

#portfolio-flters li img {
    border-radius: 8px;
}


/* STATUS BADGE */

.portfolio-status {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 6;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.status-completed {
    background: rgba(25, 135, 84, .95);
    color: #fff;
}

.status-ongoing {
    background: rgba(255, 193, 7, .95);
    color: #111;
}


/* RESPONSIVE */

@media (max-width: 991px) {
    .portfolio-image-wrapper {
        height: 270px;
    }
    .portfolio-btn {
        top: 135px;
    }
}

@media (max-width: 767px) {
    .portfolio-image-wrapper {
        height: 240px;
    }
    .portfolio-title {
        min-height: auto;
        padding: 20px;
    }
    .portfolio-title p {
        font-size: 18px;
    }
    .portfolio-btn {
        width: 62px;
        height: 62px;
        margin-left: -31px;
        margin-top: -31px;
        top: 120px;
    }
    .portfolio-btn i {
        font-size: 24px;
    }
}


/* ===================================== */


/* PORTFOLIO DETAIL BUTTON */


/* ===================================== */

.portfolio-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #080000;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: inherit;
    border-radius: 50px;
    transition: all .35s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-detail-btn i {
    font-size: 20px;
    transition: transform .35s ease;
}


/* Hover */

.portfolio-box:hover .portfolio-detail-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.portfolio-box:hover .portfolio-detail-btn i {
    transform: translateX(5px);
}