
/* Desktop navbar */

.header {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 100;
}
  
.header__inner {
    position: relative;
    padding: 25px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(0); /*backdrop filter toevoegen on scroll met javascript*/
    transition: all .35s ease;
}

.header__menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ffffff;
}

.page-under-construction__header {
    position: relative;
}

.page-under-construction__header--image {
    position: absolute;
    width: 100px;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.navbar-blur {
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
}

.navbar-blue {
    background: var(--secondary-color);
}

.header__logo {
    display: block;
    height: 60px;
}

.header__menu--list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centreert de lijstitems */
    align-items: center;
}

header li {
    margin: 0 40px; /* Voegt ruimte toe tussen de lijstitems */ 
    font-weight: 400;
    font-size: 18px;
}
  
header ul li a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
}

header ul li a {
    transition: color 0.3s ease; /* Adjust the duration and easing as needed */
}

header ul li a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    height: 1px;
    width: 0;
    background-color: #ffffff;
    transition: .2s ease;
} 

header a:hover:after {
    left: 0;
    width: 100%;
}

.header__desktop-button--wrapper {
    display: flex;
    justify-content: end;
}

.header__desktop-button {
    color: #ffffff;
    background: #6495ED;
    text-decoration: none;
    outline: none;
    padding: 20px 30px;
    transition: transform .3s;
    border: 3px solid white;
    font-size: 17px;
    border-radius: 30px;
}

.header__desktop-button:hover {
    transform: scale(1.03);
}

/* End desktop navbar */

/* Mobile navbar */

.header__inner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: -1;
    opacity: 0;
    transition: left .25s ease-in;
}

.header__inner--open:before {
    left: 0;
    opacity: 1;
}

.header__menu-toggle {
    display: none;
    position: relative;
    height: 24px;
    width: 32px;
}

.header__menu-toggle span {
    display: block;
    position: absolute;
    background-color: #ffffff;
    width: 100%;
    height: 2px;
    transition: .25s ease;
}

.header__menu-toggle .header__menu-toggle__top {
    left: 0;
    top: 0;
    transition: .25s ease;
}

.header__menu-toggle .header__menu-toggle__middle-1, .header__menu-toggle .header__menu-toggle__middle-2 {
    left: 0;
    top: calc(50% - 1px);
    transition: .25s ease;
}

.header__menu-toggle .header__menu-toggle__bottom {
    right: 0;
    bottom: 0;
    width: 75%;
    transition: .25s ease;
}

.header__inner--open .header__menu-toggle .header__menu-toggle__top { /* When the mobile nav is opened*/
    top: calc(50% - 1px);
    opacity: 0;
}

.header__inner--open .header__menu-toggle .header__menu-toggle__bottom { /* When the mobile nav is opened*/
    bottom: calc(50% - 1px);
    opacity: 0;
}

.header__inner--open .header__menu-toggle .header__menu-toggle__middle-1 { /* When the mobile nav is opened*/
    transform: rotate(-45deg);
}

.header__inner--open .header__menu-toggle .header__menu-toggle__middle-2 { /* When the mobile nav is opened*/
    transform: rotate(45deg);
}


.header__menu--socials {
    display: none;
    justify-content: center;
    gap: 5vw;
    opacity: 0;
    padding-top: 50px;
}

.header__menu--social__icon {
    width: 40px;
}

.header__inner--open .header__menu--socials { /* When the mobile nav is opened*/
    animation: fade-up .5s ease forwards;
    animation-delay: .85s;
}


.header__inner--open .header__menu--list li { /* When the mobile nav is opened*/
    animation: list .35s ease forwards;
}

.header__menu--list li:first-child {
    animation-delay: .4s;
}

.header__menu--list li:nth-child(2) {
    animation-delay: .5s;
}

.header__menu--list li:nth-child(3) {
    animation-delay: .6s;
}

.header__menu--list li:nth-child(4) {
    animation-delay: .7s;
}


.header__inner--open .header__menu {
    animation: menu-enter .5s ease forwards;
    animation-delay: .25s;
}

.header__menu--close-menu {
    animation: menu-leave 0.25s ease-in forwards;
}

header li[aria-current="page"] {
    position: relative;
    pointer-events: none;
    cursor: default;
}

header li[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    height: 1px;
    width: 100%;
    background-color: #ffffff;
}

@media only screen and (max-width: 1200px) {
    .header__desktop-button--wrapper {
        display: none;
    }

    .header__menu-toggle {
        display: block;
    }

    .header__menu {
        position: fixed;
        display: block;
        transform: none;
        left: auto;
        right: 0;
        top: -110svh;
        background-color: var(--secondary-color);
        height: 110svh;
        width: 100%;
        z-index: -1;
        padding-top: 100px;
    }

    .header__menu--list {
        flex-direction: column;
    }

    .header__menu--socials {
        display: flex;
    }
    
    header li {
        opacity: 0;
    }

    .header__menu--list {
        padding-top: 40px;
        gap: 30px;
    }

    header li {
        margin: 0;
        font-size: 22px;
    }

    .header__menu--social__icon {
        width: 5vw;
    }
}

@media only screen and (max-width: 600px) {
    .header__logo {
        height: 45px;
    }

    .header__logo--wrapper {
        opacity: 0;
        transition: opacity 0.25s ease-out;
        pointer-events: none;
    }

    .show-header-logo {
        opacity: 1;
        pointer-events: auto;
    }

    .header__menu--social__icon {
        width: 10vw;
    }
}


@keyframes menu-leave { /* animation to close the mobile nav */
    0% {
        left: 0;
        top: 0;
        opacity: 1;
    }
    100% {
        top: 0;
        right: -100%;
        opacity: 0;
    }
}


@-webkit-keyframes menu-leave { /* animation to close the mobile nav */
    0% {
        left: 0;
        top: 0;
        opacity: 1;
    }
    100% {
        top: 0;
        right: -100%;
        opacity: 0;
    }
}



@-webkit-keyframes menu-enter { /* animation to open the mobile nav */
    0% {
        top: -110svh;
    }
    100% {
        top: 0;
    }
}

@keyframes menu-enter { /* animation to open the mobile nav */
    0% {
        top: -110svh;
    }
    100% {
        top: 0;
    }
}



@-webkit-keyframes fade-up { /* animation to open the mobile nav */
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up { /* animation to open the mobile nav */
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



@-webkit-keyframes list { /* animation to open the mobile nav */
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes list { /* animation to open the mobile nav */
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



