body {
    font-family: 'Pretendard', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;

}

.backdrop-blur-lg{
    z-index: 999;
}
main {
    width: 100%;
    overflow-x: clip;
    background-color: transparent !important; 
}



#stacking-section {
    position: relative;
    z-index: 101;
    /* [수정] 배경색을 투명으로 바꾸고, 상단은 검정/하단은 투명 그라데이션을 배경으로 직접 줍니다 */
    background: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%) !important;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    /* [추가] 브라우저가 레이어를 착각하지 못하도록 'mix-blend-mode'를 명시합니다 */
    mix-blend-mode: normal; 
}

#stacking-section .absolute {
    pointer-events: none;
    z-index: 0;
}

#discovery-section {
    position: relative;
    z-index: 100 !important;
    background-color: #ffffff !important; 
    margin-top: 0 !important;
    will-change: transform;
}

.rejun-logo {
    letter-spacing: -0.05em;
    font-weight: 900;
}



.main-title {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-bg-mov {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1 !important; 
    pointer-events: none;
    
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, -1px);
}
.page-bg-mov video {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}




.card-item {
    position: relative;
    margin-bottom: 5vh;
    /* 박스 간의 간격 */
    opacity: 0;
    /* JS에서 애니메이션으로 1로 만들 예정 */
    transform: translateY(50px);
    /* 살짝만 아래에 배치 */
    transition: transform 0.1s ease-out;
    /* 부드러운 반응을 위해 */
}

#video-trigger {
    z-index: 102;
    background-color: #000!important;
}
	

#video-wrapper {
    display: block;
    margin: 0 auto;
    transform: translate(0, 0);
}

.nature-capsule {
    position: relative;
    overflow: hidden;
    /* 이미지가 캡슐 밖으로 나가지 않게 함 */
}

.nature-capsule img,
.nature-capsule video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 이미지가 캡슐 안에 꽉 차게 함 */
    display: block;
}

footer {
    position: relative;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0) !important;
    backdrop-blur: 8px;
    /* 뒤에 흐르는 영상을 고급스럽게 뭉개줍니다 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top 버튼 표시 상태 */
#to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* 모바일에서는 조금 더 작게 조절 (선택사항) */
@@media (max-width: 767px) {
    #to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* .bg-black{
    opacity: 0.5!important;
} */



.min-h-\\[80vh\\] h2 {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


@@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: floating 3s ease-in-out infinite;
}


@@media (max-width: 767px) {

    /* 1. 500vh로 잡혀있던 긴 스크롤 영역을 자동 높이로 변경 */
    #video-trigger {
        height: auto !important;
    }

    /* 2. 고정되어 있던 컨테이너를 일반 박스로 변경 */
    #video-fixed-container {
        position: relative !important;
        height: auto !important;
        padding: 60px 0;
        /* 위아래 여백 */
    }

    /* 3. 투명하게 숨겨져 있던 텍스트와 비디오를 강제로 보이게 설정 */
    #video-text-overlay,
    #next-contents,
    .content-item {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    /* 4. 비디오 박스 크기를 모바일 화면에 맞게 고정 */
    #video-wrapper {
        width: 90% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        margin: 20px auto !important;
        transform: none !important;
        clip-path: none !important;
        border-radius: 20px !important;
    }

    /* 5. 다음 섹션(Discovery)이 겹치지 않게 위치 조정 */
    #discovery-section {
        margin-top: 0 !important;
        transform: none !important;
    }
}


.card-item {
    position: relative;
    margin-bottom: 15vh;
    /* opacity: 1 !important;
    transform: none !important; */
}

@@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.15;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) brightness(1.1);
    }

    50% {
        opacity: 0.25;
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)) brightness(1.4);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 6s infinite ease-in-out;
}

@media (min-width: 768px) {
    #discovery-section {
    }
}

@media (max-width: 767px) {
    #discovery-section {
        margin-top: 0 !important;
        transform: none !important;
    }
}