/* navbar.css - FINAL FIX */

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333; /* Solid background color */
    z-index: 9999; /* Super high z-index to sit on top of everything */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);

    /* --- THE GHOST MODE FIX --- */
    /* 1. Move it up */
    transform: translateY(-100%);
    /* 2. Make it invisible so no 'dots' can be seen */
    opacity: 0;
    visibility: hidden;
    
    /* Smooth animation for both movement and fade */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
}

/* When JavaScript adds this class, we show the menu */
#navbar.show-nav {
    transform: translateY(0); /* Move down */
    opacity: 1;               /* Make fully visible */
    visibility: visible;      /* Enable interaction */
}

/* --- REMOVING DOTS & DASHES --- */
/* We use !important to override anything in styles.css */
.nav-list {
    list-style: none !important; 
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list li {
    list-style: none !important;
    margin: 0 15px;
    padding: 0;
}

.nav-list a {
    text-decoration: none !important; /* Removes link underlines */
    color: white;
    font-size: 1rem;
    font-family: sans-serif; 
}

/* --- MOBILE STYLES --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* navbar.css - MOBILE FIXES */

@media screen and (max-width: 768px) {
    /* FIX 1: Make sure the navbar is tall enough to hold the button */
    #navbar {
        min-height: 70px; /* Forces background to stretch down behind the button */
        display: flex;    /* Helps align things */
        align-items: center;
    }

    .menu-toggle {
        display: block; 
        position: absolute;
        right: 20px;
        top: 20px; /* Adjusted to center vertically in the new 70px height */
        cursor: pointer;
        z-index: 10001; /* Ensure button is on top of the background */
    }

    /* FIX 2: FORCE the lines to be White */
    .bar {
        background-color: #ffffff !important; /* !important overrides any default settings */
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        border-radius: 2px; /* Makes the edges slightly rounded and smoother */
    }

    /* The dropdown list styles */
    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #333;
        width: 100%;
        position: absolute; /* Detach from the header bar */
        top: 70px; /* Start exactly where the header bar ends */
        left: 0;
        padding-bottom: 30px !important;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3); /* Adds a shadow for depth */
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .divider {
        display: none;
    }
}

