/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 폰트 정의 */
@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 700;
    src: url('../fonts/SpoqaHanSansNeo-Bold.woff2') format('woff2'),
         url('../fonts/SpoqaHanSansNeo-Bold.woff') format('woff'),
         url('../fonts/SpoqaHanSansNeo-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'metropolis Bold';
    font-weight: 400;
    src: url('../fonts/metropolis.bold.otf') format('opentype');
}

/* 기본 스타일 */
body {
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    overflow: hidden;
    background: #000;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 배경 레이어 */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

#mobilityBg {
    background-image: url('../images/gate_bg_mobility.jpg');
    opacity: 1;
}

#monolithBg {
    background-image: url('../images/gate_bg_monolith.jpg');
}

#mobilityBg::after,
#monolithBg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* IR 섹션 */
.ir-section {
    position: absolute;
    z-index: 100;
}

.ir-section.desktop-tablet {
    top: 59px;
    left: 50%;
    margin-left: -351px;
    width: 324px;
}

.ir-section .logo {
    margin-bottom: 21px;
    height: auto;
}

.ir-section .logo img {
    display: block;
    width: auto;
    height: 25px;
    object-fit: contain;
    object-position: left center;
}

.ir-link.mobile {
    display: none;
}

.ir-link a {
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    text-decoration: underline;
    text-underline-position: from-font;
    transition: opacity 0.3s;
    line-height: 21px;
}

.ir-link a:hover {
    opacity: 0.8;
}

/* 콘텐츠 */
.content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile 레이아웃 */
.mobile-layout {
    display: none;
}

/* Division 섹션 */
.divisions {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    margin-left: -350px;
    top: 361px;
}

.division {
    transition: all 0.3s ease;
}

.division a {
    text-decoration: none;
    color: #949494;
    display: block;
    transition: color 0.3s ease;
}

.division.active a {
    color: white;
}

.division h1 {
    font-family: metropolis Bold, sans-serif;
    font-size: 61.356px;
    font-weight: 400;
    letter-spacing: 1.8407px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.division .subtitle {
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    font-weight: 700;
    font-size: 25.263px;
}

.divider-line {
    display: flex;
    align-items: center;
    height: 186px;
    position: relative;
}

.divider-line img {
    width: 1px;
    height: 118px;
    display: block;
    position: absolute;
    top: 5px;
    left: 0;
}

/* Tablet (1024×1366) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .ir-section.desktop-tablet {
        left: 50%;
        margin-left: -376px;
        transform: none;
        top: 195px;
    }

    .ir-section .logo {
        text-align: left;
        margin-bottom: 21px;
    }

    .ir-section .logo img {
        width: 324px;
    }

    .divisions {
        flex-direction: row;
        gap: 30px;
        left: 50%;
        margin-left: -375px;
        top: 561px;
        transform: none;
    }

    .divider-line {
        width: auto;
        height: 186px;
    }

    .divider-line img {
        width: 1px;
        height: 118px;
        position: absolute;
        top: 14px;
        left: 0;
    }

    .division h1 {
        font-size: 61.356px;
        text-align: left;
    }

    .division .subtitle {
        font-size: 25.263px;
        text-align: left;
    }

    .division a {
        color: #666666;
    }

    .division.active a {
        color: white;
    }
}

/* Mobile (360×780) */
@media screen and (max-width: 768px) {
    .ir-section.desktop-tablet,
    .content {
        display: none;
    }

    .mobile-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        position: relative;
        z-index: 10;
    }

    .mobile-logo-bar {
        background: #000;
        height: 60px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        flex-shrink: 0;
    }

    .mobile-logo-bar img {
        height: 28%;
        width: auto;
    }

    .mobile-main {
        flex: 1;
        position: relative;
        overflow: hidden;
        background: transparent;
    }

    .mobile-divisions {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .mobile-division {
        position: relative;
    }

    .mobile-division a {
        text-decoration: none;
        color: #aaaaaa;
        display: block;
        position: relative;
        transition: color 0.3s ease;
        padding: 20px 14px 10px;
        width: 100%;
    }

    .mobile-division.active a {
        color: white;
    }

    .mobile-division h2 {
        font-family: metropolis Bold, sans-serif;
        font-size: 28.944px;
        font-weight: 400;
        letter-spacing: 0.8683px;
        line-height: 1.2;
        margin: 0 0 10px 0;
    }

    .mobile-division .subtitle {
        font-family: 'Spoqa Han Sans Neo', sans-serif;
        font-weight: 700;
        font-size: 15px;
        margin: 0;
    }

    .mobile-division .arrow {
        position: absolute;
        top: 35px;
        right: 14px;
        width: 19px;
        height: 22px;
    }

    .mobile-ir-footer {
        background: #00a0ea;
        height: 46px;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 0 14px;
        flex-shrink: 0;
        text-decoration: none;
        color: white;
    }

    .mobile-ir-footer span {
        font-family: 'Spoqa Han Sans Neo', sans-serif;
        font-weight: 700;
        font-size: 12.202px;
        text-decoration: underline;
        text-underline-position: from-font;
    }

    .mobile-ir-footer img {
        width: 7.541px;
        height: 8.732px;
    }
}

/* 작은 모바일 */
@media screen and (max-width: 360px) {
    .division h1 {
        font-size: 30px;
    }

    .division .subtitle {
        font-size: 16px;
    }

    .mobile-header a {
        font-size: 12px;
    }
}
