@charset "utf-8";

/* =================================================================
 * 1. 폰트 정의 (Font Definitions)
 * ================================================================= */

/* Kakao Big Font Weights */
@font-face {
    font-family: 'KakaoBigFont';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2503@1.0/KakaoBigSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'KakaoBigFont';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2503@1.0/KakaoBigSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'KakaoBigFont';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2503@1.0/KakaoBigSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

/* Kakao Small Font Weights */
@font-face {
    font-family: 'KakaoSmallFont';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2503@1.0/KakaoSmallSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'KakaoSmallFont';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2503@1.0/KakaoSmallSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'KakaoSmallFont';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2503@1.0/KakaoSmallSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}


/* =================================================================
 * 2. 리셋 및 글로벌 스타일 (Reset and Global Styles)
 * ================================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    background-color: #000000;
    overflow-x: hidden;
    overflow-y: scroll;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* 햄버거 메뉴 활성화 시 스크롤 고정 */
html.is-active, 
body.is-active {
    overflow-y: hidden; 
}

/* --- 공통 섹션 및 타이틀 스타일 --- */
section {
    padding-top: 200px; /* 기본 데스크탑 패딩 */
}

.feature-content, .grid-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.feature-content h3, .grid-header h3 {
    font-family: KakaoBigFont;
    font-weight: 700;
    font-size: clamp(48px, 4.17vw, 80px);
    color: #ffffff;
}

.feature-content p, .feature-content p a, .grid-header p {
    font-family: KakaoBigFont;
    font-weight: 400;
    font-size: clamp(18px, 1.56vw, 30px);
    color: #9B9B9B;
}

/* 스크롤 애니메이션 */
.section {
    position: relative;
}

.detail-feature > div {
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.detail-feature > div.fade-in {
    opacity: 1; 
    transform: translateY(0); 
}


/* =================================================================
 * 3. 헤더/네비게이션 (Header/Navigation)
 * ================================================================= */

.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 18px 40px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo {
    display: flex;
    align-items: center;
}

/* 데스크탑 네비게이션 */
.nav-links {
    display: flex;
    gap: 60px;
}

.nav-links a {
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
    color: #ffffff;
    font-family: KakaoBigFont;
}

/* 모바일 햄버거 메뉴 토글 버튼 */
.menu-toggle {
    display: none; /* 데스크탑에서는 숨김 */
    flex-direction: column; 
    justify-content: center; 
    gap: 8px; 
    
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin: 0; 
    transition: transform 0.3s ease; 
    transform-origin: center;
}

/* 모바일 네비게이션 메뉴 */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
    
    transform: translateY(-100%); /* 위로 숨김 */
    transition: transform 0.4s ease-out;
}

.nav-mobile ul {
    padding-left: 16px;
}

.nav-mobile li a {
    font-family: KakaoBigFont;
    font-weight: 700;
    font-size: 30px;
    line-height: 64px;
    color: #ffffff;
}

/* 햄버거 메뉴 활성화 스타일 */
.header.is-active .nav-mobile {
    transform: translateX(0); 
}

.header.is-active .menu-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg); 
}

.header.is-active .menu-toggle span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg); 
}


/* =================================================================
 * 4. 메인 섹션 (Main Section)
 * ================================================================= */

.main-section {
    background: url(../images/main.png) no-repeat center; 
    background-size: cover;
    text-align: center;
    height: 1080px;
    padding: 0;
}

.main-section .container {
    display: flex;
    flex-direction: column;
    padding-top: 87px;
    gap: 100px;
}

.main-section h1 {
    font-weight: 800;
    font-family: KakaoBigFont;
    font-size: clamp(58px, 9.17vw, 176px);
    line-height: clamp(64px, 13.75vw, 264px);
    color: #FFFFFF;
}

.highlight-grid {
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 0px;
}

.highlight-item {
    width: 541px;
}

.highlight-item h3 {
    font-size: clamp(20px, 3.65vw, 70px);
    line-height: clamp(20px, 3.65vw, 70px);
    color: #ffffff;
    font-weight: 700;
    font-family: KakaoBigFont;
}

.highlight-item p {
    color: #ffffff;
    font-family: KakaoBigFont;
    font-weight: 400;
    line-height: clamp(16px, 2.81vw, 54px); 
    font-size: clamp(16px, 2.81vw, 54px);
}

