/* ==========================================================================
   CSS Variables & Theming - FORENSIC / INVESTIGATOR OS
   ========================================================================== */
:root {
    /* Primary Colors - Gritty Forensic Theme */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-glass: rgba(10, 10, 10, 0.85);
    --border-glass: rgba(255, 0, 0, 0.3);
    --border-glass-bright: rgba(255, 204, 0, 0.6);
    
    /* Forensic Accents */
    --neon-green: #ffcc00; /* Re-mapped to Crime Yellow for compatibility */
    --neon-cyan: #cc0000;  /* Re-mapped to Blood Red for compatibility */
    --neon-blue: #0044ff;  /* Intel Blue */
    --neon-violet: #555555; /* Neutral Steel */
    
    /* Text Colors */
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    
    /* Fonts - Mono heavily prioritized */
    --font-heading: 'Share Tech Mono', monospace;
    --font-body: 'Share Tech Mono', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.1s linear;
    --transition-normal: 0.2s linear;
    --transition-slow: 0.4s linear;
}

[data-theme="light"] {
    --bg-primary: #f0f0f0;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 0, 0, 0.2);
    --border-glass-bright: rgba(204, 0, 0, 0.8);
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #666666;
    --neon-green: #cc9900;
    --neon-cyan: #990000;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: 
        linear-gradient(rgba(10,10,10,0.92), rgba(5,5,5,0.98)),
        url('../assets/images/fingerprint.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: crosshair;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Scanlines Overlay */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

a, button { cursor: pointer; text-decoration: none; color: inherit; outline: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; filter: grayscale(80%) contrast(120%); transition: filter 0.3s ease; }
img:hover { filter: grayscale(0%) contrast(100%); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section { padding: 6rem 0; position: relative; border-bottom: 1px dashed var(--border-glass); }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-green);
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: #000;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 5px 5px 0 var(--neon-cyan);
}
.section-title.center { display: table; margin-left: auto; margin-right: auto; }
.slash { color: var(--neon-cyan); margin-right: 12px; font-weight: 800; }
.text-neon { color: var(--neon-green); text-shadow: 0 0 5px rgba(255, 204, 0, 0.6); }

/* Remove Custom Cursor */
.custom-cursor { display: none; }

/* Page Transition Overlay */
#page-transition {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.2s ease; pointer-events: none; opacity: 0;
}
#page-transition.active { opacity: 1; pointer-events: all; }
.transition-scanner {
    width: 100%; height: 5px; background: var(--neon-cyan); box-shadow: 0 0 20px var(--neon-cyan);
    position: absolute; top: 0; animation: scanline-full 1.5s linear infinite;
}
.terminal-loader {
    font-family: var(--font-mono); font-size: 1.2rem; color: var(--neon-green);
}

/* Caution Tape Utility */
.caution-tape {
    background: repeating-linear-gradient(
        45deg,
        var(--neon-green),
        var(--neon-green) 30px,
        #000000 30px,
        #000000 60px
    );
    height: 15px; 
    width: 100%; 
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4); 
    z-index: 9999;
    opacity: 0.9;
}
.caution-tape.red {
    background: repeating-linear-gradient(45deg, var(--neon-cyan), var(--neon-cyan) 30px, #000000 30px, #000000 60px);
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.4);
}
.caution-tape.fixed-top { position: fixed; top: 0; left: 0; }
.caution-tape.fixed-bottom { position: fixed; bottom: 0; left: 0; }

/* Navigation */
#navbar {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(5,5,5,0.95); 
    border-bottom: 2px solid var(--neon-cyan);
    z-index: 1000; transition: all var(--transition-normal);
}
#navbar.scrolled { height: 60px; box-shadow: 0 5px 20px rgba(204, 0, 0, 0.4); }
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { margin-right: 2rem; text-decoration: none; }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: 2px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: var(--text-secondary); transition: all var(--transition-fast); position: relative; letter-spacing: 1px; }
.nav-link:hover, .nav-link.active { color: var(--neon-green); background: rgba(255, 204, 0, 0.1); padding: 5px 10px; border: 1px dashed var(--neon-green); }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger .bar { width: 28px; height: 3px; background-color: var(--neon-cyan); transition: all 0.2s ease; }

