:root{
    /* cores */
    --color-light: #faebd7;
    --color-dark: #393939;
    --color-cinza:rgb(165, 165, 165);

    /* fontes */
    --font-major: "Chelsea Market","Trebuchet MS", cursive;
    --font-minor: "Inter", sans-serif;



}

html{
    background-color: var(--color-light);
    color: var(--color-dark);

    h1, h2{
        font-family: var(--font-major);
        text-transform: uppercase;
        font-weight: 400;
        line-height: 1;
    }

    h3,h4,h5{
        font-family: var(--font-minor);
        text-transform: uppercase;
        line-height: 1;
    }

    /* default font sizes */
    h1{font-size: 55px;}
    h2{font-size: 32px;}
    h3{font-size: 22px;}
    h4{font-size: 18px;}
    h5{font-size: 12px;}

    /* ecrã medio */
    @media(max-width: 1850px){

        #b-esq-top, #bio-total {
            gap: 1rem;
        }


        .grid img{
            max-width: 180px;
        }

    }


    @media(max-width: 1600px){

        .mega-font{
            font-size: 105px;
        }


        .cont-in-grid > img {
            max-width: 140px;
        }
    }


    @media(max-width: 1450px){


        .mega-font{
            font-size: 70px;
        }


        .sec-da-direita.pc-screen{
            max-width: 60vw;
        }

        .min-video.pc-screen{
            width: 45%;
        }



        #marcs.pc-screen img{
            max-width: 150px;
        }


        .grid.pc-screen{
            gap:0;
        }

        .grid img{
            max-width: 150px;
        }

        #cont-back{
            height: 84vh;
            width: 90%;
            transform: translate(7%,0);
            }

        #cont-out-grid.pc-screen{
            right: 8vw;
            height: 65%;
            width: 40vw;
            margin-top: 13vh;
            }






    }

    /* tele */
    @media(max-width: 1100px){


        html, body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
            max-width: 100%;
            box-sizing: border-box;
            }

            
        * {
            box-sizing: border-box;  /* prevents padding from pushing width over 100% */
        }


        .phone-wide{
            width: 100vw;
            max-width: 100vw;
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            align-content: center;
        }

        body{
            overflow-x: hidden;
        }
        

        .tele-snap-contentor{
            scroll-snap-type: y mandatory;
            -webkit-overflow-scrolling: touch;
        }

        .tele-snap-item{
            scroll-snap-align: center;
        }




        h1{font-size: 55px;}
        h2{font-size: 32px;}
        h3{font-size: 16px;}
        h4{font-size: 14px;}
        h5{font-size: 12px;}

        .mega-font{
            font-size: 90px;
        }


        #select-linguas{
            gap: 2rem;
            scale: 1.3;

        }

        #bio-total{
            max-width: 300px;
        }


        #bio-total.tele-screen {
            position: absolute;
            min-width: 100vw;
            top: 45vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }


        #texto-geral.tele-screen, #texto-especifico.tele-screen {
            max-width: 300px;
            text-align: center;
            margin: 0;
        }



        #texto-geral.pc-screen{
            max-width: auto;
        }



        /* TELE SCREEN */
        /* tele screen !!!! */
        #b-esq-holder.tele-screen{
            height: 100vh;
            margin-top: 5%;
        }   



        #email-img{
            transform: rotate(0) translate(-50%,-70%) scale(1.5);
            opacity: 0.04;
        }

        #tele-img{
            transform: rotate(0) translate(-50%,-60%) scale(1.4);
            opacity: 0.04;
        }

        #linke-img{
            transform: rotate(0) translate(-50%,-80%) scale(1.2);
            opacity: 0.04;
        }

        #vimeo-img{
            transform: rotate(0) translate(-50%,-60%) scale(1.3);
            opacity: 0.04;
        }

        #curri-img{
            transform: rotate(0) translate(-50%,-60%) scale(1.2);
            opacity: 0.04;
        }



        /* tele screen !!!! */
        #b-esq-top.tele-screen{
            width: 80vw;
            margin: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }





        /* SEC DA DIREITA */



        #vid.tele-screen{
            min-width: 100vw;
            min-height: 100vh;
            align-content: center;
            align-items: center;
            justify-content: center;
            transform: rotate(90deg);
            white-space: nowrap;
        }


        .min-video.tele-screen{
            width: 50%;
        }



        #marcs-emps.tele-screen{
            height: 100vh;
            margin-bottom: 10vh;
        }


        /* tele screen !!!! */
        #marcs.tele-screen{
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin: 5%;
        }  


        #marcs.tele-screen img{
            max-width: 170px;
            opacity: 66%;
            margin: -14% 0;
            }



        @media(max-height: 830px){
            #contactos.tele-screen{
            margin-top: 30%;
            }
        }


        #cont-back.tele-screen{
            height: max-content;
            width: 100vw;
            transform: translate(0,0);
        }



        #cont-titl.tele-screen{
            text-align: center;
        }




        #cont-out-grid{
            display: flex;
            flex-direction: column;
            height: 65vh;
            align-items: center;
            justify-content: space-between;
            padding: 5vh 0 2vh 0;
            margin-bottom: 10vh;
        }

        #cont-out-grid.tele-screen {
            min-height: 45vh;

        }

        .cont-in-grid > h4 {
            padding-top: 0.3rem;
        }

        .cont-in-grid > img {
            max-width: 10vh;
        }

    }


