body {
    background: #00c2ff;
    background: linear-gradient(90deg, #00c2ff 0%, rgba(0,97,128,1) 100%);
    padding: 0;
    margin: 0;

    background: white;
}




html {
    font-family: "Jost", sans-serif;
    
}


/* Landscape orientation */
@media screen and (orientation: landscape) and (max-width: 1440px) {
    html {
        font-size: 14px; /* Default root font size */
    }
}

@media screen and (orientation: landscape) and (max-width: 1280px) {
    html {
        font-size: 13px; /* Default root font size */
    }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
    html {
        font-size: 13px; /* Default root font size */
    }
}

@media screen and (orientation: landscape) and (max-width: 800px) {
    html {
        font-size: 11.5px; /* Default root font size */
    }
}

@media screen and (orientation: landscape) and (max-width: 640px) {
    html {
        font-size: 10px; /* Default root font size */
    }
}

@media screen and (orientation: landscape) and (max-width: 480px) {
    html {
        font-size: 9px; /* Default root font size */
    }
}


/*


@media screen and (orientation: portrait) and (max-width: 1440px) {
    html {
        font-size: 15px; 
    }
}

@media screen and (orientation: portrait) and (max-width: 1280px) {
    html {
        font-size: 14px; 
    }
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    html {
        font-size: 13px; 
    }
}

@media screen and (orientation: portrait) and (max-width: 800px) {
    html {
        font-size: 11.5px; 
    }
}

@media screen and (orientation: portrait) and (max-width: 640px) {
    html {
        font-size: 9px; 
    }
}

@media screen and (orientation: portrait) and (max-width: 480px) {
    html {
        font-size: 8px; 
    }
}

*/










header {
    position: fixed;
    width: 100%;
    height: 6rem;
    transition: 0.3s ease-in;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 1000;
    overflow-x: hidden;

}

header a {
    z-index: 1002;

}

header a img {
    height: 4rem;
    margin: 1rem 0 0 1.5rem;
    z-index: 1002;

}


header a img:hover {
    transform: rotateZ(360deg);
    transition: 0.3s ease-in;

}


#headerbg {
    background: linear-gradient(90deg, rgba(0,194,255,1) 0%, rgba(0,97,128,1) 100%);
    opacity: 0;
    transition: 0.3s ease-in;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    z-index: 10;

}


#headerbg.scrolled {
    background: linear-gradient(90deg, rgba(0,194,255,1) 0%, rgba(0,97,128,1) 100%);
    opacity: 1;
    transition: opacity 0.3s ease-in;


}

nav {
    margin-top: 2.5rem;
    text-align: right;
    margin-right: 3.5rem;
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin: 0.3rem 0.5rem;
}



nav a:nth-child(4) {
    padding: 0.5rem 1.5rem;
    border: white 0.3rem solid;
    transition: 0.3s ease-in;
}


nav a:nth-child(4):hover {
    border: white 0.3rem solid;
    background-color: white;
    color: rgba(0,97,128,1);
}




#lang a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1rem;

}


#lang a:hover {
    font-weight: 600;
    transition: 0.3s ease-in;

}

#lang {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: fixed;
    top: 0;
    right: 0.8rem;
}


@media screen and (orientation:landscape) {
    #icons {
        display: none;
    }




    nav#nav a {
        position: relative;
        text-decoration: none;
    }
    
    nav#nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 0.25rem; /* Height of the underline */
        display: block;
        background: currentColor; /* Use the current text color */
        transition: width 0.3s ease; /* Smooth transition effect */
        left: 0;
        bottom: 0; /* Position underline at the bottom */
        transform: translateY(0.2rem);
    }



    
    nav#nav a:hover::after {
        width: 100%; /* Expand underline to full width */
    }
    

    nav#nav a:nth-child(4)::after {
        width: 0;
    }

}



@media screen and (orientation:portrait) {
    header {
        background: rgb(0,194,255);
        background: linear-gradient(90deg, rgba(0,194,255,1) 0%, rgba(0,97,128,1) 100%);
        height: 5rem;
    }


    
    #headerbg {

        height: 5rem;

    }
    
    header a img {
    height: 3rem;
    margin: 1rem 0 0 1rem;
    z-index: 1002;

}
    
    
    nav {
        width: 100vw !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        background: rgb(0,194,255);
        background: linear-gradient(90deg, rgba(0,194,255,1) 0%, rgba(0,97,128,1) 100%);
        height: 100vh !important;
        margin: 0;
        padding: 0;
        position: fixed;
        padding-top: 5rem;
        top: 0;
        left: 0;
        z-index: 500 !important;
        
    }


    nav a {
        font-size: 2.3rem;
        margin: 1.5rem 0;
    }


    nav a:nth-child(4) {
        padding: 0.3rem 2rem;
        background-color: white;
        color: rgba(0,97,128,1);
    }


    #icons svg {
        width: 3rem;
        height: 3rem;
        fill: white;
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 501;

    }


    #open {
        height: 3rem;
    }



    #close {
        display: none;
    }


    nav.active {
        scale: 100%;
        transition: 0.3s ease-in;
        transform-origin: top right;

    }

    nav.inactive {
        scale: 0;
        transform-origin: top right;
        transition: 0.3s ease-in;

    }

    #lang {
        font-size: 1.2rem;
        margin-right: 3.8rem;
        margin-top: 0.6rem;
        z-index: 501;

    }

    #lang a {
        font-size: 1.2rem;

    }
}








footer {
    background: linear-gradient(90deg, rgba(0,194,255,1) 0%, rgba(0,97,128,1) 100%);
    padding: 1rem 0;
    font-size: 1.2rem;
    line-height: 2rem;
    width: 100%;
}



footer div {
    display: flex;
    flex-direction: column;
    margin-left: 1.5rem;
    color: white;
}


footer div a {
    text-decoration: none;
    color: white;
    transition: 0.3s ease-in;

}


footer div a:hover {
    color: var(--accent-teal);
    transition: 0.3s ease-in;
}

footer svg {
    height: 1.2rem;
    width: auto;
    fill: white;
    transition: 0.3s ease-in;
    transform: translateY(0.3rem) translateX(-0.5rem);
}


footer div a:hover > svg {
    transition: 0.3s ease-in;
}


@media screen and (orientation:landscape) {
    footer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}


@media screen and (orientation:portrait) {
    footer {
        display: flex;
        flex-direction: column;
    }

    footer div {
        margin-bottom: 1rem;
    }



}



main {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}






#opening {
    width: 100%;
    height: calc(80vh - 6rem);
    background: linear-gradient(90deg, rgba(0,194,255,1) 0%, rgba(0,97,128,1) 100%);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 6rem;
}



#opening img {
    width: 40%;
    margin-right: 2rem;
}



#opening div {
    color: white;
    margin-left: 2rem;

}


#opening div h1 {
    font-size: 7rem;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 1rem;
    font-weight: 600;

}


#opening div h2 {
    text-transform: uppercase;
}


@media screen and (orientation:portrait) {
    #opening {
        height: auto;
        min-height: calc(80vh - 6rem);
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding-top: 6rem;
    }



    #opening img {
        width: 90%;
        margin-right: 2rem;
    }
    
    
    
    #opening div {
        color: white;
        margin: 0;

    }
    
    
    #opening div h1 {
        width: 100%;
        text-align: center;
        font-size: 3.5rem;
        text-transform: uppercase;
        margin-bottom: 0;
        letter-spacing: 0.5rem;
        font-weight: 600;
    
    }
    
    
    #opening div h2 {
        text-transform: uppercase;
        font-size: 1.5rem;
        margin: 1rem;
    }
    

}

