/* Navigation Menu Styles */

/* Hamburger Menu Button */
.menu-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 101;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0.5rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Hamburger Icon (3 lines) */
.menu-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    display: block;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

/* Active state - X icon */
.menu-btn.active .menu-icon {
    background: transparent;
}

.menu-btn.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-btn.active .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Navigation Menu Container */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu.active {
    pointer-events: auto;
    opacity: 1;
}

/* Navigation Backdrop */
.nav-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu.active .nav-backdrop {
    opacity: 1;
}

/* Navigation Container (Slide-in Panel) */
.nav-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: rgba(29, 8, 71, 0.98);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.nav-menu.active .nav-container {
    transform: translateX(0);
}

/* Close Button */
.nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Navigation List */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 4rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-list li {
    margin: 0;
}

/* Navigation Links */
.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 500;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .menu-btn {
        top: 1.5rem;
        right: 1.5rem;
        width: 38px;
        height: 38px;
    }

    .nav-container {
        width: 280px;
    }

    .nav-list {
        padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    }

    .nav-link {
        font-size: 17px;
        padding: 0.9rem 1.2rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .menu-btn {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .menu-icon {
        width: 18px;
    }

    .menu-icon::before,
    .menu-icon::after {
        width: 18px;
    }

    .nav-container {
        width: 260px;
        padding: 1.5rem 0;
    }

    .nav-close {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .nav-list {
        padding: 3rem 1rem 1rem 1rem;
        gap: 0.3rem;
    }

    .nav-link {
        font-size: 16px;
        padding: 0.8rem 1rem;
    }
}

/* Accessibility - Focus States */
.menu-btn:focus,
.nav-close:focus,
.nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
