.main-banner-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
}
  
.main-banner-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
    filter: brightness(1) contrast(1) saturate(1);
}

.main-banner-video video.fade-out {
    opacity: 0.2;
}

.main-banner-video video.fade-in {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.main-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#final-image {
    position: absolute;
    top: 52%;
    left: 48%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 30%;
    height: auto;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

#final-image.hidden {
    opacity: 0;
}

/* 배너 영상 하단에 스크롤 버튼*/
.scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    animation: bounce 3s infinite;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.scroll-btn .icon {
    font-size: 18px;
    margin-left: 4px;
    animation: downArrow 1.8s infinite;
}

/* 🔹 메인 베너 텍스트 애니메이션 */
#typewriter {
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    text-align: center;
    position: absolute;
    width: 90%;
    max-width: 1000px;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    color: white;
    line-height: 1.5;
    letter-spacing: 0.03em;
    font-weight: 300;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    z-index: 2;
    white-space: pre-line;
}

#typewriter::before,
#typewriter::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}

#typewriter::before {
    top: -30px;
    left: 50%;
    transform: translateX(-120px);
}

#typewriter::after {
    bottom: -30px;
    right: 50%;
    transform: translateX(120px);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes downArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* 추가 디자인 요소 - 그라데이션 오버레이 */
.main-banner-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* 추가 그래픽 요소 */
.main-banner-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* 배너 오버레이 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0;
    mix-blend-mode: normal;
    z-index: 2;
    pointer-events: none;
}

/* 미디어 쿼리 - 모바일 최적화 */
@media screen and (max-width: 768px) {
    #typewriter {
        font-size: clamp(1.2rem, 5vw, 2rem);
        width: 95%;
    }
    
    #typewriter::before,
    #typewriter::after {
        width: 40px;
    }
    
    #typewriter::before {
        transform: translateX(-80px);
    }
    
    #typewriter::after {
        transform: translateX(80px);
    }
    
    .banner-accent-line {
        height: 60px;
    }
    
    .scroll-btn {
        bottom: 25px;
        padding: 10px 24px;
    }
}

/* 미디어 쿼리 - 태블릿 최적화 */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    #typewriter {
        font-size: clamp(1.3rem, 3.5vw, 2.4rem);
    }
    
    .banner-accent-line {
        height: 70px;
    }
}