/* =========================================
   NAVIGATIE
========================================= */


/* HAMBURGER ICON */

#navbar .icon {
    width: 34px;
    height: 26px;

    position: relative;

    cursor: pointer;
}

#navbar .icon span {
    position: absolute;

    left: 0;

    width: 100%;
    height: 4px;

    background: white;

    border-radius: 4px;

    transition: 0.3s ease;
}

#navbar .icon span:nth-child(1) {
    top: 0;
}

#navbar .icon span:nth-child(2) {
    top: 11px;
}

#navbar .icon span:nth-child(3) {
    top: 22px;
}


/* OPEN = KRUIS */

#navbar .icon.active span:nth-child(1) {
    top: 11px;

    transform: rotate(45deg);
}

#navbar .icon.active span:nth-child(2) {
    opacity: 0;
}

#navbar .icon.active span:nth-child(3) {
    top: 11px;

    transform: rotate(-45deg);
}



/* =========================================
   MOBIEL
========================================= */

/* Hamburger knop volledig transparant */

#navbar .icon {
    width: 34px;
    height: 26px;

    position: relative;

    display: block;

    padding: 0;
    margin: 0;

    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;

    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

#navbar .icon:hover,
#navbar .icon:active,
#navbar .icon:focus {
    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;
}

#navbar .icon::before,
#navbar .icon::after {
    background: transparent;
}

@media screen and (max-width: 767px) {

  #navbar {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 999;

    width: 100%;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    box-sizing: border-box;

    background: rgba(15,15,15,0.96);

    border-bottom: 3px solid #e30613;
  }

  #navbar img {
    height: 48px;
    width: auto;
  }

  #navbar .icon {
    display: block;
  }

#navbar #menu {
    position: absolute;

    top: 72px;
    left: 0;

    width: 100%;

    background: rgba(15,15,15,0.98);

    padding: 20px 0;

    display: none;

    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

#navbar #menu.open {
    display: block;
}

  #navbar #mylinks,
  #navbar #talenmenu {
    display: flex;

    flex-direction: column;

    align-items: center;

    list-style: none;

    margin: 0;
    padding: 0;
  }

  #navbar #mylinks {
    gap: 22px;

    margin-bottom: 25px;
  }

  #navbar #talenmenu {
    gap: 16px;
  }

  #navbar li {
    margin: 0;
    padding: 0;
  }

  #navbar a {
    color: white;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    text-transform: uppercase;

    transition: 0.25s ease;
  }

  #navbar a:hover {
    color: #e30613;
  }

}



/* =========================================
   TABLET
========================================= */

@media screen and (min-width: 768px) and (max-width: 1280px) {

  #navbar {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 999;

    width: 100%;
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    box-sizing: border-box;

    background: rgba(15,15,15,0.94);

    border-bottom: 4px solid #e30613;
  }

  #navbar img {
    height: 52px;
    width: auto;
  }

  #navbar .icon {
    display: block;
  }

#navbar #menu {
    position: absolute;

    top: 78px;
    left: 0;

    width: 100%;

    background: rgba(15,15,15,0.98);

    padding: 30px 0;

    display: none;

    max-height: calc(100vh - 78px);
    overflow-y: auto;
}

#navbar #menu.open {
    display: block;
}

  #navbar #mylinks,
  #navbar #talenmenu {
    display: flex;

    flex-direction: column;

    align-items: center;

    list-style: none;

    margin: 0;
    padding: 0;
  }

  #navbar #mylinks {
    gap: 24px;

    margin-bottom: 30px;
  }

  #navbar #talenmenu {
    gap: 16px;
  }

  #navbar li {
    margin: 0;
    padding: 0;
  }

  #navbar a {
    color: white;

    text-decoration: none;

    font-size: 18px;
    font-weight: 800;

    text-transform: uppercase;

    transition: 0.25s ease;
  }

  #navbar a:hover {
    color: #e30613;
  }

}



/* =========================================
   DESKTOP
========================================= */

@media screen and (min-width: 1281px) {

  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;

    width: 100%;
    height: 82px;

    display: flex;
    align-items: center;

    padding: 0 32px;
    box-sizing: border-box;

    background: rgba(15, 15, 15, 0.92);
    border-bottom: 4px solid #e30613;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }

  #navbar .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  #navbar img {
    height: 64px;
    width: auto;
    display: block;
  }

  #navbar #menu {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-left: 24px;
  }

  #mylinks,
  #talenmenu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
  }

  #mylinks {
    gap: clamp(12px, 1.2vw, 28px);
    flex-wrap: nowrap;
  }

  #talenmenu {
    gap: 16px;
    margin-left: 24px;
    flex-shrink: 0;
  }

  #navbar li {
    padding: 0;
    margin: 0;
    flex-shrink: 1;
  }

  #navbar a {
    position: relative;

    color: white;
    text-decoration: none;

    font-size: clamp(13px, 0.85vw, 16px);
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.3px;

    white-space: nowrap;

    transition: 0.25s ease;
  }

  #navbar a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 3px;

    background: #e30613;
    border-radius: 10px;

    transition: 0.25s ease;
  }

  #navbar a:hover {
    color: #e30613;
  }

  #navbar a:hover::after {
    width: 100%;
  }

  #talenmenu a {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
  }

  #talenmenu a:hover {
    background: #e30613;
    color: white;
    border-color: #e30613;
  }

  #navbar .icon {
    display: none;
  }

}


/* =========================================
   EINDE NAVIGATIE
========================================= */