/* FIXED MOBILE FOOTER - COMPLETE styles.css */
:root {
  --mgs-green: #00ff00;
  --mgs-dark: #051105;
  --mgs-dim: #003300;
  --scanline-color: rgba(0, 255, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: var(--mgs-green);
  font-family: 'VT323', monospace;
  height: 100vh;
  width: 100vw;
}

/* --- CRT SCANLINE EFFECTS --- */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255,255,255,0),
      rgba(255,255,255,0) 50%,
      rgba(0,0,0,0.2) 50%,
      rgba(0,0,0,0.2));
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 100;
}

.crt-flicker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 0, 0.02);
  animation: flicker 0.15s infinite;
  pointer-events: none;
  z-index: 99;
}

@keyframes flicker {
  0% { opacity: 0.9; }
  50% { opacity: 1.0; }
  100% { opacity: 0.9; }
}

/* --- 3D VR ENVIRONMENT --- */
.vr-environment {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 600px;
  z-index: -1;
  overflow: hidden;
}

.grid-floor {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200%;
  height: 100%;
  background-image:
    linear-gradient(var(--mgs-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--mgs-dim) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(60deg);
  animation: gridMove 5s linear infinite;
  box-shadow: 0 0 100px var(--mgs-green) inset;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 50px; }
}

/* --- UI HUD --- */
.ui-container {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

/* --- FIXED FOOTER HUD --- */

/* --- FOOTER HUD --- */
/* Desktop Base Styles */
.hud-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--mgs-dim);
}

.weapon-box {
    border: 2px solid var(--mgs-green);
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(0, 50, 0, 0.5);
}

.weapon-name {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-center-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--mgs-green);
    text-shadow: 0 0 5px var(--mgs-green);
    white-space: nowrap;
    text-align: center;
}

.life-bar {
    width: 200px;
    text-align: right;
}

.bar-fill {
    height: 20px;
    background: linear-gradient(90deg, var(--mgs-dim), var(--mgs-green));
    width: 100%;
    border: 1px solid var(--mgs-green);
}

/* Mobile Overrides - Switch to Grid to Prevent Overlap */
@media (max-width: 600px) {
    .hud-footer {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        min-height: 50px;
        align-items: end;
    }

    .weapon-box {
        padding: 6px 10px;
        font-size: 0.9rem;
        max-width: 90px;
    }

    .weapon-box .weapon-name {
        font-size: 1rem;
        display: block;
        margin-bottom: 2px;
    }

    .footer-center-text {
        position: static;
        transform: none;
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal;
        padding: 0 5px;
        grid-column: 2;
    }

    .life-bar {
        width: 90px;
        font-size: 0.85rem;
    }

    .bar-fill {
        height: 14px;
    }
}

@media (max-width: 480px) {
    .hud-footer {
        gap: 6px;
        grid-template-columns: auto 1fr auto;
    }

    .weapon-box {
        padding: 5px 8px;
        max-width: 75px;
    }

    .weapon-box .weapon-name {
        font-size: 0.9rem;
    }

    .footer-center-text {
        font-size: 0.7rem;
        padding: 0 4px;
    }

    .life-bar {
        width: 75px;
    }
}

@media (max-width: 380px) {
    .weapon-box {
        padding: 4px 6px;
        max-width: 65px;
        font-size: 0.8rem;
    }

    .weapon-box .weapon-name {
        font-size: 0.85rem;
    }

    .footer-center-text {
        font-size: 0.65rem;
        padding: 0 3px;
    }

    .life-bar {
        width: 65px;
        font-size: 0.8rem;
    }

    .bar-fill {
        height: 12px;
    }
}

/* --- REST OF YOUR STYLES (UNCHANGED) --- */
/* [Include all other existing styles from your original file here] */
.hud-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--mgs-green);
  padding-bottom: 5px;
  font-size: 1.5rem;
  text-shadow: 0 0 5px var(--mgs-green);
}

.blink {
  animation: blinker 1s linear infinite;
  color: red;
}

@keyframes blinker {
  50% { opacity: 0; }
}


/* --- NAVIGATION --- */
.vr-nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--mgs-green);
    color: var(--mgs-green);
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    padding: 8px 18px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .vr-nav {
        gap: 16px;
    }

    .nav-btn {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .ui-container {
        padding: 12px;
    }

    .target-frame {
        max-width: 90vw;
    }

    .target-image img {
        width: 100%;
    }
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--mgs-green);
    color: #000;
    box-shadow: 0 0 15px var(--mgs-green);
}

/* --- CONTENT SECTIONS --- */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

section {
    width: 100%;
    max-width: 800px;
    transition: opacity 0.5s ease;
}

.hidden-section {
    display: none;
    opacity: 0;
}

.active-section {
    display: block;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- TARGET FRAME (CYBORG NINJA STYLE) --- */
.target-frame {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
    border: 2px solid var(--mgs-green);
    box-shadow:
        0 0 30px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.2);
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.target-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter:
        grayscale(100%)
        contrast(140%)
        brightness(1.1)
        drop-shadow(0 0 20px var(--mgs-green));
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Target reticle overlay */
.target-reticle::before,
.target-reticle::after {
    content: '';
    position: absolute;
    background: var(--mgs-green);
    z-index: 5;
}

.target-reticle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    box-shadow: 0 0 5px var(--mgs-green);
}

