/* Video Parallax Section */
.video-parallax-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease-out;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Video Content */
.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: #fff;
    width: 90%;
    max-width: 800px;
}

.video-title {
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.video-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    letter-spacing: 0.5px;
}

.video-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.video-parallax-section::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    z-index: 4;
}

.video-parallax-section::before {
    content: '';
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    z-index: 5;
    animation: scroll-indicator 2s infinite;
}

@keyframes scroll-indicator {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Parallax Effect on Scroll */
.video-parallax-section.scrolled #parallax-video {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-title {
        font-size: 52px;
    }
    
    .video-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .video-parallax-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .video-title {
        font-size: 40px;
    }
    
    .video-subtitle {
        font-size: 18px;
    }
    
    #parallax-video {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

@media (max-width: 480px) {
    .video-parallax-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .video-title {
        font-size: 32px;
    }
    
    .video-subtitle {
        font-size: 16px;
    }
}

/* Performance Optimization */
#parallax-video {
    will-change: transform;
}

.video-title,
.video-subtitle {
    will-change: opacity, transform;
}

/* Alternative Layout - Split Screen */
.video-parallax-section.split-layout {
    height: 80vh;
}

.video-parallax-section.split-layout .video-container {
    clip-path: polygon(0 0, 60% 0, 60% 100%, 0 100%);
}

.video-parallax-section.split-layout .video-content {
    left: 75%;
    text-align: left;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zoom Effect */
.video-container.zoom-in #parallax-video {
    animation: zoomIn 20s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(1.1);
    }
    to {
        transform: translate(-50%, -50%) scale(1.3);
    }
}
