header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 24px;
    background-color: rgba(0, 67, 106, 0.9);
    backdrop-filter: blur(4px); /* achtergrond blur header */
    -webkit-backdrop-filter: blur(4px); /* voor safari blur */
    color: white;
    border-radius: 999px;
    width: 95%;
    margin: 24px auto;
    min-width: 300px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999999999999999999999999999999;
}

@media (max-width:1080px){
    header {
        flex-direction: row;
        text-align: center;
        gap: 16px;
        max-width: 95vw;
        align-self: center;
    }
    
}

header a {
    text-decoration: none;
    padding: 8px 24px;
    background: var(--third-color);
    border-radius: 999px;
    transition: background 0.3s, color 0.3s, transform 0.3s ease;
    display: inline-block;
    color: white;
    transform: scale(1);
}

header a:hover {
    background: var(--link-color);
    text-decoration: underline;
    transform: scale(1.05);
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.logo-container p {
    color: lightgray;
}

.logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    z-index: 1000000000;
}

.headerlinks {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.headerlinks nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.headercontact {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

header h1 {
    margin: 0;
    font-size: 24px;
    vertical-align: middle;
    z-index: 1000000000;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

header nav a:hover {
    text-decoration: underline;
}

#theme-toggle {
    text-decoration: none;
    font-weight: bold;
    background: var(--third-color);
    border-radius: 999px;
    transition: background 0.3s, color 0.3s, transform 0.3s ease;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#theme-toggle:hover {
    background: var(--link-color);
    color: var(--text-light);
    transform: scale(1.05);
}


.headerlink {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.5s ease;
    white-space: nowrap;
}

.headerlink:hover {
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.headerlink::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.headerlink:hover::after {
    width: 100%;
}

/* Hamburger standaardstijl */
.hamburger {
  display: none; /* standaard verborgen op desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000000000;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:hover span {
  background: #086ca4;
}

/* Verborgen menu standaard op mobiel */
@media (max-width: 1080px) {
  .headerlinks {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    width: 95vw;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 24px;
    background: rgba(0, 67, 106, 0.95);
    display: none; /* Make sure the menu is hidden by default */
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
  }

  .headerlinks.show {
    display: flex; /* This shows the menu when the class is added */
    animation: slideDown 0.3s ease forwards;
  }

  .headerlinks nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hamburger {
    display: flex; /* alleen op mobiel */
  }
}


/* Animatie */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
