html, body {
    width: 100%;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(74, 20, 140, 0.7); 
}

.nav-logo { font-family: 'Metamorphous', cursive; font-size: 1.5rem; color: #D4AF37; }

.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; }

.nav-links a { text-decoration: none; color: #E6E0D4; font-family: 'Cinzel', serif; transition: 0.3s; }

.nav-links a:hover { color: #D4AF37; }

/* Hamburger Style */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: #E6E0D4; transition: 0.3s; }

@media (max-width: 900px) {
    .navbar { padding: 20px; }
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0; /* Align to the right edge */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: calc(100vh - 70px);
        
        /* This hides the menu completely */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
        
        padding-top: 50px;
        align-items: center;
        margin: 0;
    }
    
    /* When active, slide it into view */
    .nav-links.active {
        transform: translateX(0);
    }
}