/* CSS para o vídeo banner */

/* ================================== */
/* DESKTOP - Configuração base */
/* ================================== */

#video {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/imagem-nova home/frame_video_portifolio_sides_desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    overflow: hidden; 
}

@media (min-width: 1280px) and (max-width: 4096px) {
    #video {
        overflow: visible !important;
    }
}

#video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh; 
    min-height: 600px; 
    object-fit: cover;
    object-position: center center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    cursor: default;
}

.banner-video.show {
    opacity: 1;
}

.video-text {
    position: absolute;
    z-index: 3;
    text-align: center;
}
.video-text__titulo {
    font-size: clamp(4rem, 6vw, 6.9rem);
    font-family: "Nebulica-ExtraLight", sans-serif;
    font-weight: 100;
    line-height: 1.15;
    text-align: center;
    color: var(--branco);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.98;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45),
        0 10px 30px rgba(0, 0, 0, 0.6);

    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                letter-spacing 1s ease,
                opacity 1s ease;
}

.video-text__titulo:hover {
    transform: translateY(-0.3vh);
    letter-spacing: 0.1em;
    opacity: 1;
}

@media (max-width: 767px) {
    .video-text__titulo {
        transform: none !important;
        letter-spacing: 0.08em !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .video-text__titulo:hover {
        transform: none !important;
        letter-spacing: 0.08em !important;
        opacity: 1 !important;
    }
}

.video1,
.video2 {
    display: none;
}

.video1:hover video {
    transition: all 0.5s ease;
    width: 100% !important;
    height: 120vh !important;
    object-fit: cover;
}

/* ================================== */
/* MOBILE - Configuração única */
/* ================================== */

@media (max-width:768px){
#video{height:100vh!important;background-image:url('../img/imagem-nova home/frame_video_portifolio_sides_mobile.png')!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.banner-video{position:relative!important;width:100%!important;height:100%!important;min-height:250px!important;max-height:450px!important;object-fit:cover!important;object-position:center center!important;flex:1!important;min-width:100%!important;min-height:100%!important}
.video-text{position:absolute!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:3!important;text-align:center!important;width:90%!important;max-width:300px!important}
.video-text__titulo{position:relative;top:3rem!important;font-size:2.5rem!important;font-family:"Nebulica-ExtraLight",sans-serif!important;font-weight:100!important;color:var(--branco)!important;line-height:1.2!important;margin:0!important;overflow:visible!important;white-space:normal!important;animation:none!important;border-right:none!important;max-height:80%!important;display:flex!important;flex-direction:column!important;justify-content:center!important;margin-bottom:5rem!important}
.video-placeholder1{display:none!important}
.video-placeholder2{display:flex!important;height:360px!important}
.video1{display:none!important}
.video2{display:block!important}
}
    
/* ================================== */
/* TABLET - Configurações Intermediárias */
/* ================================== */

@media (min-width:768px) and (max-width:1024px){
#video{height:100vh!important;min-height:400px!important;max-height:600px!important;background-image:url('../img/imagem-nova home/frame_video_portifolio_sides_mobile.png')!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.banner-video{position:relative!important;width:100%!important;height:100%!important;min-height:400px!important;max-height:600px!important;object-fit:cover!important;object-position:center center!important;flex:1!important}
.video-text{position:absolute!important;top:65%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:3!important;text-align:center!important;width:90%!important;max-width:500px!important}
.video-text__titulo{font-size:3rem!important;line-height:1.2!important}
}
    
@media (min-width:1024px) and (max-width:1279px){
#video{height:60vh!important;min-height:500px!important;max-height:700px!important;background-image:url('../img/imagem-nova home/frame_video_portifolio_sides_mobile.png')!important}
.banner-video{min-height:500px!important;max-height:700px!important}
.video-text{top:60%!important;max-width:600px!important}
.video-text__titulo{font-size:4rem!important}
}

@media (min-width:1280px) and (max-width:1440px){
#video{height:100vh!important;min-height:600px!important;max-height:800px!important;background-image:url('../img/imagem-nova home/frame_video_portifolio_sides_mobile.png')!important}
.banner-video{min-height:600px!important;max-height:800px!important}
.video-text{top:40%!important;max-width:700px!important}
.video-text__titulo{font-size:5rem!important}
}
