/* 
   MOBILE FIX OVERRIDES v3.1 - CYBERPUNK HUD EDITION
   Bypassing style.css due to file lock issues
*/

@media (max-width: 992px) {

    /* NAVIGATION - CYBERPUNK HUD */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;

        /* Deep Cyber Dark */
        background: rgba(3, 3, 5, 0.98) !important;
        backdrop-filter: blur(40px) !important;
        -webkit-backdrop-filter: blur(40px) !important;

        /* Scanline Overlay */
        background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
        background-size: 100% 4px, 6px 100%;

        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 0 !important;
        z-index: 99999 !important;

        transform: translateY(-100%);
        /* Slide down from top like a terminal */
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-bottom: 2px solid #00F0FF !important;
        box-shadow: 0 10px 50px rgba(0, 240, 255, 0.2) !important;
        display: flex !important;
        visibility: visible !important;
    }

    .nav-links.nav-active {
        transform: translateY(0) !important;
    }

    /* TECH DECORATIONS */
    .nav-links::before {
        content: "SYSTEM_ACCESS_GRANTED // MENU_OVERLAY_V3";
        position: absolute;
        top: 20px;
        left: 20px;
        font-family: monospace;
        color: #00F0FF;
        font-size: 0.7rem;
        opacity: 0.7;
        letter-spacing: 2px;
    }

    .nav-links::after {
        content: "";
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-bottom: 2px solid #00F0FF;
        border-right: 2px solid #00F0FF;
    }

    /* MENU ITEMS */
    .nav-item {
        margin: 1rem 0 !important;
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        width: 80% !important;
        /* Wider touch area */
        max-width: 300px !important;
        border: 1px solid rgba(0, 240, 255, 0.1) !important;
        background: rgba(0, 240, 255, 0.02) !important;
        padding: 1rem !important;
        text-align: center !important;
        display: block !important;
        color: #fff !important;
        transform: skewX(-10deg) !important;
        /* Cyber skew */
        transition: all 0.3s ease !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
        overflow: hidden;
    }

    /* Glitch/Hover Effect */
    .nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
        background: #00F0FF;
        transition: 0.3s;
        opacity: 0;
    }

    .nav-item:hover,
    .nav-item:active {
        background: rgba(0, 240, 255, 0.15) !important;
        border-color: #00F0FF !important;
        color: #00F0FF !important;
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
        transform: skewX(-10deg) translateX(10px) !important;
        text-shadow: 2px 0 0px #7000FF;
    }

    .nav-item:hover::before {
        opacity: 1;
    }

    /* Staggered Animation Delay for Items */
    .nav-links.nav-active .nav-item {
        animation: slideInRight 0.4s ease forwards;
        opacity: 0;
    }

    .nav-links.nav-active .nav-item:nth-child(1) {
        animation-delay: 0.1s;
        animation-fill-mode: forwards;
    }

    .nav-links.nav-active .nav-item:nth-child(2) {
        animation-delay: 0.15s;
        animation-fill-mode: forwards;
    }

    .nav-links.nav-active .nav-item:nth-child(3) {
        animation-delay: 0.2s;
        animation-fill-mode: forwards;
    }

    .nav-links.nav-active .nav-item:nth-child(4) {
        animation-delay: 0.25s;
        animation-fill-mode: forwards;
    }

    .nav-links.nav-active .nav-item:nth-child(5) {
        animation-delay: 0.3s;
        animation-fill-mode: forwards;
    }

    .nav-links.nav-active .nav-item:nth-child(6) {
        animation-delay: 0.35s;
        animation-fill-mode: forwards;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: skewX(-10deg) translateX(-50px);
        }

        to {
            opacity: 1;
            transform: skewX(-10deg) translateX(0);
        }
    }

    /* Mobile Resume Button */
    .nav-btn-mobile {
        margin-top: 2rem !important;
        width: 80% !important;
        max-width: 300px !important;
        padding: 1rem !important;
        font-size: 1.2rem !important;
        background: #7000FF !important;
        border: none !important;
        color: #fff !important;
        transform: skewX(-10deg) !important;
        font-weight: 700 !important;
        box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
    }

    /* SYSTEM WIDGET - HIDE */
    #system-status {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* HERO - FIX TEXT & PADDING */
    .hero-holo {
        padding-top: 7rem !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .glitch-text-pro {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1.1 !important;
    }

    .hero-subtitle-pro {
        flex-wrap: wrap !important;
        height: auto !important;
    }

    /* TIMELINE - FIX MARGINS */
    .timeline-item {
        margin-left: 0 !important;
        padding-left: 3rem !important;
        width: 100% !important;
    }

    .timeline-item::before {
        left: 0.6rem !important;
    }

    /* VISUAL SIDE - SHRINK 3D */
    .holo-container {
        transform: scale(0.5) !important;
        margin-top: -50px !important;
    }
}