.video-background-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.25);
}

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

@keyframes fadeInGrow {
    0% {
        opacity: 0;
        transform: scale(0);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

.content-overlay h1 {
    opacity: 0;
    transform: scale(0);
    animation: fadeInGrow 0.5s ease-out 0.5s forwards;
    padding-bottom: 0px;
}

.content-overlay p {
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0);
    animation: fadeInGrow 0.5s ease-out 0.5s forwards;
}

#video-background .tagline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    z-index: 1;
    padding-bottom: 10vh;
}

#video-background .tagline {
    font-size: 4.3rem;
    font-weight: bold;
    color: white;
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
    padding-bottom: 1rem;
}

#video-background #tagline-underlay {
    display: flex;
    flex-direction: row;
    width: 70%;
    margin-left: 15%;
    justify-content: center;
    font-weight: 900;
    column-gap: 0.5rem;
}

#video-background #tagline-underlay p {
    animation-delay: 2s;
    animation-duration: 1s;
    animation-fill-mode: both;
    font-size: x-large;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    #video-background .tagline {
        font-size: 3.5rem;
    }

    #video-background #tagline-underlay p {
        font-size: large;
    }
}

@media (max-width: 768px) {
    .video-background-section {
        height: 100vh;
        min-height: 500px;
    }

    #video-background .tagline {
        font-size: 2.8rem;
        line-height: 1.1;
        padding-bottom: 3rem;
    }

    #video-background .tagline-overlay {
        padding: 1.5rem;
        padding-bottom: 8vh;
    }

    #video-background #tagline-underlay {
        width: 70%;
    }

    #video-background #tagline-underlay p {
        font-size: medium;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .video-background-section {
        height: 100vh;
        min-height: 450px;
    }

    #video-background .tagline {
        font-size: 2.2rem;
        line-height: 1.0;
        padding-bottom: 3rem;
    }

    #video-background .tagline-overlay {
        padding: 1rem;
        padding-bottom: 6vh;
    }

    #video-background #tagline-underlay {
        width: 70%;
    }

    #video-background #tagline-underlay p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}

@media (max-width: 320px) {
    .video-background-section {
        height: 100vh;
        min-height: 400px;
    }

    #video-background .tagline {
        font-size: 1.8rem;
    }

    #video-background #tagline-underlay p {
        font-size: 0.9rem;
    }
}

/* Landscape mobile devices - reduce text size when in landscape orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #video-background .tagline {
        font-size: 2.2rem !important;
        line-height: 1.0 !important;
        padding-bottom: 2rem !important;
    }

    #video-background .tagline-overlay {
        padding: 1rem !important;
        padding-bottom: 4vh !important;
    }

    #video-background #tagline-underlay p {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
}
