/* ==========================================================================
   PXVERS PREMIUM MOBILE NAVIGATION
   ========================================================================== */

:root {
    --px-nav-bg: rgba(3, 6, 16, 0.98);
    --px-nav-text: #ffffff;
    --px-nav-accent: #60a5fa;
    --px-nav-accent-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --px-nav-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay Base */
.px-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--px-nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999999; /* Higher than everything */
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.px-mobile-nav.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Close Button */
.px-nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--px-nav-transition);
    z-index: 101;
}

.px-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Content Area */
.px-nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 4rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.px-nav-content::-webkit-scrollbar {
    display: none;
}

/* Logo Section */
.px-nav-header {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.px-nav-header img {
    height: 60px;
    border-radius: 12px;
}

.px-nav-header span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--px-nav-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Links List */
.px-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.px-nav-item {
    width: 100%;
}

.px-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    padding: 1.1rem;
    border-radius: 18px;
    transition: var(--px-nav-transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.px-nav-link:hover, .px-nav-link.is-active {
    background: rgba(96, 165, 250, 0.08);
    color: var(--px-nav-accent);
    border-color: rgba(96, 165, 250, 0.15);
}

/* Accordion Arrows */
.px-nav-link i {
    font-size: 0.9rem;
    margin-left: 12px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

/* Submenu container */
.px-nav-submenu {
    display: none; /* Controlled by JS */
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    margin-top: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.px-nav-sub-link {
    display: block;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.px-nav-sub-link:hover {
    color: var(--px-nav-accent);
    background: rgba(255, 255, 255, 0.03);
}

/* CTA & Socials */
.px-nav-footer {
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.px-nav-cta {
    width: 100%;
    max-width: 320px;
    background: var(--px-nav-accent-gradient);
    color: #fff;
    padding: 1.2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.4);
    transition: var(--px-nav-transition);
}

.px-nav-socials {
    display: flex;
    gap: 1.5rem;
}

.px-nav-social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--px-nav-transition);
}

.px-nav-social:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Scroll Lock for Body */
body.px-nav-locked {
    overflow: hidden !important;
    touch-action: none; /* Disable touch gestures */
    -webkit-overflow-scrolling: auto;
    position: relative;
}

/* ==========================================================================
   MOBILE TOGGLE BUTTON (Hamburger)
   ========================================================================== */

.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    margin-left: 1rem;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: #60a5fa;
}

/* Make sure header displays the button on mobile and hides the desktop nav */
@media (max-width: 1024px) {
    .header .nav-menu {
        display: none !important;
    }
    .header .mobile-toggle {
        display: flex !important;
    }
    .header .nav-actions {
        display: none !important;
    }
    .header-email {
        display: none !important;
    }
}
