/**
 * Background Video Module Styles
 */

.background-video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Local video (HTML5) */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* YouTube/Vimeo iframe */
.background-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Overlay */
.background-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Content */
.background-video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.background-video-content h1,
.background-video-content h2,
.background-video-content h3 {
    color: #fff;
    margin-bottom: 15px;
}

.background-video-content p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.background-video-content a.btn,
.background-video-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.background-video-content a.btn:hover,
.background-video-content .btn:hover {
    background-color: #333;
    color: #fff;
}

/* Deco shape */
.background-video-deco-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 4;
    background: url("../../deco-shape.svg") center no-repeat;
    background-size: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.background-video-container.in-view .background-video-deco-shape {
    transform: translateY(100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .background-video-container {
        height: 390px !important;
    }

    .background-video-content {
        padding: 15px;
    }

    .background-video-content h1 {
        font-size: 24px;
    }

    .background-video-content h2 {
        font-size: 20px;
    }

    .background-video-content p {
        font-size: 14px;
    }
    .background-video-deco-shape {
        height: 50px;
    }
}