/* Buttons Brutalism */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.8rem; font-family: var(--font-mono); text-transform: uppercase;
    font-weight: 800; font-size: 0.95rem; letter-spacing: 2px; transition: all var(--transition-fast);
    position: relative; z-index: 1; text-align: center; border-radius: 0;
}
.btn i { margin-right: 10px; font-size: 1.1rem; }
.btn-primary { 
    background: var(--neon-cyan); color: #000; 
    border: 2px solid var(--neon-cyan); 
    box-shadow: 4px 4px 0 var(--neon-green);
}
.btn-primary:hover { 
    background: var(--neon-green); 
    border-color: var(--neon-green);
    box-shadow: -4px -4px 0 var(--neon-cyan);
    transform: translate(2px, 2px);
}
.btn-outline { 
    background: #000; color: var(--neon-green); 
    border: 2px solid var(--neon-green); 
}
.btn-outline:hover { 
    background: var(--neon-green); color: #000;
}

/* Image Placeholders & System */
.img-wrapper {
    position: relative; overflow: hidden; border: 2px solid var(--neon-cyan);
    background: #000; padding: 5px;
}
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(150%) sepia(20%) hue-rotate(320deg); transition: filter 0.3s ease; }
.img-wrapper:hover img { filter: none; }
.img-wrapper::after {
    content: 'EVIDENCE'; position: absolute; top: 10px; right: 10px; background: var(--neon-cyan); color: #000; padding: 2px 8px; font-family: var(--font-mono); font-weight: bold; font-size: 0.7rem; letter-spacing: 2px;
}
.placeholder-img {
    width: 100%; height: 100%; min-height: 200px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; background: repeating-linear-gradient(45deg, #111, #111 10px, #000 10px, #000 20px);
    color: var(--neon-cyan); font-family: var(--font-mono); text-align: center; padding: 1rem; border: 1px dashed var(--neon-cyan);
}
.placeholder-img i { font-size: 2rem; margin-bottom: 0.5rem; }

/* Footer */
#footer { background: linear-gradient(to bottom, #050505, #000); background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(204,0,0,0.03) 2px, rgba(204,0,0,0.03) 4px); border-top: 2px solid var(--neon-cyan); box-shadow: inset 0 10px 20px rgba(0,0,0,0.5), 0 -5px 15px rgba(204,0,0,0.15); padding: 2.5rem 0 1rem; position: relative; overflow: hidden; }
#footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; position: relative; z-index: 1; }
.footer-brand p { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; }
.footer-status { font-family: var(--font-mono); color: var(--neon-green); font-size: 0.8rem; display: flex; align-items: center; gap: 8px; background: rgba(255,204,0,0.05); padding: 4px 8px; border: 1px solid var(--neon-green); box-shadow: 0 0 5px rgba(255,204,0,0.2); }
.status-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 5px var(--neon-cyan); animation: blink 1s step-end infinite; }
.footer-copyright { color: var(--text-muted); font-size: 0.75rem; font-family: var(--font-mono); margin-top: 1.5rem; text-align: center; border-top: 1px dashed rgba(204,0,0,0.3); padding-top: 1rem; width: 100%; }
.classified-stamp { position: absolute; top: 10px; right: 20px; color: rgba(204,0,0,0.1); font-size: 3rem; font-family: Impact, sans-serif; text-transform: uppercase; transform: rotate(-15deg); pointer-events: none; border: 3px solid rgba(204,0,0,0.1); padding: 5px 10px; letter-spacing: 3px; z-index: 0; }

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

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: var(--neon-cyan);
    z-index: 10001; transition: width 0.1s; pointer-events: none;
}

/* Theme Switcher */
.theme-switch-wrapper { display: flex; align-items: center; gap: 10px; margin-left: 1rem; }
.theme-switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; border: 1px solid var(--neon-cyan); transition: .2s; border-radius: 0; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 3px; background-color: var(--neon-cyan); transition: .2s; border-radius: 0; }
input:checked + .slider { background-color: rgba(255,204,0,0.2); border-color: var(--neon-green); }
input:checked + .slider:before { transform: translateX(24px); background-color: var(--neon-green); }

/* Image Lightbox */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.95); z-index: 100000; display: flex;
    justify-content: center; align-items: center; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
#lightbox.active { opacity: 1; pointer-events: all; }
#lightbox-img { max-width: 90%; max-height: 90vh; border: 4px solid var(--neon-green); box-shadow: 10px 10px 0 var(--neon-cyan); border-radius: 0; filter: none; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: var(--neon-cyan); font-size: 2rem; background: transparent; border: none; z-index: 100001; font-family: var(--font-mono); font-weight: bold; }
.lightbox-close:hover { color: var(--neon-green); }

/* GSAP Utils */
.fade-up { opacity: 0; transform: translateY(30px); }
