/* --- style.css (V8: MOBILE DARK FIX + MENU) --- */
:root {
    --bg-color: #0b0f12; /* Deep tactical dark */
    --panel-bg: rgba(15, 20, 25, 0.95); /* High opacity to hide clutter behind */
    --text-color: #e0e0e0;
    --accent-color: #00ff41; /* HUD Green */
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    --header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* FORCE DARK BACKGROUND ON EVERYTHING */
html, body {
    background-color: var(--bg-color) !important; /* Critical Mobile Fix */
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- LOADER --- */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0b0f12; display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.8s ease-out, visibility 0.8s;
}
.loader-logo { width: 250px; height: auto; animation: pulse 2s infinite ease-in-out; }
.loader-wrapper.fade-out { opacity: 0; visibility: hidden; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.95); opacity: 0.8; } }

/* --- BACKGROUNDS --- */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* BOMB DROP IMAGE */
    background-image: url('https://images.unsplash.com/photo-1590178486879-47e986005682?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; z-index: -2;
    filter: grayscale(100%) brightness(0.3); opacity: 1; 
}
/* HUD GRID */
body::after {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px; pointer-events: none; z-index: -1;
}

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 6rem 0; border-bottom: 1px solid var(--border-color); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* --- HEADER & NAV --- */
header {
    background: rgba(11, 15, 18, 0.98);
    border-bottom: 1px solid var(--border-color);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: var(--header-height);
    display: flex; align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo img { height: 50px; width: auto; display: block; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { 
    font-family: var(--font-mono); font-size: 0.85rem; color: #aaa; text-transform: uppercase; text-decoration: none;
    transition: 0.3s; padding: 0.5rem 0; position: relative; font-weight: 700; letter-spacing: 1px;
}
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-color); }

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    font-family: var(--font-mono); font-weight: 900; cursor: pointer; color: #fff; border: 1px solid #fff; padding: 5px 10px;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
    position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height));
    background: #0b0f12; z-index: 999;
    display: flex; flex-direction: column; justify-content: flex-start; padding-top: 4rem; align-items: center;
    transform: translateX(100%); transition: transform 0.4s ease-in-out;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a {
    font-size: 1.5rem; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 2rem; text-decoration: none;
    font-family: var(--font-mono); border-bottom: 1px solid #333; width: 80%; text-align: center; padding-bottom: 1rem;
}

/* --- CONTENT SPACING --- */
body > .loader-wrapper + header + section,
body > header + section { margin-top: var(--header-height); }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { text-transform: uppercase; font-weight: 800; letter-spacing: 1px; line-height: 1.1; }
.display-text { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 2rem; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.mono-label { font-family: var(--font-mono); color: var(--accent-color); font-size: 0.8rem; letter-spacing: 2px; display: block; margin-bottom: 0.5rem; }

/* --- PANELS --- */
.hud-panel {
    background: var(--panel-bg); border: 1px solid var(--border-color); padding: 2rem; position: relative; backdrop-filter: blur(10px);
}
.hud-panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 2px solid var(--accent-color); border-left: 2px solid var(--accent-color); }
.hud-panel::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-bottom: 2px solid var(--accent-color); border-right: 2px solid var(--accent-color); }

.btn {
    display: inline-block; padding: 1rem 3rem; background: transparent; color: #fff;
    font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; border: 1px solid #fff;
    transition: 0.3s; text-decoration: none; margin-top: 1.5rem; cursor: pointer;
}
.btn:hover { background: #fff; color: #000; }

input, textarea, select {
    width: 100%; padding: 1rem; background: rgba(0,0,0,0.6); border: 1px solid #444; color: #fff;
    font-family: var(--font-mono); margin-bottom: 1rem;
}
label { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: #888; margin-bottom: 0.5rem; }

img { width: 100%; display: block; object-fit: cover; }
.content-img { border: 1px solid #333; filter: grayscale(30%); }

/* --- FOOTER --- */
footer {
    padding: 4rem 0; border-top: 1px solid var(--border-color); text-align: center;
    font-family: var(--font-mono); font-size: 0.8rem; color: #555; background: #0b0f12;
}
footer .logo img {
    height: 50px; /* Default Desktop Footer Size */
    width: auto; display: block; margin: 0 auto 1.5rem auto;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none; } /* Hide Desktop Nav */
    .mobile-toggle { display: block; } /* Show Hamburger */
    
    /* FIX MOBILE FOOTER LOGO */
    footer .logo img { height: 35px !important; } 
    
    /* Adjust Header Logo for Mobile */
    header .logo img { height: 40px; }
    
    .display-text { font-size: 14vw; }
}
}