/* ==================== */
/* NAVBAR - ZWART THEMA */
/* ==================== */

/* Header/navbar styling */
header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

/* Container binnen header */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Logo styling */
header img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

header a:hover img {
    transform: scale(1.05);
}

/* Navigatie container */
nav {
    display: flex;
    align-items: center;
}

/* DESKTOP MENU - standaard styling */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Navigatielinks */
nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #2a66a1;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2a66a1;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Active link */
nav a[aria-current="page"] {
    color: #2a66a1;
    font-weight: 600;
}

nav a[aria-current="page"]::after {
    width: 100%;
    background-color: #2a66a1;
}

/* ==================== */
/* MOBILE HAMBURGER MENU */
/* ==================== */

/* Hamburger knop - alleen zichtbaar op mobiel */
.mobile-menu-button {
    display: none;
    background: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #000000;
    z-index: 1002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button:hover {
    background: #2a66a1;
    border-color: #2a66a1;
}

.mobile-menu-button[aria-expanded="true"] {
    background: #2a66a1;
    border-color: #2a66a1;
}

/* ==================== */
/* MOBILE STYLES (< 768px) */
/* ==================== */
@media (max-width: 768px) {
    /* Toon hamburger knop */
    .mobile-menu-button {
        display: flex !important;
    }

    /* Verberg standaard menu */
    nav ul {
        display: none !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #000000 !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.9);
        border-top: 2px solid #2a66a1;
        z-index: 1001 !important;
        height: auto !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        transform: translateY(-10px);
    }

    /* Toon menu met animatie */
    nav ul.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    /* Menu items styling */
    nav ul li {
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #333;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* Links styling */
    nav a {
        display: block;
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem;
        width: 100%;
        box-sizing: border-box;
        color: #ffffff !important;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }

    nav a:hover {
        background: #2a66a1;
        color: #ffffff !important;
        border-left: 4px solid #ffffff;
        padding-left: calc(2rem - 4px) !important;
    }

    nav a::after {
        display: none;
    }

    /* Active state in mobiel menu */
    nav a[aria-current="page"] {
        background: rgba(42, 102, 161, 0.2);
        border-left: 4px solid #2a66a1;
        color: #2a66a1 !important;
    }

    /* Overlay achtergrond wanneer menu open is */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(2px);
        z-index: 1000;
    }

    /* Voorkom scrollen wanneer menu open is */
    body.menu-open {
        overflow: hidden;
    }
}

/* ==================== */
/* EXTRA: Voor hele kleine schermen */
/* ==================== */
@media (max-width: 480px) {
    .mobile-menu-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    nav a {
        padding: 1rem 1.5rem !important;
        font-size: 1rem;
    }

    nav ul {
        top: 70px !important;
    }

    body.menu-open::after {
        top: 70px;
    }
}