/* ==========================================================================
   VALCORE DEFENCE - ULTRA-TIER DEFENSE TECH STYLESHEET
   Palette: Deep Obsidian (#050608) • Tactical Slate (#0b0e14) • Titanium Gold (#c5b386)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-obsidian: #050608;
    --bg-slate: #0b0e14;
    --bg-card: rgba(16, 20, 28, 0.78);
    --titanium-gold: #c5b386;
    --classic-gold: #d4af37;
    --tactical-emerald: #10b981;
    --cyber-blue: #38bdf8;
    --crimson-alert: #e63946;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-titanium: rgba(197, 179, 134, 0.35);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-obsidian);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-obsidian);
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, .font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* === TOPOGRAPHICAL & TACTICAL GRID OVERLAYS === */
.tactical-grid-bg {
    background-color: var(--bg-obsidian);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(197, 179, 134, 0.07) 0%, transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* === GLASSMORPHIC HUD CARDS WITH CORNER BRACKETS === */
.hud-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-card::before,
.hud-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transition: all 0.35s ease;
    opacity: 0.35;
}

.hud-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--titanium-gold);
    border-left: 2px solid var(--titanium-gold);
}

.hud-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--titanium-gold);
    border-right: 2px solid var(--titanium-gold);
}

.hud-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-titanium);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(197, 179, 134, 0.1);
}

.hud-card:hover::before,
.hud-card:hover::after {
    width: 18px;
    height: 18px;
    opacity: 1;
}

/* === BLACK-BOX IP (NDA) FROSTED BLUR LOCK === */
.nda-vault-box {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(5, 6, 8, 0.85);
    border: 1px dashed rgba(197, 179, 134, 0.3);
    padding: 0.75rem;
}

.nda-blurred-code {
    filter: blur(4.5px);
    user-select: none;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #64748b;
    line-height: 1.4;
    transition: filter 0.3s ease;
}

.nda-overlay-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 8, 0.55);
    backdrop-filter: blur(2px);
}

/* === VIDEO BACKGROUNDS === */
.video-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.42;
    filter: grayscale(75%) contrast(1.15);
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #050608 0%, rgba(5, 6, 8, 0.45) 50%, #050608 100%);
    z-index: 1;
}

/* === LOGO CAMOUFLAGE === */
nav .flex-shrink-0 {
    display: flex;
    align-items: center;
    height: 100%;
}

nav .flex-shrink-0 img {
    height: 55px !important;
    width: auto !important;
    mix-blend-mode: screen;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

@media (min-width: 768px) {
    nav .flex-shrink-0 img {
        height: 76px !important;
    }
}

/* === GLOBAL TACTICAL RADAR & MAP === */
.pulse-beacon {
    animation: beacon-pulse 2s infinite;
}
@keyframes beacon-pulse {
    0% { r: 5px; opacity: 1; }
    50% { r: 16px; opacity: 0.25; }
    100% { r: 5px; opacity: 1; }
}

.map-line {
    stroke: #e63946;
    stroke-width: 1.5;
    stroke-dasharray: 4;
    animation: dash-flow 25s linear infinite;
}

.map-line-gold {
    stroke: #c5b386;
    stroke-width: 1.5;
    stroke-dasharray: 5;
    animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
    to { stroke-dashoffset: -200; }
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-scanner {
    transform-origin: 480px 165px;
    animation: radar-sweep 8s linear infinite;
}

/* === ANALOG OPERATIONAL CLOCKS === */
.clock-container {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.clock {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b0e14;
    box-shadow: 0 0 20px rgba(0,0,0,0.65);
}

.clock.gold-theme {
    border: 1px solid rgba(197, 179, 134, 0.55);
    box-shadow: 0 0 22px rgba(197, 179, 134, 0.18);
}

.clock.emerald-theme {
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.12);
}

.clock.standard-theme {
    border: 1px solid #262f3f;
}

.clock::before {
    content: '';
    position: absolute;
    width: 84%;
    height: 84%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 4px;
    z-index: 10;
}

.hour { width: 3px; height: 22px; background: #94a3b8; transform: translateX(-50%); }
.minute { width: 2px; height: 31px; background: #e2e8f0; transform: translateX(-50%); }
.second { width: 1px; height: 37px; background: #e63946; transform: translateX(-50%); }

.center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    z-index: 15;
}

.center-dot.gold { background: #c5b386; }

@media (max-width: 640px) {
    .clock-container { gap: 1rem; }
    .clock { width: 64px; height: 64px; }
    .hour { height: 16px; }
    .minute { height: 22px; }
    .second { height: 27px; }
}

/* === LEAFLET DARK MAP FILTER === */
#c4isr-map .leaflet-layer {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%) grayscale(80%);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* === ORBITAL SPHERE AI WIDGET === */
#orbital-chatbot-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
}

.orbital-trigger-btn {
    width: 66px;
    height: 66px;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, #1e293b, #050608);
    border: 1.5px solid rgba(197, 179, 134, 0.8);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 22px rgba(197, 179, 134, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orbital-trigger-btn:hover {
    transform: scale(1.07);
    border-color: #d4af37;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(197, 179, 134, 0.55);
}

.orbital-core-sphere {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #c5b386 55%, #050608 100%);
    box-shadow: 0 0 12px #c5b386;
    animation: orbPulse 2.4s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.85; box-shadow: 0 0 8px #c5b386; }
    50% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 18px #c5b386, 0 0 28px rgba(16, 185, 129, 0.45); }
}

.orbital-window {
    position: absolute;
    bottom: 82px;
    right: 0;
    width: 385px;
    max-width: calc(100vw - 32px);
    height: 530px;
    max-height: calc(100vh - 120px);
    background: rgba(8, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 179, 134, 0.45);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(197, 179, 134, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.orbital-window.hidden-chat {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
}


/* === 100% SOLID OPAQUE EXECUTIVE BURGER MENU (NO BLEED-THROUGH) === */
nav.site-navbar {
    background-color: #050608 !important;
    border-bottom: 1px solid rgba(197, 179, 134, 0.22);
}

#mobile-menu {
    background-color: #050608 !important;
    background-image: linear-gradient(180deg, #050608 0%, #090c12 100%) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(197, 179, 134, 0.35) !important;
    border-bottom: 2px solid #c5b386 !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.98) !important;
    z-index: 9995 !important;
}

#mobile-menu .menu-tile {
    background-color: #0e131d !important;
    opacity: 1 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
    transition: all 0.25s ease;
}

#mobile-menu .menu-tile:hover {
    background-color: #151c2a !important;
    border-color: #c5b386 !important;
    transform: translateY(-2px);
}

.navbar-brand-center {
    letter-spacing: 0.36em;
    text-shadow: 0 0 25px rgba(197, 179, 134, 0.2);
}


/* === V9 MASTERPIECE FIXES: ZERO HORIZONTAL SCROLL & VIDEO WATERMARK SHIELD === */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

.video-watermark-shield {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 15;
    pointer-events: none;
    padding: 18px 24px 14px 48px;
    background: radial-gradient(circle at 85% 85%, #050608 45%, rgba(5, 6, 8, 0.92) 70%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-watermark-badge {
    background-color: rgba(5, 6, 8, 0.95);
    border: 1px solid rgba(197, 179, 134, 0.35);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #94a3b8;
    text-transform: uppercase;
    box-shadow: 0 0 25px 15px #050608;
}
