

@font-face {
    font-family: 'SEBANG Gothic';
    src: url('../fonts/SEBANG_Gothic_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SEBANG Gothic';
    src: url('../fonts/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SEBANG_Gothic_Bold';
    src: url('../fonts/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 레이아웃 */
.layout-row {
    display: flex;
    flex-direction: column;
}




/* 메인 컨텐츠 */
.main-content {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 3rem 60px 3rem;
    margin: 0;
    margin-top: 120px;
}

.container {
    padding: 0rem;
}





/* 포트폴리오 그리드 */
.portfolio-grid {
    margin-top: 10px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 33px;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 600px;
}

/* PC에서 포트폴리오 그리드 확실히 보이도록 */
@media (min-width: 769px) {
    .portfolio-grid {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .projects-section {
        display: block !important;
        width: 400px !important;
        flex-shrink: 0 !important;
    }
    
    .project-detail-section {
        display: flex !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
}



.projects-section {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.projects-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 1));
    pointer-events: none;
    z-index: 15;
    opacity: var(--gradient-opacity, 1);
    transition: opacity 0.3s ease;
}

.section-title {
    position: absolute;
    top: 14.5px;
    left: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.213px;
    font-family: 'Inter', sans-serif;
    line-height: 29.87px;
    z-index: 10;
}

.detail-title {
    position: absolute;
    top: 14.5px;
    left: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.213px;
    font-family: 'Inter', sans-serif;
    line-height: 29.87px;
    z-index: 10;
}

/* PC에서는 닫기 버튼 숨기기 */
.close-detail-btn {
    display: none;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 60px;
    max-height: calc(100vh - 250px);
    min-height: 400px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 10;
}

.work-grid::-webkit-scrollbar {
    display: none;
}

.work-item {
    width: 100%;
    height: 73.52px;
    border-bottom: 1px solid #c5c5c5;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 10px;
    z-index: 10;
    opacity: 1;
}

.work-item.active .work-title {
    color: #ffc14d;
    margin-left: 20px;
}

.work-item.active::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: #ffc14d;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* 프로젝트 상세 섹션 */
.project-detail-section {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-header {
    position: absolute;
    top: 14.5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.detail-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.213px;
    font-family: 'Inter', sans-serif;
    line-height: 29.87px;
    z-index: 20;
}



.detail-content-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 60px;
    overflow: auto;
    flex: 1;
}

.detail-scroll-container {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.detail-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.detail-image-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 3px;
}

.detail-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 5;
    border-radius: 8px;
}





.work-thumbnail {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: gap 0.3s ease;
}





.work-thumbnail img {
    display: none;
}

/* Work Tags */
.work-tags {
    position: static;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 0;
    font-size: 14.25px;
    font-weight: 400;
    color: #ffffff;
    line-height: 20px;
    font-family: 'Inter', sans-serif;
    text-align: right;
    margin-left: auto;
}

.work-tag {
    background-color: transparent;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1.5px solid #ffffff;
    font-family: 'Inter', sans-serif;
}

/* 앱, 웹, 로고 태그는 노란색으로 */


.work-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 29.87px;
    text-transform: uppercase;
    letter-spacing: 0.213px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}



/* 기존 상세페이지 스타일 제거 - 새로운 레이아웃 사용 */

.detail-image-container {
    /* 기존 상세페이지 스타일 제거 - 새로운 레이아웃 사용 */

}

.detail-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 빙그레 상세 콘텐츠 스타일 */
.binggrae-detail-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FBA202, #FBDB02);
    border-radius: 8px;
}

.binggrae-detail-content .content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.binggrae-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.binggrae-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.binggrae-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 아트뮤지엄 상세 콘텐츠 스타일 */
.art-museum-detail-content {
    width: 100%;
    height: 100%;
}

.art-museum-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.art-museum-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-museum-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.art-museum-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 아트뮤지엄 디테일에서만 1px 문제 해결 */
.art-museum-detail-content .content-image,
.art-museum-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 사랑의 열매 상세 콘텐츠 스타일 */
.love-fruit-detail-content {
    width: 100%;
    height: 100%;
    /* background: linear-gradient(45deg, #FF6B6B, #FF8E8E); */
    border-radius: 8px;
}

.love-fruit-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.love-fruit-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.love-fruit-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.love-fruit-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 사랑의 열매 디테일에서만 1px 문제 해결 */
.love-fruit-detail-content .content-image,
.love-fruit-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 코코브루니 상세 콘텐츠 스타일 */
.coco-bruni-detail-content {
    width: 100%;
    height: 100%;
}

.coco-bruni-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.coco-bruni-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coco-bruni-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.coco-bruni-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 코코브루니 디테일에서만 1px 문제 해결 */
.coco-bruni-detail-content .content-image,
.coco-bruni-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 재무관리 시스템 상세 콘텐츠 스타일 */
.dashboard-detail-content {
    width: 100%;
    height: 100%;
}

.dashboard-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.dashboard-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 재무관리 시스템 디테일에서만 1px 문제 해결 */
.dashboard-detail-content .content-image,
.dashboard-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 현대 상세 콘텐츠 스타일 */
.hyundai-detail-content {
    width: 100%;
    height: 100%;
}

.hyundai-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hyundai-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hyundai-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.hyundai-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 현대 디테일에서만 1px 문제 해결 */
.hyundai-detail-content .content-image,
.hyundai-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 의료기기1 상세 콘텐츠 스타일 */
.medical-device1-detail-content {
    width: 100%;
    height: 100%;
}

.medical-device1-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.medical-device1-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-device1-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.medical-device1-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 의료기기1 디테일에서만 1px 문제 해결 */
.medical-device1-detail-content .content-image,
.medical-device1-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 의료기기2 상세 콘텐츠 스타일 */
.medical-device2-detail-content {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.medical-device2-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.medical-device2-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-device2-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.medical-device2-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 의료기기2 디테일에서만 1px 문제 해결 */
.medical-device2-detail-content .content-image,
.medical-device2-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

.detail-image-container iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
}







/* 포트폴리오 섹션이 밀려나는 효과 */
.portfolio-grid.shifted {
    transform: translateX(-25%);
}

/* 썸네일 이미지 숨기기 */
.work-thumbnail img.shifted {
    opacity: 1;
}

/* 썸네일 텍스트와 태그만 보이게 */
.work-item.shifted .work-thumbnail {
    background-color: transparent;
    display: block;
    align-items: normal;
    justify-content: normal;
    min-height: auto;
}

.work-item.shifted .work-title {
    margin-top: 10px;
    text-align: left;
}

.work-item.shifted .work-tags {
    position: absolute;
    justify-content: flex-start;
    margin-top: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .detail-content {
        padding: 20px;
    }
    
    .work-grid {
        max-height: none;
        /* max-height: calc(100vh - 250px); */
    }
    
    .portfolio-grid {
        flex-direction: column;
        gap: 20px;
        max-width: none;
    }
    
    .projects-section {
        width: 100%;
        max-width: none;
        flex: 1;
    }
    
    .projects-section::after {
        display: none;
    }
    
    .project-detail-section {
        display: none !important;
    }
    
    .work-grid {
        max-height: 60vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .load-more-container {
        display: block;
    }
    
    .work-item {
        height: 60px;
        padding: 15px 10px;
    }
    
    .work-title {
        font-size: 18px;
    }
    
    .work-tag {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .section-title {
        font-size: 16px;
        top: 10px;
    }
    
    .detail-section-title {
        font-size: 16px;
    }
    
    .detail-image {
        max-width: 100%;
        height: auto;
    }
    

}

@media (max-width: 800px) {
    .portfolio-grid {
        padding: 0;
    }
}

@media (max-width: 480px) {
    
    .main-content {
        padding: 0;
        padding: 0 10px;
    }
    
    .portfolio-grid {
        padding: 0;
        gap: 15px;
        max-width: none;
    }
    
    .projects-section {
        flex: 1;
    }
    
    .projects-section::after {
        display: none;
    }
    
    .work-grid {
        max-height: 60vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .load-more-container {
        display: block;
    }
    
    .work-item {
        height: 55px;
        padding: 12px 8px;
    }
    
    .work-title {
        font-size: 15px;
    }
    
    .work-tag {
        font-size: 10px;
        padding: 1px 5px;
    }
    
    .section-title,
    .detail-section-title {
        font-size: 14px;
    }
    
    .detail-image {
        max-width: 100%;
        height: auto;
    }
    
    .work-thumbnail img {
        max-width: 100%;
        height: auto;
    }
    
    .portfolio-grid {
        margin-bottom: 60px;
    }
    
    .mobile-footer {
        display: block;
    }
    
    .modal-content {
        margin: 5vh auto;
        /* padding: 20px; */
        width: 95%;
        height: 90vh;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}


/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item {
    animation: fadeIn 0.6s ease-out;
}

.work-item:nth-child(2) { animation-delay: 0.1s; }
.work-item:nth-child(3) { animation-delay: 0.2s; }
.work-item:nth-child(4) { animation-delay: 0.3s; }
.work-item:nth-child(5) { animation-delay: 0.4s; }
.work-item:nth-child(6) { animation-delay: 0.5s; }
.work-item:nth-child(7) { animation-delay: 0.6s; }
.work-item:nth-child(8) { animation-delay: 0.7s; }
.work-item:nth-child(9) { animation-delay: 0.8s; }

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5vh auto;
    /* padding: 30px; */
    /* border: 1px solid #333333; */
    border-radius: 12px;
    width: 90%;
    /* max-width: 600px; */
    height: 90vh;
    overflow-y: auto;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.modal-close:hover {
    color: #ffc14d;
}

.modal-close-svg {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close-svg:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-close-svg img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.modal-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.modal-content-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* 모바일 모달에서 동적 콘텐츠 스타일 */
.modal-content-container .binggrae-detail-content,
.modal-content-container .art-museum-detail-content,
.modal-content-container .love-fruit-detail-content {
    width: 100%;
    height: auto;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-content-container .content-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 1rem;
}

.modal-content-container .content-item {
    width: 100%;
    margin-bottom: 1rem;
}

.modal-content-container .content-image,
.modal-content-container .content-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* Price 모달 스타일 */
.price-modal-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
    width: 90%;
}

.price-coming-soon h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.price-coming-soon p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Price 페이지 스타일 */
.price-section {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.price-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.price-content .price-coming-soon h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.price-content .price-coming-soon p {
    font-size: 1.3rem;
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .price-content .price-coming-soon h1 {
        font-size: 2.5rem;
    }
    
    .price-content .price-coming-soon p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .price-content .price-coming-soon h1 {
        font-size: 2rem;
    }
    
    .price-content .price-coming-soon p {
        font-size: 1rem;
    }
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px 0;
}

.modal-tag {
    background-color: rgba(255, 193, 77, 0.1);
    color: #ffc14d;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ffc14d;
}

/* Footer */
.footer {
    width: 100%;
    background: #1a1a1a;
    padding: 30px 0;
    border-top: 1px solid #333333;
}

.footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo,
.footer-info {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo-img {
    width: 120px !important;
    opacity: 0.3 !important;
    height: 40px !important;
    display: block !important;
    object-fit: contain !important;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    color: #cccccc;
    margin-bottom: 0.3rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #191919;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #FFC14D;
}

/* 모바일 푸터 */
.mobile-footer {
    display: none;
    height: 60px;
    background-color: #1a1a1a;
}

/* 로딩 컨테이너 */
.load-more-container {
    text-align: center;
    padding: 20px 0;
}

.load-more-btn {
    background: none;
    border: 1px solid #666666;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #666666;
    color: #ffffff;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #666666;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }}
