/* OCTAMARINE TACTICAL STYLESHEET v3.0
   Standardized CSS for all Operational Sectors
*/

/* --- CORE TERMINAL SETTINGS --- */

body {
    cursor: crosshair;
    background-color: #000000;
    color: #C9D1D9;
    font-family: 'JetBrains Mono', monospace;
    scrollbar-width: thin;
    scrollbar-color: #080886 #000000;
}

/* Typography Overrides */
h1 {
    letter-spacing: 0.5px; 
    margin-left: -2px; 
}

/* 1. BRUTALIST DESKTOP CHROME & EDGE SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    background-color: #000000;
}
::-webkit-scrollbar-thumb {
    background-color: #080886;
    border-radius: 0px; /* Forces square edges */
}
::-webkit-scrollbar-thumb:hover {
    background-color: #080886;
}
::-webkit-scrollbar-button {
    display: none; /* Kills the up/down arrows completely! */
}

/* 2. ANDROID CHROME OVERRIDE (Only targets touch-screens) */
@media (pointer: coarse) {
    html, body {
        scrollbar-color: #080886 #000000;
        scrollbar-width: thin;
    }
}

/* 3. FIREFOX DESKTOP OVERRIDE */
@-moz-document url-prefix() {
    html {
        scrollbar-color: #080886 #000000;
        scrollbar-width: thin;
    }
}
/* ENFORCE SYSTEM FONT ON ALL INTERACTIVE ELEMENTS */
button, input, select, textarea, a {
    font-family: 'JetBrains Mono', monospace !important;
}

/* --- UI COMPONENTS --- */

/* Status Light / Heartbeat */
.status-light {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #00FF41; 
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px #00FF41;
    animation: light-pulse 2s infinite;
    vertical-align: middle;
}

/* Reactor Idle Glow Protocol */
@keyframes reactor-breathe {
    0%, 100% { filter: brightness(1.25) drop-shadow(0 0 40px rgba(196,181,253,0.15)); }
    50% { filter: brightness(1.25) drop-shadow(0 0 85px rgba(196,181,253,0.35)); }
}
.reactor-glow {
    animation: reactor-breathe 5s ease-in-out infinite;
}

/* Active Terminal Input Glow */
.cursor-blink { 
    animation: blink-animation 1s steps(2, start) infinite; 
}

/* Animations */
@keyframes light-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
@keyframes blink-animation { to { visibility: hidden; } }
@keyframes decrypt-dots { 
    0% { content: ''; } 
    33% { content: '.'; } 
    66% { content: '..'; } 
    100% { content: '...'; } 
}
.decrypting-dots::after { content: ''; animation: decrypt-dots 2s infinite; }

/* --- NAVIGATION PROTOCOLS --- */

/* Nav Bar Background */
.command-ribbon {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Plasma Horizon (Header Glow) - HARD EDGE UPDATE */
.plasma-glow-container {
    position: relative;
}
.plasma-glow-container::after,
.plasma-glow-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;  /* This matches your Tailwind px-6 padding perfectly! */
    right: 1.5rem; /* This creates the hard stop right under your buttons! */
    height: 1px;
    background: #C4B5FD; /* Solid plasma lavender, NO TAPER */
}
.plasma-glow-container::before {
    height: 2px;
    filter: blur(6px); /* Keeping your radioactive glow */
    opacity: 0.8;
    bottom: -1px;
}

/* Directory Links */
.dir-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    transition: all 0.1s steps(2);
    font-weight: 700;
    color: #C9D1D9;
    outline: 1px solid transparent; 
    outline-offset: -1px;
}
.dir-link:hover {
    color: #FFFFFF !important;
    background-color: #080886;
    outline-color: #080886; 
}
.active-dir {
    outline-color: #080886 !important;
}
.locked-dir {
    background-color: #080886 !important;
    color: #FFFFFF !important;
    outline: none !important;
}

/* Phone Number Styling */
.nav-phone {
    color: #C4B5FD;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    margin-right: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.nav-phone:hover {
    color: #00FF41 !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
    background: transparent !important;
}

/* Flex-Bracket Stretch Button (CTAs) */
.stretch-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 450px; 
    padding: 15px 20px;
    border: 1px solid #4B5563;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    text-decoration: none;
    color: #C9D1D9;
    font-weight: 700;
    transition: all 0.2s;
}
.stretch-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #C4B5FD;
    color: #C4B5FD;
}
/* Override for Electric Blue (Footer/Closer) */
#closer .stretch-btn:hover {
    background-color: rgba(0, 71, 255, 0.1);
    border-color: #0808a9;
    color: #0808a9 !important;
}

/* --- LAYOUT STRUCTURES --- */