.highlight-grid > .highlight-item:first-child { text-align: right; }
.highlight-grid > .highlight-item:nth-child(3) { text-align: left; }

/* 쇼릴 버튼 */
.view-button button {
    background: #ffffff;
    border-radius: 80px;
    border: none;
    font-family: KakaoBigFont;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    width: clamp(240px, 16.15vw, 310px); 
    height: clamp(56px, 3.75vw, 72px); 
    font-size: clamp(18px, 1.25vw, 24px);
}

.view-button button:hover {
    border: 1px solid #ffffff;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.view-button.mobile { display: none; }

#works .view-button {
    display: flex;
    justify-content: center;
    margin: 120px 0;
}


/* =================================================================
 * 5. Feature Detail Sections (Architecture & Car)
 * ================================================================= */

.feature-content h2 {
    font-family: KakaoBigFont;
    font-weight: 700;
    font-size: clamp(20px, 2vw, 40px);
    color: #ffffff;
}

.detail-feature-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px; 
}

.detail-feature {
    display: grid;
    gap: 120px; 
    align-items: center;
}

/* 이미지 및 비디오 영역 공통 스타일 */
.feature-image-area {
    height: 1036px; 
    border-radius: 32px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}

.feature-image-area#car-img {
    cursor: pointer;
}

.feature-image-area video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 32px;
}

/* SVG 아이콘 오버레이 (비디오 재생 버튼 등) */
.feature-image-area svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    cursor: pointer; 
    z-index: 10;
}


/* --- Architecture 슬라이드 CSS (안정성 강화) --- */
.feature-image-area#arch-img { 
    overflow: hidden; 
    padding: 0;
}

.feature-image-area#arch-img .slider-container {
    display: flex; 
    width: 400%; /* 4개의 슬라이드 (3개 + 1개 복제본) */
    height: 100%;
    transition: transform 0.8s ease-in-out; 
}

.feature-image-area#arch-img .slide-item {
    width: calc(100% / 4); /* 25% */
    height: 100%;
    flex-shrink: 0; /* 💡 슬라이드 안정화에 매우 중요 */
    
    /* 배경 이미지 공통 스타일 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Architecture 이미지 URL */
#arch-slide-1 { background-image: url(../images/visual02-1.png); }
#arch-slide-1-clone { background-image: url(../images/visual02-1.png); }
#arch-slide-2 { background-image: url(../images/visual02-2.png); }
#arch-slide-3 { background-image: url(../images/visual02-3.png); }


/* =================================================================
 * 6. Works & Business Sections (Grid)
 * ================================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    column-gap: 16px;
    row-gap: 80px;
}

.business-grid {
    grid-template-columns: repeat(8, 1fr); /* 데스크탑 Business 그리드는 8등분 사용 */
}

