/* Custom styles for full-screen video background */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.full-page-image {
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    position: relative;
}

.overlay {
    /* Add a semi-transparent overlay to the video */
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.first-page-title {
    /* Center content vertically and horizontally */
    position: absolute;
    bottom: 10%;
    z-index: 3;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.0s ease;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-frame {
    border-radius: 15px;
    overflow: hidden;
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
}

.task-video-gallery .video-frame {
    padding-top: 0;
    position: relative;
}

.task-video-gallery video {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.comparison-header {
    margin-top: 1.5rem;
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.comparison-row {
    padding: 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(32, 43, 54, 0.12);
}

.comparison-row .title {
    margin-bottom: 0.75rem;
}

.comparison-videos .video-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #0d1b2a;
}

.comparison-videos video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.method-label {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    display: block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