@media(max-width:1000px){
    .min-video.tele-screen{
        width: 75%;
    }
}



@media(max-width:800px){
    .min-video.tele-screen{
        width: 100%;
    }
}




}

.mega-font{
    font-size: 125px;
    letter-spacing: 15px;
    opacity: .2;
}

.font-thin{
    font-weight: 200;
}

.font-regular{
    font-weight: 400;
}

.font-bold{
    font-weight: 800;
    font-weight: bold;
}

.font-italic{
    font-style: italic;
}

.espac-linhas-2{
    line-height: 1.2;
}

.overflow{
    white-space: nowrap;
    overflow: visible;
}

/* BUTTONS */
button{
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    border-radius: 0;
    text-align: left;
    cursor: pointer;

}



.unpressed {
    font-weight: 200;
    opacity: 0.3;
    transition: opacity 0.5s ease-out;
}

.unpressed:hover {
    opacity: 1;
}

.pressed {
    font-weight: bold;
    opacity: 1;
}


body{
    margin:0;
}




/* SECÇÃO ESQUERDA */





#b-esq-holder.pc-screen{
    height: 80vh;
    margin-top: 10vh;
    margin-left: 100px;
    position: fixed;
    display: flex;
    flex-direction: column;
    z-index: 5;
}   



#b-esq-top.pc-screen{
    width: 250pt;
    margin: 0;
    align-items: auto;
    justify-content: auto;

}






#nome.tele-screen{
    max-width: 330px;
}


#nome h1{
    margin: 0
}




#select-linguas {
    gap: 1.5rem;
    scale: 1;
    display: flex;
}



#titulo.pc-screen{
    max-width: 100px;
}


#titulo.tele-screen{
    position: absolute;
    transform: translate(75%,96%);
    max-width: 100px;
}




#bio-total.pc-screen{
    position: absolute;
    display: flex;
    bottom: 0;
    height: 250px;
    width: 380px;
}











#bio-total.pc-screen *{
    margin: 0;
    transition: all 0.4s ease-out;
} 




#bio-total {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}










#titl-imagem.pc-screen {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}


#titl-imagem.tele-screen {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

#titl-imagem.tele-screen img {
    margin: 0 0 5rem 0;
    scale: 3;
}

@media(max-height: 750px){
    #titl-imagem.tele-screen img {
        margin: 0 0 2rem 0;
        scale: 2;
    }


}

@media(max-height: 650px){
    #titl-imagem.tele-screen img {
        margin: 0;
        scale: 1;
    }
}




.round-image{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: var(--color-dark) solid 2px;
    transition: all 0.1s;
}



/* SECÇÃO DIREITA */


#b-dir.pc-screen{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}




/* tele screen !!!! */
#b-dir.tele-screen{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}






#b-dir > div {
    display: flex;
    flex-direction: column;

}


/* video */

.sec-da-direita.pc-screen{
    height: 100vh;
    width: 65vw;
    display: flex;
    justify-content: center;
    align-items: center;
}










.overlay{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 100.1vh;
    width: 100vw;
    cursor:pointer;
    margin: 0;
    padding: 0;
    background-color: var(--color-dark);
}

.overlay-on{
    opacity: 80%;
    z-index: 99;
    animation: fade-in 0.2s;
}

@keyframes fade-in {
    0% {opacity: 0;
        animation-timing-function: ease-out;}
    100% {opacity: 0.8;}
}

.overlay-off{
    opacity: 80%;
    animation: fade-out 0.2s;
}

@keyframes fade-out {
    0% {opacity: 0.8;
        animation-timing-function: ease-out;}
    100% {opacity: 0;}
}


.min-video{
    width: 50%;
    z-index: 2;
    cursor: pointer;
    position: absolute;
}

.max-video{
    width: 65%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    cursor: default;
    z-index: 1000;
    animation: video-up 0.4s ease-out forwards;
}










