nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: 13vh;
    position: absolute;
    z-index: 3;
    width: 100%;   
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0));
    animation: navIn 2s ease;
}

nav ul{
    display: flex;  
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0;
    padding: 0; 
    height: 100%;
    align-items: center;
    width: 30%;
}

nav li{
    list-style: none;
    font-family: sans-serif;
    color: var(--white);
    font-size: 100%;
    font-weight: bold;
}

header .title{
    font-family: sans-serif; 
    font-size: clamp(35px, 6vw, 80px);
    margin: 0;
    color: var(--white); 
    animation: slideRight 2s ease;
    position: relative;
    top: 60%;
    padding: 0 5%;
    text-shadow: 2px 2px rgb(62, 62, 62);
}

header video{
    position: absolute;
    width: 100vw;
    filter: brightness(50%); /* Čím nižšie percento, tým tmavšie */
}

header{
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: start;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 45%;
}

header .arrow{
    font-size: 100px;
}

.logo{
    font-size: clamp(20px, 5vw, 40px);
    font-weight: bold;
    color: var(--white);
}

.mobile-nav{
    display: none;
    background: var(--blue);
    top: -500px;
    transition: top 0.25s ease;
}

.mobile-nav input{
    background: none;
    border: none;
    color: white;
    font-size: 15px;
}

.languages-container form{
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.lang-picker{
    display: flex;
    gap: 10px;
    color: white;
}

.lang-picker input{
    background: 0;
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.lang-picker form{
    margin: 0;
}

.hamburger{
    display: none;
}
.line{
    height: 2.5px;
    background: var(--white);
    width: 30px;
}

@media screen and (max-width: 800px) {
    .mobile-nav {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
        position: fixed;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 5%;
        padding-bottom: 50px;   
        top: -100%; /* Skrytá pozícia */
        transition: top 0.25s ease;
        z-index: 2;
    }
    
    .mobile-nav.active {
        padding-top: 13vh;
        top: 0vh;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0));
    }
    
    .mobile-nav a div{
        text-decoration: none;
        color: var(--white);
        font-weight: bold;
    }
    .languages-container{
        display: flex;
        width: 100%;
        justify-content: space-around;
        font-size: 10px;
        text-align: center;
        line-height: 1.1;
        color: var(--white);
        border-top: 1px dotted white;
        padding-top: 40px;
        font-size: 15px;
    }
    nav ul{
        display: none;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        appearance: none;
        background: none;
        outline: none;
        border: none;
        margin-right: 10vw;
    }

    .logo{
        margin-left: 10vw;
    }
    
    .hamburger div {
        width: 30px;
        height: 3px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    
    /* Keď je aktívne */
    .hamburger.active div:nth-child(2) {
        opacity: 0; /* Skryjeme prostrednú čiaru plynule */
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 7px);
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    nav{
        justify-content: space-between;
    }
}

@media screen  and (max-width: 1000px){
    header video{
        width: auto;
        height: 100vh;
    }
}

@media screen  and (max-width: 700px){
    header{
        justify-content: start;
        align-items: center;
    }
    header .title{
        top: 70%;
    }
}