/* mobile-clean.css - SCALED DESKTOP LAYOUT FOR MOBILE */
/* This file is only loaded on screens < 768px */

/* FIX: Add selector for HUD */
.kinetic-hud {
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20000 !important;
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    top: 58px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    animation: mobile-hud-float 7s ease-in-out infinite !important;
}

.kinetic-hud::before {
    display: none !important;
}

@keyframes mobile-hud-float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.hud-glass {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.045) 34%, rgba(10, 10, 10, 0.82) 100%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(165%) !important;
    backdrop-filter: blur(20px) saturate(165%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-bottom: 1px solid var(--orange) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    gap: 9px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 8px 28px rgba(0, 0, 0, 0.55),
        0 14px 38px rgba(255, 255, 255, 0.12),
        0 0 18px rgba(255, 255, 255, 0.09) !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
}

.scan-line {
    display: block !important;
    opacity: 1 !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent) !important;
    animation: scan 5s infinite linear !important;
}

.mobile-system-label {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: -27px !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    font-family: var(--font-code) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 1.5px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
    text-align: center !important;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.38),
        0 0 12px rgba(255, 85, 0, 0.45) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.hud-links {
    display: flex !important;
    gap: 5px !important;
    justify-content: space-around !important;
    align-items: center !important;
    flex: 0 1 100% !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hud-btn {
    font-size: 9.4px !important;
    line-height: 1.1 !important;
    padding: 8px 2px !important;
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    min-height: 30px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 85, 0, 0.2) !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Language Switcher Logic */
.hud-decor.left {
    display: none !important;
}

.hud-decor.right {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.lang-switch {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
}

.l-opt {
    font-size: 10px !important;
    line-height: 1 !important;
    padding: 6px 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
    background: transparent !important;
    color: #aaa !important;
    font-family: var(--font-code) !important;
    font-weight: bold !important;
}

.l-opt.active {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
    text-shadow: 0 0 10px var(--orange) !important;
}

.mobile-lang-menu {
    display: none !important;
    /* Hide duplicate if exists */
}

.hub-center {
    width: min(360px, calc(100vw - 20px)) !important;
}

/* NODES - MOBILE LIQUID GLASS */
.node {
    width: 96px !important;
    height: 96px !important;
    animation: liquid-float 6s ease-in-out infinite !important;
    transform-origin: center center !important;
    /* Override the rotate(45deg) from style.css mobile media query */
    transform: rotate(0deg) !important;
    border-radius: 26px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.node:nth-child(odd) {
    animation-delay: -1.5s !important;
}

.node:nth-child(even) {
    animation-delay: -3s !important;
}

.node-glass {
    transform: rotate(0deg) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.07) 100%) !important;
    border-radius: 26px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 6px 24px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.node-content {
    flex-direction: column !important;
    justify-content: center !important;
    padding-left: 0 !important;
    transform: none !important;
    gap: 7px !important;
}

.node i {
    font-size: 1.7rem !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3)) !important;
}

.node-label {
    display: block !important;
    font-size: 0.5rem !important;
    letter-spacing: 0.65px !important;
    max-width: calc(100% - 10px) !important;
    overflow: hidden !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* Push nodes outwards + better mobile layout */
.node-about {
    top: 38% !important;
    left: 32.5% !important;
}

.node-work {
    top: 38% !important;
    left: 57.5% !important;
    right: auto !important;
}

.node-skills {
    bottom: -2% !important;
    left: 32.5% !important;
    margin-top: 245px !important;
}

.node-contact {
    bottom: -2% !important;
    left: 57.5% !important;
    right: auto !important;
    margin-top: 245px !important;
}

.services-summary {
    width: min(360px, calc(100vw - 20px)) !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    background: transparent !important;
    border: none !important;
}

.services-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.service-line {
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
}

.service-line i {
    width: 18px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.7rem !important;
    text-align: center !important;
}

.hub-quick-contact {
    width: min(330px, calc(100vw - 28px)) !important;
    margin-top: 12px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.hub-contact-pill {
    min-height: 32px !important;
    padding: 8px 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.4px !important;
    border-radius: 3px !important;
}

.hub-contact-pill i {
    font-size: 11px !important;
}

/* MODULES - SMOOTH MOBILE TRANSITIONS */
.modules-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: translate(-50%, -50%) scale(1.0) !important;
    z-index: 20000 !important;
    pointer-events: none;
}

.module {
    position: absolute !important;
    width: 92% !important;
    height: 85% !important;
    max-width: none !important;
    border-radius: 16px !important;
    transform: translateY(30px) scale(0.95) !important;
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.35s ease-out,
        visibility 0s linear 0.45s !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    left: 4% !important;
    top: 12% !important;
    border: 1px solid rgba(255, 85, 0, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    will-change: transform, opacity !important;
}

.module.active {
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.3s ease-out,
        visibility 0s linear 0s !important;
}

/* Adjust module content for mobile readability */
.module-content {
    padding: 15px !important;
    font-size: 13px !important;
    /* Slightly larger than 12px since overall scale is smaller */
}

.module-header {
    padding: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    /* Slight bg to distinguish header */
}

.module-header h2 {
    font-size: 1.2rem !important;
    margin: 0 !important;
}

/* Fix Close Button Visibility */
.module-close {
    position: relative !important;
    /* Change to relative to flow in flex header */
    top: auto !important;
    right: auto !important;
    font-size: 24px !important;
    /* Larger icon */
    z-index: 100 !important;
    padding: 10px !important;
    /* Larger touch area */
    color: var(--orange) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    /* Background to ensure contrast */
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--orange) !important;
}

/* FOOTER - DESKTOP STYLE RESTORED */
.system-footer {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 1rem 0 !important;
    text-align: center !important;
    transform: none !important;
    /* Reset scale */
    white-space: normal !important;
    z-index: 100 !important;
    pointer-events: none !important;
    background: transparent !important;
}

.footer-content {
    position: relative !important;
    display: inline-block !important;
    transform: none !important;
}

.footer-text {
    font-size: 0.65rem !important;
    /* Adjusted for mobile width */
    letter-spacing: 1px !important;
}

.footer-lang-switch {
    display: none !important;
}
