* {
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    padding-top: 40px;
}

/* TOP BAR */
.top-bar {
    width: 100%;
    background-color: #222;
    color: white;
    font-size: 13px;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: top 0.3s ease-in-out;
}

.top-bar-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* left, center, right */
    box-sizing: border-box;
    flex-wrap: wrap;
}

.top-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}

.top-bar-center a {
    color: #f5841e;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-center a:hover {
    color: white;
    transform: translateY(-2px);
}

.top-bar-button {
    background-color: white;
    color: #f5841e;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-button:hover {
    background-color: #ffd9b3; /* optional hover effect */
}



/* NAV BAR */
nav{
    padding-bottom: 5px;
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0px;            
    z-index: 1000;  
}
nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
nav li{
    height: 50px;
}
nav a{
    height: 100%;
    padding: 0 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
    font-size: 15px;
    position: relative;
}

nav a:hover{
    background: transparent;
}nav > ul:not(.sidebar) a::after{
    content: "";
    position: absolute;
    left: 15px;
    bottom: 6px;
    width: calc(100% - 30px);
    height: 3px;
    background: #f5841e;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

nav > ul:not(.sidebar) li:not(.logo) a:hover::after {
    transform: scaleX(1);
}
nav > ul:not(.sidebar) a.active::after{
    transform: scaleX(1);
}
nav li:first-child{
    margin-right: auto;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.500);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

     transform: translateX(100%);

    /* Animatie */
    transition: transform 0.35s ease;

    /* Belangrijk */
    visibility: hidden;
}
.sidebar.active {
    transform: translateX(0);
    visibility: visible;
}

.sidebar li{
    width: 100%;
}
.sidebar a{
    width: 100%;
}
.menu-button{
    display: none;
}
.logo{
    padding: 10px 0;
}
.logo img{
    width:150px;
    height: auto;
}


/* Responsive: onder elkaar op small screens */
@media(max-width: 950px){
    .hideOnMobile{
        display:none;
    }
    .menu-button{
        display: block;
    }
}


@media (max-width: 400px) {
    body {
        padding-top:100px;
    }
    .top-bar {
        padding: 8px 10px;
    }

    .top-bar-content {
        justify-content: center;
        row-gap: 8px;
    }

    .top-bar-center {
        flex: none;
        width: 100%;
        justify-content: center;
        gap: 24px;
    }

}