/* Navbar-specific styles moved here from utilities.css */

/* Navbar container - apply specifically to injected navbar under #navbar-placeholder to avoid conflicts */
#navbar-placeholder>.navbar,
.navbar {
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--COLOR-7);
    z-index: 1000;
}

.nav-title-link {
    color: black;
    text-decoration: none;
}

.nav-title-link:hover {
    text-decoration: underline;
}

/* Resume buttons (right side of navbar) */
#resume-buttons-container {
    display: flex;
    gap: 16px;
}

/* Hamburger menu - hidden on desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--COLOR-7);
    border-left: 2px solid #1a1a1a;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-link {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px solid rgba(26, 26, 26, 0.1);
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--COLOR-1);
}

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {

    #navbar-placeholder>.navbar,
    .navbar {
        padding: 12px 20px;
    }

    /* Hide desktop nav items on mobile */
    .navbar a.button,
    #resume-buttons-container {
        display: none;
    }

    /* Show hamburger on mobile */
    .hamburger-menu {
        display: flex;
    }
}

a.button#home-button {
    background-color: var(--COLOR-3);
}

a.button#goto-experiences-page-button {
    background-color: var(--COLOR-1);
}

a.button#goto-projects-page-button {
    background-color: var(--COLOR-1);
}


a.button#ee-resume-button {
    background-color: var(--COLOR-4);
}

a.button#swe-resume-button {
    background-color: var(--COLOR-6);
}

/* a.button#swe-resume-button {
    padding: 5px 10px;
    background-color: var(--COLOR-6);
    border: 3px solid #141414;
}

a.button#swe-resume-button .button-text {
    font-size: 10px;
}
 */

a.button#swe-resume-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 150ms ease, transform 150ms ease;
    position: absolute;
    top: 100%;
    right: 50px;
    margin-top: -7px;
}

a.button#ee-resume-button {
    position: relative;
}

/* Reveal SWE button when hovering the EE resume button or the SWE button itself */
a.button#ee-resume-button:hover+a.button#swe-resume-button,
a.button#swe-resume-button:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Prevent brief hover-loss when moving the mouse from the EE resume button to the SWE resume button
   by extending the EE button's hover area down into the gap on hover-capable devices. */
@media (hover: hover) and (pointer: fine) {
    a.button#ee-resume-button::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 20px;
        background: transparent;
        pointer-events: auto;
    }
}