@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');


/* ============================================================
   NEURAL ARCHITECT SYSTEM - PRODUCTION MASTER V6.0
   ============================================================ */

   :root {
    /* NIGHT THEME (BASE) */
    --bg-void: #020408;
    --neon-cyan: #00f2ff;
    --pastel-blue: #b3d9ff;
    --ui-blue-glass: rgba(179, 217, 255, 0.08);
    --sidebar-width: clamp(240px, 18vw, 320px);
    --text-main: #cbd5e1;
    --border-subtle: rgba(179, 217, 255, 0.1);
    --nav-bg: rgba(179, 217, 255, 0.03);
}

/* DAY MODE PROTOCOL OVERRIDES */
body.day-mode {
    --bg-void: #f1f5f9;
    --neon-cyan: #2563eb; 
    --pastel-blue: #1e293b; 
    --text-main: #334155;
    --ui-blue-glass: rgba(255, 255, 255, 0.7);
    --border-subtle: rgba(37, 99, 235, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.8);
}

/* 1. BASE ARCHITECTURE & RESTORED HEX PATTERN */
body {
    background-color: var(--bg-void);
    /* RESTORED: Exact PDF Hex Grid Geometry */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='42' viewBox='0 0 24 42'%3E%3Cpath d='M12 28.5L0 21.5V7.5L12 0.5L24 7.5V21.5L12 28.5V42' fill='none' stroke='%23b3d9ff' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E");
    font-family: 'Space Mono', monospace;
    color: var(--text-main);
    margin: 0; display: flex; flex-direction: column;
    height: 100vh; overflow: hidden;
    transition: background-color 0.4s ease;
}

/* 2. FIXED HOLOGRAM LAYER */
.hologram-layer {
    position: fixed; top: 0; left: var(--sidebar-width); right: 0; bottom: 0;
    pointer-events: none; z-index: 1; overflow: hidden;
}

.hologram-text {
    position: absolute; font-size: 14px; color: var(--neon-cyan);
    opacity: 0.12; font-family: monospace; font-weight: bold; white-space: pre;
}

/* 3. SYSTEM HEADER COMPONENTS */
.system-header {
    height: 280px;
    background: var(--ui-blue-glass); 
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-subtle);
    display: flex; flex-direction: column; justify-content: space-between; 
    padding: 40px; position: relative; z-index: 100;
}

.header-menu {
    display: flex; justify-content: flex-end; gap: 24px; margin-bottom: -10px;
}

.header-menu-link {
    font-size: 11px; color: rgba(147, 197, 253, 0.7); text-decoration: none;
    font-weight: bold; letter-spacing: 0.2em; text-transform: uppercase; transition: all 0.3s ease;
}

.header-menu-link:hover {
    color: #fff; text-shadow: 0 0 10px rgba(147, 197, 253, 0.8);
}

/* 4. NAVIGATION MODULES & GHOST GLITCH ENGINE */
.header-nav-item {
    position: relative; background: var(--nav-item-bg);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px; min-width: 120px; height: 35px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px); display: block;
}

.nav-status-bar {
    position: absolute; top: 0; left: 0; width: 30%; height: 2px;
    background: rgba(179, 217, 255, 0.3); transition: 0.3s;
}

.header-nav-item:hover .nav-status-bar,
.header-nav-item.active .nav-status-bar {
    width: 100%; height: 10px; background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.nav-label {
    display: inline-block; position: relative; z-index: 1;
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
    color: var(--pastel-blue); text-transform: uppercase;
}

/* RESTORED: Glitch ghost layers (::before/::after) */
.header-nav-item:hover .nav-label::before,
.header-nav-item:hover .nav-label::after {
    content: attr(data-text); position: absolute;
    top: 0; left: 0; width: 100%; z-index: -1; visibility: visible;
}

.header-nav-item:hover .nav-label::before {
    text-shadow: 2px 0 #ff00c1; animation: glitch-anim 0.3s infinite linear alternate-reverse;
}

.header-nav-item:hover .nav-label::after {
    text-shadow: -2px 0 #00fff9; animation: glitch-anim 0.2s infinite linear;
}

/* 5. SIDEBAR & RESTORED RADAR GRADIENT */
.sidebar { 
    width: var(--sidebar-width); min-width: var(--sidebar-width);
    background: var(--ui-blue-glass); backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-subtle);
    position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px; z-index: 50;
}

.sidebar::before {
    content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(179,217,255,0.05), transparent 30%);
    animation: rotateRadar 15s linear infinite;
}

/* 6. PROFILE HUB & HEX CLIP (PDF Accuracy) */
.profile-hub {
    position: absolute; left: calc(var(--sidebar-width) / 2); 
    transform: translateX(-50%); bottom: -100px;
    width: 180px; height: 200px; z-index: 110;
}

.hex-clip {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #0a111f; border: 1px solid var(--pastel-blue); position: relative; height: 100%;
}

.scanline {
    position: absolute; width: 100%; height: 4px; background: var(--pastel-blue);
    box-shadow: 0 0 15px var(--pastel-blue); animation: scanMove 3s linear infinite; pointer-events: none;
}

/* 7. RESTORED NOTCHED CORNER LOGIC */
.nav-corner {
    position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
    background: var(--bg-void); clip-path: polygon(100% 0, 0 100%, 100% 100%);
    border-top: 1px solid var(--border-subtle);
}

