@charset "utf-8";

.sub_navi{
    width: 100%;
    height: 360px;
    background-color: #111;
}

/* Sub Visual & Navigation Styles */
#sub_visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
#sub_visual .sub_bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
#sub_visual .bg_img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.8s ease; }
#sub_visual:hover .bg_img { transform: scale(1.05); }
#sub_visual .bg_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }

/* Temporary BG colors if images missing */
#sub_visual .nav01 { background-color: #2c3e50; }
#sub_visual .nav02 { background-color: #34495e; }
#sub_visual .nav03 { background-color: #1a1a1a; }
#sub_visual .nav04 { background-color: #444; }

.visual_txt .sub_tit { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: #f1c40f; margin-bottom: 10px; }
.visual_txt .main_title { font-size: 1.5rem; font-weight: 300; margin-bottom: 5px; opacity: 0.9; }
.visual_txt .sub_title { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.visual_txt .sub_desc { font-size: 18px; font-weight: 400; font-family: 'Inter', sans-serif; opacity: 0.7; }

@media (max-width: 768px) {
    #sub_visual { height: 300px; }
    .visual_txt .sub_title { font-size: 2.5rem; }
}

#company {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

.company-intro {
    text-align: center;
    margin-bottom: 80px;
}

.company-intro .sub-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.company-intro h2.title {
    font-size: 40px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
}

.company-intro p.desc {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.company-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    background: #f8f9fa;
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-box:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: #111;
}

.service-no {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.service-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.service-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #777;
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .company-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .company-services {
        grid-template-columns: 1fr;
    }
    .company-intro h2.title {
        font-size: 32px;
    }
}





.portfolio-section {
    width: 100%;
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-header {
    width: 1200px;
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 29px;
}

.portfolio-header h2 {
    font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
    font-size: 45px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1;
}

.portfolio-header p {
    font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #666666;
    margin: 0;
    line-height: 1;
}

/* Categories List */
.portfolio-categories {
    width: 100%;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 40px;
    /* Space for the absolute positioned '전체' */
}

/* '전체' tab which sits above the list */
.portfolio-categories>.category-list li.active {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -35px;
    /* Above the border-top */
    height: auto;
}

.portfolio-categories>.category-list li.active a {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #111;
    padding-bottom: 2px;
    border-bottom: 2px solid #111;
}

.category-list {
    width: 1200px;
    height: 85px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.category-list li {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Category absolute positioning logic based on Figma left-offsets */
.category-list li:nth-child(2) {
    position: absolute;
    left: 0px;
}

/* BX DESIGN */
.category-list li:nth-child(3) {
    position: absolute;
    left: 144px;
}

/* 로고 */
.category-list li:nth-child(4) {
    position: absolute;
    left: 232px;
}

/* 네이밍 */
.category-list li:nth-child(5) {
    position: absolute;
    left: 336px;
}

/* 패키지디자인 */
.category-list li:nth-child(6) {
    position: absolute;
    left: 488px;
}

/* 웹사이트 */
.category-list li:nth-child(7) {
    position: absolute;
    left: 608px;
}

/* 상세페이지 */
.category-list li:nth-child(8) {
    position: absolute;
    left: 744px;
}

/* 홍보인쇄물 */
.category-list li:nth-child(9) {
    position: absolute;
    left: 880px;
}

/* 영상 */
.category-list li:nth-child(10) {
    position: absolute;
    left: 968px;
}

/* 사진 */

.category-list li a {
    text-decoration: none;
    font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #bfbfbf;
    letter-spacing: 1px;
}

.category-list li:nth-child(2) a {
    color: #111111;
    /* BX DESIGN is active/dark */
}

/* Combobox */
.category-list .category-select {
    position: absolute;
    right: 0;
    height: 50px !important;
    display: flex;
    align-items: center;
}

.category-select select {
    background-color: #efefef;
    border: none;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    width: 145px;
    height: 50px;
    appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l5 5 5-5z" fill="%23111"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Portfolio Grid */
.portfolio-items {
    width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 50px;
    gap: 0;
}

.portfolio-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
    /*border: 1px solid #d0d0d0;*/
    /* Adding border to signify area without image */
    box-sizing: border-box;
}

.item-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.item-overlay p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    /* Drop shadow to ensure text is visible against background */
}

/* More Button */
.portfolio-more {
    margin-top: 60px;
    margin-bottom: 60px;
}

.portfolio-more button {
    width: 106px;
    height: 37px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}