@keyframes video-up {
    0%{
        width: 50%;
        opacity: 0;

    }
    100%{
        width: 65%;
        opacity: 1;

    }
}


/* fundo do vídeo */

.letras-back{
    z-index: 1;
    position: absolute;
    justify-content: center;
    align-items: center;

    -webkit-user-select: none;    /* Safari/Chrome */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* IE/Edge */
    user-select: none;            /* Standard */
}


/* marcs-emps */

#marcs.pc-screen{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}   




#marcs.tele-screen h2{
    max-width: 400px;
    text-align: center;
} 






.grid.pc-screen{
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(2,1fr);
}


.grid.tele-screen{
    display: grid;
    gap: 0px 50px;
    grid-template-columns: repeat(2,1fr);
}




#marcs.pc-screen img{
    max-width: 200px;
    scale: 90%;
    opacity: 66%;
    margin: -10% 0;
    transition: scale 0.2s ease-out;
}

#marcs.pc-screen img:hover {
    scale: 110%;
    opacity: 100%;
}

.text-animate-in {
    animation: text-in 0.2s ease-out;
}

@keyframes text-in {
    0%{
        opacity: 0;
        transform: translateX(-10px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

.text-animate-out {
    animation: text-out 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes text-out {
    0%{
        opacity: 0;
        transform: translateY(30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}


.foto-animate-out {
    transform-origin: center left;
    transform: scaleX(0);
    opacity: 0;
}





/* video de trás */


#marcas-changeable-back-video-holder video{
    position: fixed;
    inset: 0;
    width: 0;
    height: 0;
    object-fit: cover;
    z-index: -1;
    opacity: 0;

    transition: opacity 0.2s ease;
}

#marcas-changeable-back-video-holder video.with-hover{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2;

    transition: opacity 0.5s ease ;
}




/* contactos */

a, a:link, a:visited, a:hover, a:active{
    text-decoration: none;
    color: inherit;
    border: inherit;
    background: inherit;
    cursor: pointer;
}


#contactos.pc-screen{
    height: 100vh;
    max-width: 63vw;
}

#cont-back{
    height: 84vh;
    width: 100%;
    background-color: var(--color-dark);
    color: var(--color-light);

}

#cont-titl{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    margin: 7vh 5vw 0;
}

#cont-titl *{
    margin:0;
}


#cont-out-grid.pc-screen{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    right: 14vw;
    height: 50%;
    width: 40vw;
    margin-top: 13vh;
}





#cont-out-grid.pc-screen > a:nth-child(odd){
    left:0;
    text-align: left;
}






/* tele screen !!!! */
#cont-out-grid.tele-screen > a:nth-child(odd){
    text-align: center;
}







#cont-out-grid.pc-screen > a:nth-child(even){
    align-self: end;
    text-align: right;  
}






/* tele screen !!!! */
#cont-out-grid.tele-screen > a:nth-child(even){
    text-align: center;  
}







.cont-in-grid{
    display: block;
    gap:10px;
    max-width: 300px;
}

.cont-in-grid > img {
    width: 180px;
    position: absolute;

}


#email-img{
    transform: rotate(-7deg) translate(-20%,-70%);
}

#tele-img{
    transform: rotate(7deg) translate(-200%,-50%);
}

#linke-img{
    transform: rotate(-7deg) translate(100%,-60%);
}

#vimeo-img{
    transform: rotate(-7deg) translate(-50%,-80%);
}

#curri-img{
    transform: rotate(-7deg) translate(-20%,-90%);
}





.hovering-link.pc-screen{
    opacity: 1;
    animation: hover-link 0.2s ease-out
}


.hovering-img.pc-screen{
    opacity: 0.2;
    scale: 100%;
    animation: hover-img 0.2s ease-out forwards;
}



.dehovering-link.pc-screen{
    opacity: 0.6;
    animation: hover-link-out 0.2s ease-out forwards;
}



.dehovering-img.pc-screen{
    opacity: 0.1;
    scale: 90%;
    animation: hover-img-out 0.2s ease-out forwards;
}


@keyframes hover-link{
    from{
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

@keyframes hover-link-out{
    from{
        opacity: 1;
        
    }
    to {
        opacity: 0.6;
    }
}

@keyframes hover-img{
    from{
        opacity: 0.1;
        scale: 90%;
    }
    to {
        opacity: 0.2;
        scale: 100%;
    }
}

@keyframes hover-img-out{
    from{
        opacity: 0.2;
        scale: 100%;
        
    }
    to {
        opacity: 0.1;
        scale: 90%;
    }
}



/* transitions */
@view-transition {
  navigation: auto;
}