/* Base Styles */
body {
    font-family: Arial, sans-serif;
    color: #ffffff;
}

.bg-dark { background-color: #050505; }

/* Navigation Bar */
#main-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid #cc0000; /* Red accent border line from your logo */
    z-index: 1000;
    box-sizing: border-box;
}

.nav-btn {
    cursor: pointer;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #444444;
    border-radius: 0; /* Boxy terminal look */
    font-size: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease-in-out;
}

.nav-btn:hover { 
    background-color: #cc0000; /* Solid Red matching the logo bottom */
    border-color: #ff3333;
    color: #ffffff;
}

/* Center Landing Page Background */
.main-landing {
    background-color: #000000;
    background-image: url('../img/logo4.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
}

/* Sliding Panels Base */
.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    transition: transform 0.5s ease-in-out;
    box-sizing: border-box;
}

/* Off-Screen Initial Positions */
.slide-left   { transform: translateX(-100%); }
.slide-right  { transform: translateX(100%); }
.slide-top    { transform: translateY(-100%); }
.slide-bottom { transform: translateY(100%); }

.slide-panel.open {
    transform: translate(0, 0);
}

/* Close Button (The X) */
.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 35px;
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2100;
}
.close-btn:hover { color: #cc0000; }

/* ==========================================================================
   HIGH-TECH TERMINAL THEMING & PANELS
   ========================================================================== */

.bg-terminal {
    background-color: rgba(10, 10, 10, 0.92); 
    backdrop-filter: blur(8px); /* Blur effect over the cockpit background */
    border-left: 4px solid #cc0000; 
    border-right: 4px solid #cc0000;
}

/* Content wrapper that handles scrolling beautifully */
.panel-container {
    max-width: 850px;
    margin: 0 auto;
    padding-top: 70px;
    padding-bottom: 40px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Terminal Title Styling */
.terminal-header {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px dashed #444444;
    padding-bottom: 10px;
}

/* Individual Content Blocks (The Glass Cards) */
.terminal-card {
    background-color: rgba(25, 25, 25, 0.6);
    border: 1px solid #333333;
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #dddddd;
}

.terminal-card h3 {
    font-family: 'Courier New', Courier, monospace;
    color: #cc0000; 
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MODERN FLEXBOX INTRODUCTION BLOCK */
.intro-flex-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

/* Modern Author Profile Frame */
.profile-frame {
    background-color: #111111;
    border: 2px solid #cc0000; 
    padding: 4px;
    flex-shrink: 0;
}

.profile-frame img {
    width: 160px;
    height: auto;
    filter: grayscale(30%); 
    display: block;
}

/* ==========================================================================
   CSS GRID LANDING FOR BOOKS MANIFEST
   ========================================================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Divides area evenly into two side-by-side structures */
    gap: 25px;
    margin-top: 25px;
}

/* Status Telemetry Banners for Projects */
.status-banner {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
}
.status-banner.operational {
    background-color: rgba(0, 230, 0, 0.12);
    border: 1px solid #00dd00;
    color: #00ff00;
}
.status-banner.standby {
    background-color: rgba(230, 150, 0, 0.12);
    border: 1px solid #dd9900;
    color: #ffaa00;
}

/* Technical Specification Book Data Matrix */
.book-meta-box {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(10, 10, 10, 0.6);
    border-left: 2px solid #cc0000;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}
.meta-label {
    color: #777777;
    font-weight: bold;
}
.mb-15 { margin-bottom: 15px; }

/* Custom Scrollbar for the Terminal Panel Content */
.panel-container::-webkit-scrollbar {
    width: 8px;
}
.panel-container::-webkit-scrollbar-track {
    background: #111111;
}
.panel-container::-webkit-scrollbar-thumb {
    background: #333333;
}
.panel-container::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* ==========================================================================
   INFINITE TERMINAL DATA TICKER LOGIC
   ========================================================================== */
#terminal-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: rgba(10, 10, 10, 0.90);
    border-top: 2px solid #cc0000; 
    padding: 8px 0;
    z-index: 900; 
    box-sizing: border-box;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-stream {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    color: #ff3333; 
    letter-spacing: 2px;
    animation: operational-ticker-loop 35s linear infinite; 
}

@keyframes operational-ticker-loop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 850px) {
    /* Triggers tablet wrap so columns drop elegantly before they squeeze too hard */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    #main-nav-bar {
        flex-direction: column;
        padding: 5px;
    }

    .nav-btn {
        width: 90%;
        max-width: 300px;
        margin: 4px 0;
        padding: 12px;
        font-size: 14px;
        text-align: center;
    }

    .main-landing {
        background-position: center 70%; 
    }

    .panel-container {
        padding-top: 80px; 
        height: calc(100vh - 100px); 
    }

    .intro-flex-container {
        flex-direction: column;
        align-items: center;
    }
    
    #terminal-ticker {
        padding: 6px 0;
    }
    .ticker-stream {
        font-size: 11px;
    }
}

/* ==========================================================================
   CUSTOM ISOLATED ISOLATION TARGETS
   ========================================================================== */
/* Custom Footer Highlight: Overrides the red text for specific coordinates */
.ticker-stream .ticker-yellow {
    color: #ffcc00;
}