/* --- Desktop Styles (Default) --- */
.hamburger-menu {
    display: none; 
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    
}

/* --- Mobile Styles (Using Media Query) --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 60px; 
        right: 0;
        width: 25%;
        background-color: #4d4d4d; 

        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000; 
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .nav-links.active { 
        display: flex; 
        
    }

    .hamburger-menu {
        display: block; 
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute; 
        right: 20px;
        top: 15px;
        z-index: 1001; 
    }

    /* Styles for the individual bars of the hamburger icon */
    .hamburger-menu .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }

    /* Optional: Styles for the 'X' effect when open */
    .hamburger-menu.active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .icon-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .icon-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}