/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    font-family: sans-serif;
    overflow: hidden;
}

section {
    width: 100%;
    height: 100vh;
}

/* 섹션 1 */
.section1 {
    background: url('/images/desktop_1920x1080.jpg') no-repeat center center / cover;
}

/* 섹션 2 */
.section2 {
    background: #111;
    color: white;
    padding-top: 80px;
    text-align: center;
}

/* 섹션 3 */
.section3 {
    background: #000;
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.main-image-container {
    width: 100%;
    max-width: 800px;
    height: 800px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    gap: 10px;
    overflow: hidden;
}

.thumbnail-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}

.thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s ease;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.slider-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 10;
    height: 100px; /* 썸네일 높이랑 맞춰주기 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 상단 메뉴 */
.top-hover-zone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
}

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.top-hover-zone:hover + .top-menu,
.top-menu:hover {
    display: flex;
}

.menu-content {
    font-size: 20px;
    font-weight: bold;
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .main-image-container {
        max-width: 90%;
        height: auto;
    }

    .thumb {
        width: 120px;
    }

    .slider-btn {
        font-size: 24px;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .main-image-container {
        max-width: 100%;
    }

    .main-image {
        border-radius: 6px;
    }

    .thumbnail-track {
        gap: 12px;
        width: 90%;
    }

    .thumb {
        width: 100px;
    }

    .slider-btn {
        font-size: 20px;
        padding: 6px;
    }

    .menu-content {
        font-size: 16px;
    }
}