/* 8. MAIN CONTENT AREA */
.main-content { flex-grow: 1; padding: 80px 60px; overflow-y: auto; position: relative; z-index: 10; scroll-behavior: smooth; }
.exp-card { border-left: 1px solid var(--border-subtle); padding: 25px; margin-bottom: 35px; transition: 0.3s; background: rgba(0,0,0,0.1); }
.exp-card:hover { border-left: 2px solid var(--neon-cyan); background: rgba(0, 242, 255, 0.04); transform: translateX(10px); }
.tech-tag { font-size: 9px; padding: 2px 8px; border: 1px solid var(--border-subtle); color: var(--pastel-blue); margin-right: 5px; margin-top: 5px; display: inline-block; }
.glitch-text { font-size: 4rem; font-weight: 700; color: var(--pastel-blue); text-shadow: 0 0 10px rgba(179, 217, 255, 0.3); line-height: 1; }

/* 9. THEME PROTOCOL TOGGLE */
.theme-protocol-v1 {
    cursor: pointer; display: inline-flex; align-items: center; width: fit-content;
    padding: 6px 15px; border: 1px solid var(--border-subtle); background: var(--nav-item-bg);
    font-size: 10px; font-weight: bold; letter-spacing: 0.15em; color: var(--pastel-blue);
    margin-left: auto; transition: 0.3s;
}

.protocol-status { width: 6px; height: 6px; background: var(--neon-cyan); margin-right: 12px; border-radius: 50%; box-shadow: 0 0 5px var(--neon-cyan); }

/* 10. ANIMATION ENGINE (Full 6-Step Glitch) */
@keyframes rotateRadar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes scanMove { 0% { top: 0%; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes glitch-anim {
    0% { clip-path: inset(80% 0 0 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(20% 0 50% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(50% 0 10% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(30% 0 30% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

/* 11. SCROLLBARS */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* --- DAY_MODE: HIGH-VISIBILITY BLUEPRINT --- */
body.day-mode {
    /* 1. The "Canvas": Soft Paper White */
    --bg-void: #f8fafc; 
    
    /* 2. The "Console": Industrial Cold Grey (Header/Sidebar) */
    --ui-blue-glass: #e2e8f0; 
    
    /* 3. The "Ink": Deep Navy Slate (Perfect Legibility) */
    --text-main: #1e293b;
    
    /* 4. The "Accents": Non-Neon Cobalt & Hazard Orange */
    --neon-cyan: #2563eb; 
    --pastel-blue: #64748b; 
    --border-subtle: rgba(15, 23, 42, 0.08);
}


body.day-mode {
    /* 1. FIXED & VISIBLE: Hex Background */
    /* Changed stroke to pure black (%23000000) and raised opacity to 0.15 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='42' viewBox='0 0 24 42'%3E%3Cpath d='M12 28.5L0 21.5V7.5L12 0.5L24 7.5V21.5L12 28.5V42' fill='none' stroke='%23000000' stroke-width='1.5' opacity='0.02'/%3E%3C/svg%3E") !important;
    background-attachment: fixed;
}

/* 2. HEADER & SIDEBAR: Solid Pastel Feel */
body.day-mode .system-header, 
body.day-mode .sidebar {
    background: #cbd5e1 !important; 
    backdrop-filter: none !important;
    border-color: #94a3b8 !important;
}

/* 3. FIX: Contact Form schematic look */
body.day-mode input, 
body.day-mode textarea {
    background: #ffffff !important;
    border: 2px solid #1e293b !important; /* Sharp technical lines */
    color: #0f172a !important;
    padding: 12px;
    border-radius: 0;
}

body.day-mode label {
    color: #0f172a !important;
    font-weight: 800;
    text-transform: uppercase;
}

/* 4. READABILITY: No-glow Ink */
body.day-mode .glitch-text,
body.day-mode .nav-label {
    color: #0f172a !important;
    text-shadow: none !important;
    font-weight: 900 !important;
}

/* 5. MATCHING NOTCHES */
body.day-mode .nav-corner {
    background: #cbd5e1 !important;
}
/* Day Mode Tactical Refinements */
body.day-mode {
    /* The 0.02 Hex Grid you perfected */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='24' height='42' viewBox='0 0 24 42'%3E%3Cpath d='M12 28.5L0 21.5V7.5L12 0.5L24 7.5V21.5L12 28.5V42' fill='none' stroke='%23000000' stroke-width='1' opacity='0.02'/%3E%3C/svg%3E") !important;
}

/* 1. Header/Sidebar: Give them a "Solid Panel" feel */
body.day-mode .system-header, 
body.day-mode .sidebar {
    background: #f1f5f9 !important; /* Slightly lighter than the panels, darker than content */
    border-color: #cbd5e1 !important;
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.02); /* Subtle inner depth */
}

/* 2. Navigation: High-Contrast Modules */
body.day-mode .header-nav-item {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05); /* Technical "button" look */
}

body.day-mode .nav-label {
    color: #0f172a !important;
    font-weight: 800 !important; /* Bold ink */
}

/* 3. Terminal/CLI: Clinical White */
body.day-mode .cli-section {
    background: #ffffff !important;
    border-top: 2px solid #2563eb !important;
    color: #1e293b !important;
}

/* 4. Experience Cards: Blueprint Style */
body.day-mode .exp-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 6px solid #2563eb !important; /* Strong blue accent stripe */
}
