/* HAMBURGER BUTTON — hidden on desktop */
.hamburger{
    display:none;
    flex-direction:column;
    justify-content:space-between;
    width:26px;
    height:19px;
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
    z-index:1100;
}

.hamburger span{
    display:block;
    width:100%;
    height:3px;
    background:#111;
    border-radius:2px;
    transition:0.3s ease;
}

.dark-mode .hamburger span{
    background:#fff;
}

/* animate to an X when the menu is open */
.hamburger.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2){
    opacity:0;
}
.hamburger.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}

/* dark overlay behind the sidebar */
.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    opacity:0;
    pointer-events:none;
    transition:opacity 0.35s ease;
    z-index:900;
}

.nav-overlay.active{
    opacity:1;
    pointer-events:auto;
}

@media screen and (max-width:768px){

    
    .navbar{
        position:fixed;
        justify-content:space-between;
    }

    .hamburger{
        display:flex;
        order:1;
    }

    .logo{
        order:2;
        flex:1;
        text-align:center;
        font-size:20px;
    }

    .resume-btn{
        order:3;
    }

    
    .nav-links{
        position:fixed;
        top:0;
        right:-280px;
        width:260px;
        height:100vh;
        margin:0;
        background:#ffffff;
        flex-direction:column;
        align-items:flex-start;
        justify-content:flex-start;
        gap:28px;
        padding:100px 35px;
        box-shadow:-8px 0 30px rgba(0,0,0,0.15);
        transition:right 0.4s ease;
        z-index:1050;
    }

    .nav-links.active{
        right:0;
    }

    .nav-links a{
        font-size:17px;
    }

    .dark-mode .nav-links{
        background:#1a1a1a;
    }
}