.project-card {
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-image-placeholder {
    width: 100%;
    height: 320px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: end;
    justify-content: end;
    border-radius: 32px;
    position: relative; 
}

.business-grid .project-image-placeholder {
    height: 240px;
}

/* 아이콘 오버레이 상태 전환 */
.project-grid svg {
    width: 56px;
    height: 56px; 
    position: absolute;
    bottom: 20px;
    right: 20px;
    transition: opacity 0.3s ease; 
    cursor: pointer;
    z-index: 10;
}

.default-icon { opacity: 1; }
.hover-icon { opacity: 0; }

.project-card:hover .default-icon, .feature-image-area:hover .default-icon { opacity: 0; }
.project-card:hover .hover-icon, .feature-image-area:hover .hover-icon { opacity: 1; }

.project-info {
    text-align: left;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    font-family: KakaoBigFont;
    color: #ffffff;
}

/* Works 이미지 URL */
#work1 { background-image: url(../images/work1.png); } 
#work2 { background-image: url(../images/work2.png); } 
#work3 { background-image: url(../images/work3.png); } 
#work4 { background-image: url(../images/work4.png); } 
#work5 { background-image: url(../images/work5.png); } 
#work6 { background-image: url(../images/work6.png); } 
#work7 { background-image: url(../images/work7.png); } 
#work8 { background-image: url(../images/work8.png); } 

/* Business 이미지 URL */
#biz1 { background-image: url(../images/biz1.png); } 
#biz2 { background-image: url(../images/biz2.png); } 
#biz3 { background-image: url(../images/biz3.png); } 
#biz4 { background-image: url(../images/biz4.png); } 
#biz5 { background-image: url(../images/biz5.png); } 
#biz6 { background-image: url(../images/biz6.png); } 
#biz7 { background-image: url(../images/biz7.png); } 
#biz8 { background-image: url(../images/biz8.png); } 


/* =================================================================
 * 7. 푸터/컨택트 섹션 (Footer/Contact Section)
 * ================================================================= */
 
.footer {
    padding: 200px 0 40px;
}

.footer * {
    color: #9B9B9B;
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.footer-l-wrap {
    display: flex;
    height: 100%;
    align-items: end;
    gap: 40px;
}

.footer-logo {
    height: 56px;
}

.contact-info p {
    line-height: 32px;
    font-size: 16px;
    font-family: KakaoBigFont;
    font-weight: 700;
}

.copyright p {
    font-size: 16px;
    font-family: KakaoBigFont;
    font-weight: 700;
}


/* =================================================================
 * 8. 반응형 디자인 (Media Queries)
 * ================================================================= */

/* --- 1920px 이하 (Large Desktop/Tablet Landscape) --- */
@media (max-width: 1920px) {
    .main-section { height: 720px; }
    .main-section .container { gap: 60px; }
    .highlight-grid { gap: 60px; }

    /* Feature Detail: 1열로 전환 */
    .detail-feature { grid-template-columns: 1fr; }
    .feature-image-area { height: 675px; }

    /* Works: 2열로 전환 */
    .project-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .project-image-placeholder { height: 442px; }

    /* Business: 4열로 전환 */
    .business-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
    .business-grid .project-image-placeholder { height: 320px; } 
    
    .project-grid svg {
        width: 56px;
        height: 56px;
    }
}

/* --- 1280px 이하 (Tablet Portrait/Small Desktop) --- */
@media (max-width: 1280px) {
    .footer { padding: 100px 0 40px; }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer-l-wrap {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer-logo { height: 42px; }
    /* .footer-logo svg { width: 133px; } */ /* SVG 크기는 폰트 높이로 조절되므로 삭제 */

    .contact-info p {
        text-align: center;
        font-size: 14px;
        line-height: 20px;
    }
    .copyright p {
        text-align: center;
        font-size: 10px;
    }
}


/* --- 1024px 이하 (Mobile/Tablet Landscape) --- */
@media (max-width: 1024px) {
    
    /* 공통 레이아웃 */
    section { padding-top: 100px; } /* 💡 중복 정의 160px, 100px 중 최종 100px로 통일 */
    .detail-feature { gap: 60px; }
    .detail-feature-wrapper { padding: 0 16px; }

    /* 헤더/네비게이션 */
    .header { padding: 22px 16px; }
    .navbar { height: auto; }
    .logo { height: 24px; }
    /* .logo svg { width: 76px; } */ /* SVG 크기는 폰트 높이로 조절되므로 삭제 */

    .nav-desktop { display: none; }
    .menu-toggle { display: flex; } /* 햄버거 버튼 활성화 */

    /* 메인 섹션 */
    .main-section { height: 478px; }
    .main-section .container { gap: 20px; }
    .highlight-grid { gap: 40px; }
    .highlight-item { width: auto; }
    
    .view-button.desktop { display: none; }
    .view-button.mobile { display: block; }

    #works .view-button {
        margin: 60px 0;
    }
    
    /* Feature Detail */
    .feature-image-area { height: 560px; }
    .feature-image-area, .feature-image-area video { border-radius: 16px; }
    .feature-image-area svg { width: 48px; height: 48px; }

    /* Works Grid (1열) */
    .project-grid { 
        grid-template-columns: repeat(1, 1fr); 
        row-gap: 40px;
    }
    .project-image-placeholder { height: 245px; border-radius: 16px; }
    .project-info {
        font-size: 14px;
        line-height: 21px;
    }
    .project-grid svg {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
    }

    /* Business Grid (2열) */
    .business-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .business-grid .project-image-placeholder { height: 183px; }
}