@charset "utf-8";

.portfolio-view {
    position: relative;
    margin: 0 auto;
    height: 100vh;
}

.portfolio-view:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, .4);
}

.portfolio-view .inner {
    position: relative;
    z-index: 2;
    height: 100%;
}

.portfolio-view .inner .con-box {
    background: linear-gradient(to bottom, rgb(255 255 255 / 13%), rgb(0 0 0 / 0%));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px;
    color: #fff;
    width: 520px;
    height: 500px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}



.portfolio-view .inner .con-box .df {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
}

.portfolio-type {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}


.top-dflx {
    display: flex;
}

.top-dflx .item {}

.portfolio-view .category {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 24px;
}

.portfolio-view .title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
}

.portfolio-view .desc {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;

}

.portfolio-view .image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.portfolio-view .visit-link a {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    height: 55px;
    line-height: 55px;
    background: #fff;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    transition: all .3s;
}

.portfolio-view .visit-link a:hover {
    background: #111;
    color: #fff;
}

.portfolio-date {
    margin: 20px 0 10px;
    font-size: 15px;
    color: #fff;
}

.color-guide h3 {
    color: #fff;
}

.color-list {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.color-list li {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.portfolio-view {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.back-to-list {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
    z-index: 20;
}

.back-to-list:hover {
    background: rgba(0, 0, 0, 0.6);
}

/*  works  */
.wrapper {
    padding: 0 0 80px;
}

#category_nav {
    padding: 0 100px;
    margin-bottom: 60px;
}

#category_nav ul {
    display: flex;
    justify-content: center;
}

#category_nav ul li {}

#category_nav ul li:not(:last-child) {
    margin-right: 16px;
}

#category_nav ul li a {
    display: inline-block;
    height: 42px;
    line-height: 42px;
    text-align: center;
    padding: 0 16px;
    border-radius: 42px;
    background: #f9f9f9;
}

#category_nav ul li a span {
    font-size: 16px;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
}

#category_nav ul li a.on {
    background: #111;
    border: 2px solid #111;
}

#category_nav ul li a.on span {

    color: #fff;
}

.cate_wrap ul li a.active {
    background: var(--primary) !important;
}

.cate_wrap ul li a.active span {
    color: #fff !important;
}


#category_list {
    max-width: 1440px;
    margin: 0 auto;
}

#category_list ul {
    display: flex;
    flex-wrap: wrap;
}

#category_list ul li {
    width: 33.33333333333%;
    padding: 0 20px;
    margin-bottom: 120px;
}

#category_list ul li a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

#category_list ul li a .over {
    overflow: hidden;
    position: relative;
}

#category_list ul li a .over .con .dim {
    visibility: visible;
    opacity: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    background: rgb(0, 0, 0, .7);
    transition: all .3s;
    z-index: 2;
}

#category_list ul li a .over .con .dim_txt {
    position: absolute;
    left: 57px;
    bottom: 10px;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: all .3s;
    visibility: visible;
    opacity: 1;
    z-index: 3;

}

#category_list ul li a .over .con .dim_txt p {
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 18px;
}

/*
    #category_list ul li a:hover .over .con .dim_txt {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    #category_list ul li a:hover .over .con .dim {
        visibility: visible;
        opacity: 1;
    }
*/


#category_list ul li a .over .con .bg {
    height: 360px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-);
    background-size: cover !important;
    border: 1px solid #2d2d2d;
}

#category_list ul li a .over .con .info {
    padding: 24px 0;
    text-align: center;
}

#category_list ul li a .over .con .info h2 {
    font-size: 18px;
    color: #111;
    line-height: 1;
}

#category_list ul li:first-child a .over {}


@media (max-width:1440px) {
    #category_nav {
        padding: 0 60px;
    }

    #category_list {
        padding: 0 40px;
    }
}

@media (max-width:1200px) {
    #category_list ul li {
        width: 50%;
    }
}

@media (max-width:1024px) {
    #category_nav {
        padding: 0 40px;
    }

    #category_list {
        padding: 0 20px;
    }
}

@media (max-width:768px) {
    .wrapper {
        padding: 100px 0 0;
    }

    #category_nav {
        padding: 0 20px;
    }

    #category_list {
        padding: 0;

    }

    #category_list ul li {
        width: 100%;
    }

    #category_nav {
        display: none;
    }

    #category_nav ul li:not(:last-child) {
        margin-right: 12px;
    }

    #category_nav ul {
        flex-wrap: wrap;
    }

    #category_nav ul li {
        width: 33.33333333%;
    }

    #category_list ul li:not(:last-child) {
        margin-bottom: 40px;
    }

    #category_list ul li a .over .con .bg {
        height: 260px;
    }
}

/*  animation  */
.cube_wrap {
    position: absolute;
    top: 20px;
    left: 20px;
}

.cube_wrap .dflx {
    display: flex;
    align-items: center;
}

.cube_wrap .dflx .left {
    margin-right: 12px;
}

.cube_wrap .dflx .right h3 {
    color: #fff;
    font-size: 14px;
}

.cube_wrap .cube {
    width: 18px;
    height: 18px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 3s infinite ease-in-out;
}

.cube_wrap .face {
    position: absolute;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 0 2.5px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 각 면 위치 조정 (translateZ: 9px) */
.cube_wrap .face:nth-child(1) {
    transform: rotateY(0deg) translateZ(9px);
}

.cube_wrap .face:nth-child(2) {
    transform: rotateY(90deg) translateZ(9px);
}

.cube_wrap .face:nth-child(3) {
    transform: rotateY(180deg) translateZ(9px);
}

.cube_wrap .face:nth-child(4) {
    transform: rotateY(-90deg) translateZ(9px);
}

.cube_wrap .face:nth-child(5) {
    transform: rotateX(90deg) translateZ(9px);
}

.cube_wrap .face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(9px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.info .features {
    font-size: 14px;
    color: #888;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: keep-all;
}

#category_list ul li a .over {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

#category_list ul li a:hover .over {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    /* ✅ 호버 시 그림자 */
}

#category_list ul li a .over .con .bg-wrap {
    overflow: hidden;
}

#category_list ul li a .over .con .bg {
    height: 360px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-);
    background-size: cover !important;
    background-position: center;
    transition: transform 0.4s ease;
    /* ✅ 부드러운 전환 */
}

/* ✅ 호버 시 확대 효과 */
#category_list ul li a:hover .over .con .bg {
    transform: scale(1.05);
}

/* ✅ overlay 기본 숨김 상태 */
.overlay-text {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

/* ✅ 호버 시 나타남 */
#category_list ul li a:hover .overlay-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#category_list .item {
    position: relative;
}

#category_list .item .status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1f1f1f;
    color: #fff;
    height: 36px;
    line-height: 36px;
    border-radius: 36px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: bold;
    z-index: 10;
}
