/* --- 1. CORE NAVIGATION STYLES --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 1rem 5%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #1a1a1a;
    position: relative;
}

.nav-logo img {
    height: 60px;
}

/* --- 2. MOBILE MENU STYLES (Default) --- */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5rem;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.8);
    border-left: 1px solid #1a1a1a;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
}

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

.nav-link {
    font-family: sans-serif;
    font-weight: 500;
    color: #999999;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    transition: color 0.2s, background-color 0.2s;
    border-bottom: 1px solid #1a1a1a;
}

.nav-link:hover {
    background-color: #111111;
    color: #f0f0f0;
}

.nav-link.active {
    color: #808080;
    font-weight: 600;
}

/* --- 3. ACTION BUTTONS --- */
.nav-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn-clear,
.btn-color {
    font-family: sans-serif;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-clear {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    color: #cccccc;
}

.btn-clear:hover {
    background-color: #1a1a1a;
    color: #f0f0f0;
    border-color: #444;
}

.btn-color {
    background-color: #808080;
    border: 1px solid #808080;
    color: #ffffff;
}

.btn-color:hover {
    background-color: #6a6a6a;
    border-color: #6a6a6a;
    color: #ffffff;
}

/* --- 4. HAMBURGER ICON --- */
.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #f0f0f0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animate to X */
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay for mobile */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    backdrop-filter: blur(3px);
}
.nav-overlay.active { display: block; }

/* --- 5. DESKTOP STYLES --- */
@media (min-width: 992px) {
    .hamburger { display: none; }

    .nav-menu {
        position: static;
        flex-direction: row;
        align-items: center;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        border-left: none;
        padding-top: 0;
        right: 0;
        transition: none;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        width: auto;
        min-width: 100px;
        font-size: small;
        border-bottom: none;
    }

    .nav-link.active {
        border-bottom: 2px solid #808080;
        color: #f0f0f0;
    }

    .nav-link:hover {
        background-color: transparent;
        color: #f0f0f0;
    }

    .nav-actions {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: 1rem;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: nowrap;
    }
}
