/* css/mobile-nav.css */

/* --- Mobile Navigation Specific CSS --- */

/* Hide horizontal navigation by default on small screens */
/* This will be overridden by JS for mobile */
nav ul.nav-links {
    display: none; 
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    /* Using rgba for background color to maintain consistency with your dark theme */
    background-color: rgba(10, 10, 26, 0.95); 
    /* Using your theme's glow/border colors */
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.3); 
    border-top: 1px solid #00b05b; /* --border-dark equivalent */
    animation: slideDownFadeIn 0.4s ease-out forwards;
    z-index: 999; /* Ensure it's above other content but below header */
}

/* Animation for sliding down the mobile menu */
@keyframes slideDownFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Show mobile navigation when 'show' class is added by JS */
nav ul.nav-links.show {
    display: flex;
}

/* Style for individual mobile menu items */
nav ul.nav-links li {
    border-bottom: 1px solid rgba(0, 230, 118, 0.2); /* Separator */
}

nav ul.nav-links li:last-child {
    border-bottom: none;
}

nav ul.nav-links li a {
    display: block;
    color: #e0e0e0; /* --text-light equivalent */
    text-decoration: none;
    font-weight: 600;
    padding: 15px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a.active {
    background-color: rgba(0, 230, 118, 0.1); /* Hover effect */
    color: #00e676; /* --primary-color equivalent */
}

/* Hamburger Menu Icon (initially hidden on desktop, shown on mobile) */
.menu-toggle {
    display: none; /* Hidden by default (for desktop) */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #00e676; /* --primary-color equivalent */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animation for hamburger to cross icon */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Media Queries for Responsive Behavior --- */
@media (min-width: 769px) { /* On larger screens (desktop) */
    nav ul.nav-links {
        display: flex; /* Show horizontal nav */
        flex-direction: row;
        position: static; /* Reset position */
        background-color: transparent; /* No background */
        box-shadow: none;
        border-top: none;
        animation: none;
        z-index: auto;
    }

    nav ul.nav-links li {
        margin-left: 35px; /* Spacing for desktop links */
        border-bottom: none;
    }

    nav ul.nav-links li a {
        padding: 5px 10px; /* Reset padding for horizontal nav */
    }

    .menu-toggle {
        display: none; /* Hide hamburger icon */
    }
}

@media (max-width: 768px) { /* On smaller screens (mobile) */
    .menu-toggle {
        display: flex; /* Show hamburger icon on mobile */
    }
    header .container {
        justify-content: space-between; /* Space out logo and toggle */
    }
}