/* Hamburger Menu Styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: #000000;  /* Changed to match your dark theme */
    padding: 1rem;
    z-index: 1000;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    position: absolute;
    top: 1rem;
    right: 15%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2;
}

.nav-toggle-label span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav {
    position: fixed;
    top: 0;
    right: -350px;
    height: 100vh;
    width: 350px;
    background: #000000;  /* Changed to match your theme */
    padding-top: 60px;
    transition: right 0.3s ease;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav li {
    margin: 0;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 1rem 2rem;
    transition: background 0.3s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);  /* Matches your hover style */
}

/* Show menu when checkbox is checked */
.nav-toggle:checked ~ .nav {
    right: 0;
}

/* Hamburger icon animation */
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay */
.nav-toggle:checked ~ .nav::before {
    content: '';
    position: fixed;
    top: 0;
    right: 350px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Integrating your media queries */
@media (max-width: 651px) {
    .navbar {
        display: none;
    }
    .homescreenelement {
        display: none;
    }
    .logo {
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    }
    .navbar {
        background: transparent;
    }
    .naam {
        font-size: 70px;
    }
    .title {
        font-size: 60px;
    }
    .hamburger-menu {
        display: block;
        position: absolute;
        left: 85%;
        top: 15px;
    }
    .offscreennav {
        display: flex;
    }
}

/* Keep your existing styles for other elements */
.offscreennav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.offscreennav.active {
    opacity: 1;
    visibility: visible;
}

.ofscreennav-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}
