.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Play button styling (keeping existing CSS as requested) */
.play-button-link {
    display: inline-block;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
}

/* YouTube iframe container */
.youtube-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.youtube-frame {
    width: 100%;
    height: 100%;
    border: none;
}
/* 파티클 컨테이너 스타일 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15; /* 이미지 위에, 다른 UI 요소 아래에 */
    pointer-events: none; /* 마우스 이벤트가 뒤의 요소로 전달되도록 */
}

.content-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-banner, .second-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-banner {
    z-index: 10;
}

.second-banner {
    z-index: 5;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 중앙 정렬 */
    align-items: center; /* 중앙 정렬 */
    position: relative;
}

.hero-banner img {
    width: auto;
    height: 80vh; /* 전체 화면 높이 */
    max-width: 100%;
    object-fit: cover; /* contain에서 cover로 변경 */
    position: absolute;
    top: 0; /* 맨 위에서 시작 */
    left: 50%;
    transform: translateX(-50%);
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #b6b6b6;
    z-index: 25;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease-out;
}

.scroll-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.scroll-arrow {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
    }

    .scroll-text {
        font-size: 14px;
    }

    .scroll-arrow {
        font-size: 20px;
    }
}

.second-banner .main-image-container {
    position: relative;
    width: 90%; /* 컨테이너 너비 */
    height: 80%; /* 컨테이너 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button-link {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25; /* 이미지보다 앞에 위치 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.play-button {
    width: 80px; /* 재생 버튼 크기 */
    height: 80px;
}

.play-button-link:hover {
    transform: translate(-50%, -50%) scale(1.1); /* 호버 시 약간 확대 */
}

.second-banner .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* 중앙 정렬 */
}

/* 별 네비게이션 스타일 */
.star-navigation-container {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    height: 60px; /* bar 높이에 맞게 조정 */
    width: 700px; /* bar 너비에 맞게 조정 */
    margin: 0 auto; /* 가운데 정렬 */
}

.star-bar {
    position: absolute;
    width: 100%; /* 컨테이너 너비에 맞춤 */
    height: 100%; /* 컨테이너 높이에 맞춤 */
    z-index: 21; /* 별보다 뒤에 위치 */
    object-fit: cover; /* 이미지 비율 유지하며 채우기 */
}

.star-navigation {
    position: relative;
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    gap: 20px;
    z-index: 22; /* bar 이미지보다 앞에 위치 */
    width: 100%; /* 컨테이너 너비에 맞춤 */
}

.star {
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 23; /* 가장 앞에 표시 */
}

.star:hover {
    transform: scale(1.2);
}

/* 화살표 스타일 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 5%;
    width: 40px;
    height: auto;
}

.nav-arrow.next {
    right: 5%;
    width: 40px;
    height: auto;
}