/* Split Layout System */
.split-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
.text-column {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center so it anchors to the top */
    text-align: left;
    padding: 200px 8% 80px 8%; /* Locked top padding to 200px */
    z-index: 20;
    background-color: #000000; 
}
.visual-column {
    width: 40%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .split-layout { flex-direction: column; }
    .text-column, .visual-column { width: 100%; padding: 120px 8% 60px 8%; } /* Locked mobile top padding */
    .visual-column { min-height: 40vh; }
    .nav-phone { margin-right: 0; }
    .modal-content { padding: 12px 60px; }
    .modal-nav { padding: 1.5rem 0.5rem; font-size: 12px; }
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

/* --- MODULES: CAPABILITY MATRIX (TACTICAL GRID) --- */
.matrix-item {
    border: 1px dashed #30363D;
    padding: 2.5rem 2rem 2rem 2rem;
    transition: all 0.2s steps(4);
    position: relative;
    background: transparent;
}

/* The Corner Crosshair (+) */
.matrix-item::before {
    content: '+';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    z-index: 10;
    background: #000000;
    transition: color 0.2s;
}

.matrix-item:hover {
    border: 1px solid #C4B5FD;
    background: rgba(196, 181, 253, 0.05);
}

.matrix-item:hover::before {
    color: #C4B5FD;
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.8);
}

.matrix-item h3 { color: #FFFFFF; font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.matrix-item p { color: #C9D1D9; font-size: 0.8rem; line-height: 1.6; }
.matrix-specs { list-style: none; padding: 0; margin-top: 1.5rem; }
.matrix-specs li { color: #C9D1D9; font-size: 0.8rem; line-height: 1.8; }
.matrix-specs li span { color: #C4B5FD; font-weight: 700; }

/* --- MODULES: DISPATCH TERMINAL --- */
.terminal-container {
    border: 1px solid #30363D;
    background: #050505;
    padding: 2rem;
}
.dispatch-btn { 
    display: block; 
    padding: 1.5rem; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    border: 1px solid #30363D;
}
.btn-urgent { border-color: #00FF41; background: rgba(0,255,65,0.05); }
.btn-urgent:hover { background: rgba(0,255,65,0.15); box-shadow: 0 0 15px rgba(0, 255, 65, 0.3); }
.btn-project { border-color: #C4B5FD; background: rgba(196,181,253,0.05); }
.btn-project:hover { background: rgba(196,181,253,0.15); box-shadow: 0 0 15px rgba(196, 181, 253, 0.3); }

/* --- MODULES: VISUAL DATABASE (GALLERY) --- */
.gallery-item {
    position: relative;
    border: 1px solid #30363D;
    overflow: hidden;
    transition: all 0.3s ease;
}
.gallery-item:hover {
    border-color: #080886;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}
.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 10px;
    font-weight: 700;
    color: #C4B5FD;
}
.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Gallery Modal Structure */
#gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#gallery-modal.active { display: flex; }
.modal-content {
    position: relative;
    width: auto;
    max-width: 95vw;
    max-height: 90vh;
    border: 1px solid #30363D;
    background: #000000;
    padding: 12px 120px;
    display: flex;
    flex-direction: column;
}
.modal-image-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}
.modal-image-field img {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #C9D1D9;
    padding: 2rem 0.75rem;
    cursor: pointer;
    border: 1px solid #30363D;
    z-index: 20;
    transition: all 0.2s;
    font-weight: bold;
}
.modal-nav:hover { color: #FFFFFF; background: #080886; border-color: #080886; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* --- MODULES: HOME PAGE --- */
.rate-row {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin-bottom: 0.5rem;
}
.rate-label { flex-shrink: 0; }
.rate-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #30363D;
    margin: 0 10px;
    height: 1em;
}
.rate-price { flex-shrink: 0; color: #C4B5FD; font-weight: 700; }
.service-entry .hover-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: #C4B5FD;
}
.service-entry:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0);
}
.service-entry:hover p { color: #C4B5FD; }
.hero-loc { color: #C4B5FD; font-size: 16px; font-weight: 700; }
.btn-tier-1 {
    background-color: #FFFFFF;
    color: #000000;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-block;
}
.btn-tier-1:hover { background-color: #080886; color: #FFFFFF; }
.btn-tier-2 {
    border: 1px solid #080886;
    color: #FFFFFF; 
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-block;
}
.btn-tier-2:hover { background-color: #080886; color: #FFFFFF; }

/* --- UTILITY: WIREFRAME FIT --- */
/* Add this class to images in the 40% column to prevent cropping */
.wireframe-fit {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}

/* --- SYSTEM UTILITIES: MODALS & FOOTER --- */

/* Policy Modal Terminal */
#policy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}
#policy-modal.active { display: block; }
.modal-terminal-content {
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid #30363D;
    background: #000000;
    padding: 2rem;
    color: #FFFFFF;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer & Social Uplink */
.social-glow {
    color: #4B5563 !important; /* Forces baseline gray */
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: normal; 
    display: inline-block;
    background: transparent;
    border: none;
    cursor: pointer;
}
.social-glow:hover {
    color: #C4B5FD !important;
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.6);
}