.target-reticle::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    box-shadow: 0 0 5px var(--mgs-green);
}

/* Corner brackets */
.target-frame::before,
.target-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--mgs-green);
    z-index: 10;
}

.target-frame::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.target-frame::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Scanning line animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mgs-green), transparent);
    box-shadow: 0 0 10px var(--mgs-green);
    animation: scan 3s linear infinite;
    z-index: 15;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(400px); }
}

/* Mission log stays the same */
.mission-log {
    margin-top: 20px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .target-frame {
        width: 280px;
        height: 280px;
    }

    @keyframes scan {
        0% { transform: translateY(0); }
        100% { transform: translateY(280px); }
    }
}

/* --- SUBSCRIPTION SECTION --- */
.subscription-section {
    margin-top: 40px;
    padding: 30px;
    border: 2px solid var(--mgs-green);
    background: rgba(0, 50, 0, 0.3);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.subscription-title {
    font-size: 2.5rem;
    color: var(--mgs-green);
    text-shadow: 0 0 10px var(--mgs-green);
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    font-weight: bold;
}

.subscription-text {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 0 0 5px var(--mgs-green);
}

.subscription-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 12px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--mgs-green);
    color: var(--mgs-green);
    outline: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.email-input::placeholder {
    color: var(--mgs-dim);
    opacity: 0.7;
}

.email-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    border-color: var(--mgs-green);
}

.subscribe-btn {
    padding: 12px 30px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    background: transparent;
    border: 2px solid var(--mgs-green);
    color: var(--mgs-green);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.subscribe-btn:hover {
    background: var(--mgs-green);
    color: #000;
    box-shadow: 0 0 20px var(--mgs-green);
}

.subscription-success {
    font-size: 1.5rem;
    color: var(--mgs-green);
    text-shadow: 0 0 10px var(--mgs-green);
    padding: 20px;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hidden {
    display: none;
}

/* Candle Wick Burn Animation */
.burn-out {
    animation: candleWickBurn 1.5s ease-out forwards;
}

@keyframes candleWickBurn {
    0% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top center;
        filter: brightness(1);
    }
    30% {
        filter: brightness(1.5) saturate(2);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(0.7);
        filter: brightness(1.2);
    }
    70% {
        opacity: 0.5;
        transform: scaleY(0.4);
        filter: brightness(0.8) blur(2px);
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        filter: brightness(0) blur(5px);
        display: none;
    }
}

/* Mobile subscription adjustments */
@media (max-width: 600px) {
    .subscription-section {
        padding: 15px 12px;
        margin-top: 20px;
    }

    .subscription-title {
        font-size: 1.4rem;
    }

    .subscription-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .subscription-form {
        flex-direction: column;
        gap: 8px;
    }

    .email-input {
        width: 100%;
        min-width: 100%;
        font-size: 1rem;
        padding: 10px 15px;
    }

    .subscribe-btn {
        width: 100%;
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* --- VIDEO & LINKS --- */
.video-container {
    border: 2px solid var(--mgs-green);
    padding: 5px;
    position: relative;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 0 20px var(--mgs-green);
}

iframe {
    width: 100%;
    max-width: 100%;
}

.music-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-btn {
    text-decoration: none;
    color: var(--mgs-green);
    border: 1px solid var(--mgs-green);
    padding: 10px 20px;
    font-size: 1.2rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.link-btn:hover {
    background: var(--mgs-green);
    color: #000;
}

/* --- FOOTER HUD --- */
        height: 12px !important;
    }
}

/* Typing Effect Container */
#typing-text {
    margin-top: 20px;
    font-size: 1.2rem;
    min-height: 3rem;
    color: #fff;
    text-shadow: 0 0 5px var(--mgs-green);
}

/* --- ANIMATED SPRITE SOLDIER --- */
.pixel-soldier {
    position: fixed;
    bottom: 15%;
    left: -60px;
    width: 40px;
    height: 32px;
    z-index: 2;
    background: var(--mgs-green);
    animation: soldierRun 18s linear infinite, soldierRunCycle 0.5s steps(2) infinite;
    clip-path: polygon(
        75% 35%, 100% 35%, 100% 38%, 75% 38%,
        70% 32%, 75% 32%, 75% 42%, 70% 42%,
        50% 10%, 62% 10%, 62% 25%,
        35% 25%, 65% 25%, 65% 50%,
        50% 50%, 50% 75%, 45% 75%, 45% 100%, 35% 100%, 35% 75%, 40% 75%, 40% 50%,
        55% 50%, 55% 70%, 60% 70%, 60% 95%, 70% 95%, 70% 70%, 65% 70%, 65% 50%
    );
    opacity: 0.7;
}

@keyframes soldierRun {
    0% { left: -80px; }
    100% { left: 110%; }
}

@keyframes soldierRunCycle {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-3px) scaleY(0.97);
    }
}

@media (max-width: 600px) {
    .pixel-soldier {
        bottom: 20%;
        width: 32px;
        height: 24px;
        opacity: 0.5;
    }

    @keyframes soldierRun {
        0% { left: -60px; }
        100% { left: 110%; }
    }
}
