/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background-color: #000;
    color: white;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-grow: 1;
    justify-content: center;
    gap: 30px;
}

.nav-links.left {
    justify-content: flex-end;
    margin-right: 150px;
}

.nav-links.right {
    justify-content: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    letter-spacing: 1px;
    transition: 0.3s;
}

/*.nav-links a:hover,*/
.nav-links .active {
    color: #3A8ABB;
}

/* Centered Logo */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.logo-container img {
    height: 100px;
}

/* Hamburger Menu */
.menu-icon {
    display: none;
    position: absolute;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed; /* Change from absolute to fixed */
    /*top: 80px;*/
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 0; /* Instead of max-height, we use height */
    visibility: hidden; /* Hide completely */
    opacity: 0;
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
}
.mobile-nav.show {
    height: auto; /* Let it expand naturally */
    visibility: visible;
    opacity: 1;
    padding: 20px 0;
}

.mobile-nav a {
    color: white;
    display: block;
    padding: 10px;
    text-decoration: none;
    font-size: 18px;
}

/*.mobile-nav a:hover {
    background: #3A8ABB;
}*/


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        height: auto;
        padding: 10px;
    }

    .nav-links {
        display: none;
    }

    .menu-icon {
        display: block;
        z-index: 10002; /* Keep it above everything */
    }

    .logo-container {
        display: none;
    }
    
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 10px;
    margin: 0;
    min-width: 250px;
    top: 100%;
    left: 0;
    border-radius: 5px;
}

.dropdown-menu li {
    padding: 8px 12px;
    position: relative;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

/*.dropdown-menu li a:hover {
    color: #3A8ABB;
}*/

/* Show dropdown on hover (for desktop) */
/*.dropdown:hover > .dropdown-menu {
    display: block;
}*/
.dropdown.active > .dropdown-menu {
    display: block;
}

/* Show nested submenu if parent .dropdown also has .active */
.dropdown-menu > .dropdown.active > .sub-menu {
    display: block;
    left: 100%;
    top: 0;
    margin-left: 10px;
}
/* Submenu (Second-level Dropdown) */
.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 10px;
    display: none;
}

/* Show submenu on hover */
/*.dropdown:hover > .dropdown-menu > .dropdown:hover > .sub-menu {

    display: block;
}
*/
/* Enable Clickable Dropdowns on Mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px;
        width: 100%;
    }

    .dropdown.active > .dropdown-menu {
        display: block;
    }
}
/* Mobile Dropdowns */
.dropdown-mobile {
    position: relative;
}



.dropdown-content {
    display: none;
    flex-direction: column;
    background:  #3a89bb8a;
    padding-left: 10px;
}

.dropdown-content a {
    padding: 10px;
    display: block;
    color: white;
    text-decoration: none;
}

/*.dropdown-content a:hover {
    background: #3A8ABB;
}*/

.dropdown-mobile > .dropdown-content {
    display: none;
    flex-direction: column;
  }
  
  .dropdown-mobile.active > .dropdown-content {
    display: flex;
  }
  

/* Pijlstijl */
.arrow {
    font-size: 12px;
    margin-left: 5px;
}
