/* ========== PASSWORD PROTECTION UI ========== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(3, 5, 8, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.password-container {
    background: rgba(8, 12, 18, 0.9);
    border: 1px solid rgba(43, 188, 138, 0.4);
    border-left: 3px solid #2bbc8a;
    border-radius: 4px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 0 40px rgba(43, 188, 138, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.password-icon {
    font-size: 3rem;
    color: #2bbc8a;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(43, 188, 138, 0.5);
}

.password-title {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 1.5rem;
    color: #2bbc8a;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.password-subtitle {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.password-hint {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 1.5rem 0;
    padding: 0.5rem;
    background: rgba(43, 188, 138, 0.1);
    border-radius: 2px;
    border: 1px dashed rgba(43, 188, 138, 0.3);
}

.password-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.password-input {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(43, 188, 138, 0.3);
    border-radius: 3px;
    color: #2bbc8a;
    outline: none;
    transition: all 0.2s ease;
}

.password-input:focus {
    border-color: #2bbc8a;
    box-shadow: 0 0 15px rgba(43, 188, 138, 0.2);
}

.password-input::placeholder {
    color: #444;
}

.password-submit {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    background: rgba(43, 188, 138, 0.15);
    border: 1px solid #2bbc8a;
    border-radius: 3px;
    color: #2bbc8a;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.1em;
}

.password-submit:hover {
    background: rgba(43, 188, 138, 0.3);
    box-shadow: 0 0 20px rgba(43, 188, 138, 0.3);
}

.password-error {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.85rem;
    color: #ff4d4d;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 2px;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.password-input.shake {
    animation: shake 0.4s ease;
    border-color: #ff4d4d;
}

/* ========== FULLSCREEN BOOT SCREEN ========== */
/* Hide homepage content during boot */
body.boot-active .site-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Site wrapper for content hiding */
.site-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Boot screen - fullscreen blocking overlay */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #030508;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Radial pulse waves (EXISTING - timing compressed to 2s) */
.boot-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(43, 188, 138, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.boot-pulse-ring:nth-child(2) {
    animation: boot-ring-expand 2.2s 0ms ease-out forwards;
}

.boot-pulse-ring:nth-child(3) {
    animation: boot-ring-expand 2.2s 250ms ease-out forwards;
}

.boot-pulse-ring:nth-child(4) {
    animation: boot-ring-expand 2.2s 500ms ease-out forwards;
}

@keyframes boot-ring-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
        border-width: 3px;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
        border-width: 1px;
    }
}

/* Central glow orb (EXISTING - 3s total) */
.boot-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(43, 188, 138, 0.8) 0%, rgba(43, 188, 138, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    animation: boot-orb-pulse 2.6s ease-in-out forwards;
    box-shadow: 0 0 60px rgba(43, 188, 138, 0.5), 0 0 120px rgba(43, 188, 138, 0.3);
}

@keyframes boot-orb-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
}

/* Horizontal scan lines (EXISTING - timing compressed) */
.boot-scanline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(43, 188, 138, 0.8) 50%, transparent 100%);
    box-shadow: 0 0 20px rgba(43, 188, 138, 0.6);
    opacity: 0;
}

.boot-scanline:nth-child(5) {
    top: 50%;
    animation: boot-scan-horizontal 0.8s 200ms ease-out forwards;
}

.boot-scanline:nth-child(6) {
    top: 50%;
    animation: boot-scan-horizontal-reverse 0.8s 500ms ease-out forwards;
}

@keyframes boot-scan-horizontal {
    0% { left: -100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes boot-scan-horizontal-reverse {
    0% { left: 100%; opacity: 1; }
    100% { left: -100%; opacity: 0; }
}

/* Vertical split lines (EXISTING - timing compressed) */
.boot-split-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(43, 188, 138, 0.4);
    opacity: 0;
}

.boot-split-line:nth-child(7) {
    left: 50%;
    animation: boot-split-expand 0.6s 800ms ease-out forwards;
}

@keyframes boot-split-expand {
    0% {
        transform: scaleY(0);
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

/* ========== NEW: DIRECTIONAL ENERGY SWEEPS ========== */
.boot-sweep {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(43, 188, 138, 0.25), transparent);
    filter: blur(2px);
    opacity: 0;
}

.boot-sweep-left {
    top: 50%;
    left: 0;
    width: 60%;
    height: 3px;
    transform: translateY(-50%);
    animation: boot-sweep-left 180ms 100ms ease-out forwards;
}

.boot-sweep-right {
    top: 50%;
    right: 0;
    width: 60%;
    height: 3px;
    transform: translateY(-50%);
    background: linear-gradient(270deg, transparent, rgba(43, 188, 138, 0.25), transparent);
    animation: boot-sweep-right 180ms 150ms ease-out forwards;
}

.boot-sweep-bottom {
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 50%;
    transform: translateX(-50%);
    background: linear-gradient(0deg, transparent, rgba(43, 188, 138, 0.25), transparent);
    animation: boot-sweep-bottom 200ms 80ms ease-out forwards;
}

@keyframes boot-sweep-left {
    0% { transform: translateY(-50%) translateX(-100%); opacity: 0.6; }
    100% { transform: translateY(-50%) translateX(80%); opacity: 0; }
}

@keyframes boot-sweep-right {
    0% { transform: translateY(-50%) translateX(100%); opacity: 0.6; }
    100% { transform: translateY(-50%) translateX(-80%); opacity: 0; }
}

@keyframes boot-sweep-bottom {
    0% { transform: translateX(-50%) translateY(100%); opacity: 0.6; }
    100% { transform: translateX(-50%) translateY(-60%); opacity: 0; }
}

/* ========== NEW: VERTICAL + DIAGONAL SCAN LINES ========== */
.boot-scanline-vertical {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(43, 188, 138, 0.6) 50%, transparent 100%);
    box-shadow: 0 0 15px rgba(43, 188, 138, 0.4);
    opacity: 0;
    animation: boot-scan-vertical 0.6s 300ms ease-out forwards;
}

@keyframes boot-scan-vertical {
    0% { top: -100%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.boot-scanline-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(43, 188, 138, 0.4) 50%, transparent 100%);
    transform: rotate(35deg);
    transform-origin: left top;
    opacity: 0;
    animation: boot-scan-diagonal 0.5s 450ms ease-out forwards;
}

@keyframes boot-scan-diagonal {
    0% { transform: rotate(35deg) translateX(-100%); opacity: 0.7; }
    100% { transform: rotate(35deg) translateX(100%); opacity: 0; }
}

/* ========== NEW: GRID REACTIVATION FLASH ========== */
.boot-grid-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(43, 188, 138, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 188, 138, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0;
    animation: boot-grid-lock 150ms 400ms ease-out forwards;
    pointer-events: none;
}

@keyframes boot-grid-lock {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========== NEW: MICRO SIGNAL NOISE ========== */
.boot-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.boot-noise-segment {
    position: absolute;
    width: 8px;
    height: 2px;
    background: rgba(43, 188, 138, 0.5);
    opacity: 0;
    animation: boot-noise-blink 250ms ease-out forwards;
}

.boot-noise-segment:nth-child(1) { animation-delay: 100ms; }
.boot-noise-segment:nth-child(2) { animation-delay: 180ms; }
.boot-noise-segment:nth-child(3) { animation-delay: 130ms; }
.boot-noise-segment:nth-child(4) { animation-delay: 220ms; }
.boot-noise-segment:nth-child(5) { animation-delay: 160ms; width: 12px; }
.boot-noise-segment:nth-child(6) { animation-delay: 200ms; width: 10px; }
.boot-noise-segment:nth-child(7) { animation-delay: 90ms; width: 6px; }
.boot-noise-segment:nth-child(8) { animation-delay: 250ms; width: 6px; }

@keyframes boot-noise-blink {
    0% { opacity: 0; }
    30% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* ========== NEW: SCREEN ENERGY PULSE ========== */
.boot-energy-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.boot-screen.pulse-active .boot-energy-pulse {
    animation: boot-power-stabilize 200ms ease-out forwards;
}

@keyframes boot-power-stabilize {
    0% { 
        opacity: 0;
        transform: scale(1);
        filter: contrast(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.008);
        filter: contrast(1.05);
        background: radial-gradient(ellipse at center, rgba(43, 188, 138, 0.03) 0%, transparent 70%);
    }
    100% { 
        opacity: 0;
        transform: scale(1);
        filter: contrast(1);
    }
}

/* Boot text container (ENHANCED - glow ramp + micro float) */
.boot-text-container {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    animation: boot-text-reveal 2.2s 500ms ease-out forwards;
}

@keyframes boot-text-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(0);
        filter: blur(10px);
    }
    30% {
        opacity: 1;
        transform: scale(1.02) translateY(-1px);
        filter: blur(0);
    }
    60% {
        opacity: 1;
        transform: scale(1) translateY(1px);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.03) translateY(0);
        filter: blur(3px);
    }
}

.boot-text-main {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #2bbc8a;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-shadow: 
        0 0 20px rgba(43, 188, 138, 1),
        0 0 40px rgba(43, 188, 138, 0.8),
        0 0 80px rgba(43, 188, 138, 0.4);
    margin-bottom: 1rem;
    animation: boot-text-glow 2.2s 500ms ease-out forwards;
}

@keyframes boot-text-glow {
    0% {
        text-shadow: 0 0 5px rgba(43, 188, 138, 0.3);
    }
    40% {
        text-shadow: 
            0 0 25px rgba(43, 188, 138, 1),
            0 0 50px rgba(43, 188, 138, 0.9),
            0 0 100px rgba(43, 188, 138, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(43, 188, 138, 0.2);
    }
}

.boot-text-sub {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: clamp(2.5rem, 10vw, 6rem);
    color: rgba(43, 188, 138, 0.9);
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 30px rgba(43, 188, 138, 1),
        0 0 60px rgba(43, 188, 138, 0.8),
        0 0 100px rgba(43, 188, 138, 0.5);
}

/* Screen shake (EXISTING) */
.boot-screen.shake {
    animation: boot-shake 80ms ease-in-out;
}

@keyframes boot-shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, 2px); }
}

/* Final fade out (EXISTING) */
.boot-screen.fade-out {
    animation: boot-fade-out 300ms ease-out forwards;
}

@keyframes boot-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Grid overlay for depth (EXISTING - 3s total) */
.boot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(43, 188, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 188, 138, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0;
    animation: boot-grid-fade 2.8s 0ms ease-out forwards;
}

@keyframes boot-grid-fade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

/* Matrix Canvas Background */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    /* Subtle background */
    pointer-events: none;
    will-change: auto;
}

/* ========== FIXED HEADER BACKGROUND (All Pages) ========== */
/* Desktop and Mobile: completely transparent header fixed at top */
.site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* expose header height as a CSS variable for page-specific spacing */
    --header-height: 4rem;
    z-index: 9999;
    pointer-events: auto;
    border-bottom: none;
    min-height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Fallback for old class combination */
.sticky.top-0.z-50 {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    --header-height: 4rem;
    z-index: 9999;
    pointer-events: auto;
    border-bottom: none;
    min-height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Add top padding to main content to prevent overlap with fixed header */
main {
    padding-top: 4.5rem;
}

body {
    padding-top: 0;
}

/* Recon panel needs top spacing on about page */
.recon-panel {
    margin-top: 0 !important;
}

/* Ensure recon panel on About page sits below fixed header */
.about-page .recon-panel {
    margin-top: 12rem !important;
}

/* Ensure post header (title block) sits below fixed header and within normal flow */
.post-page .post-header {
    position: relative !important;
    z-index: 2 !important;
    /* center the post header inside the content column and prevent it from spanning the viewport */
    max-width: 900px !important;
    width: min(900px, calc(100% - 2rem)) !important;
    margin: calc(var(--header-height, 4rem) + 1rem) auto 2rem auto !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    text-align: left !important;
}

/* Ensure the post title text aligns with article content and doesn't float to the viewport corner */
.post-page .post-title-editorial {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* Communication panel needs top spacing on contact page */
.comm-interface {
    margin-top: 0 !important;
}

/* Tags pages need top padding to account for fixed header */
.container.mx-auto.px-4.py-8 {
    padding-top: 4.5rem !important;
}

/* Mobile header - ensure visibility */
.mobile-header {
    display: flex;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Desktop header - will be controlled by media queries below */
.desktop-header {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

/* Mobile menu overlay - ensure it sits above content but below menu */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: auto;
}

#mobile-menu-overlay.open {
    display: block;
}

/* Mobile menu - ensure it sits above overlay */
#mobile-menu {
    z-index: 10001;
    pointer-events: auto;
}

/* ========== MOBILE POST PAGE FIXES (No White Overlay) ========== */
@media (max-width: 1023px) {
    /* Ensure body has no white background */
    body {
        background-color: transparent !important;
        background: transparent !important;
    }
    
    /* Ensure html has no white background */
    html {
        background-color: #000 !important;
        background: #000 !important;
    }
    
    /* Mobile sticky header - transparent, no black bg */
    .sticky.top-0.z-50 {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
    }
    
    /* Ensure article content has transparent background */
    .article-entry,
    #article-content,
    #middle-box,
    .prose,
    .prose-invert {
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Remove any pseudo-element overlays */
    .article-entry::before,
    .article-entry::after,
    #article-content::before,
    #article-content::after,
    .prose::before,
    .prose::after,
    body::before,
    body::after {
        display: none !important;
        background: none !important;
        opacity: 0 !important;
    }
    
    /* Container should be transparent */
    .container {
        background: transparent !important;
    }
    
    /* Footer - ensure no white elements */
    footer {
        background: transparent !important;
        border: none !important;
    }
}

/* ========== POST HEADER - EDITORIAL STYLE ========== */
.post-header {
    position: relative;
    max-width: 900px;
    margin: 4.5rem auto 2rem auto;
    padding: 2rem 2rem 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.35);
    border-left: 3px solid #2bbc8a;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.post-header-content {
    text-align: left;
}

.post-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-family: 'Perfect DOS VGA 437', monospace;
}

.post-title-editorial {
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(43, 188, 138, 0.85);
    line-height: 1.25;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
    font-family: 'Perfect DOS VGA 437', monospace;
}

.post-subtitle {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Mobile adjustments for post header */
@media (max-width: 1023px) {
    .post-header {
        margin: 1.5rem 1rem;
        padding: 1.5rem 1.25rem 1.75rem 1.25rem;
    }
    
    .post-title-editorial {
        font-size: 1.75rem;
    }
    
    .post-date {
        font-size: 0.75rem;
    }
    
    .post-subtitle {
        font-size: 0.85rem;
    }
}

/* ========== ABOUT PAGE - KALI RECON PANEL ========== */

/* Main panel container */
.recon-panel {
    max-width: 900px;
    margin: 7rem auto 3rem auto;
        margin: 12rem auto 3rem auto;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(43, 188, 138, 0.4);
    border-radius: 6px;
    box-shadow: 
        0 0 20px rgba(43, 188, 138, 0.08),
        0 0 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    animation: recon-float 6s ease-in-out infinite;
}

@keyframes recon-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 
            0 0 20px rgba(43, 188, 138, 0.08),
            0 0 40px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 
            0 0 25px rgba(43, 188, 138, 0.12),
            0 0 50px rgba(0, 0, 0, 0.5);
    }
}

/* Panel header - window title bar */
.recon-header {
    background: rgba(30, 30, 35, 0.9);
    border-bottom: 1px solid rgba(43, 188, 138, 0.2);
    padding: 0.6rem 1rem;
}

.recon-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.recon-dot.red { background: #ff5f56; }
.recon-dot.yellow { background: #ffbd2e; }
.recon-dot.green { background: #27ca40; }

.recon-window-title {
    margin-left: 0.75rem;
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.8rem;
    color: #666;
}

/* Panel body */
.recon-body {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Each line of output */
.recon-line {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 0.35rem;
}

.recon-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.recon-line.blank {
    height: 0.75rem;
}

/* Command prompt lines */
.recon-line.cmd {
    color: #888;
}

.recon-prompt {
    color: #2bbc8a;
}

.recon-cmd {
    color: #e0e0e0;
}

/* Output lines */
.recon-line.output {
    color: #888;
}

/* Status indicators */
.recon-info {
    color: #5bc0de;
}

.recon-success {
    color: #2bbc8a;
}

.recon-warn {
    color: #f0ad4e;
    font-style: italic;
}

/* Section headers */
.recon-line.section {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.recon-section-title {
    color: #2bbc8a;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Content lines */
.recon-line.content {
    color: #a0a0a0;
    padding-left: 1.75rem;
}

.recon-highlight {
    color: #e0e0e0;
    font-weight: 600;
}

/* Profile avatar in recon panel */
.recon-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #2bbc8a;
    margin: 0.75rem 0 0.5rem 1.75rem;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(43, 188, 138, 0.3);
}

/* List items */
.recon-line.list {
    color: #a0a0a0;
    padding-left: 1.75rem;
}

.recon-bullet {
    color: #444;
}

/* Links */
.recon-link {
    color: #5bc0de;
}

/* Quote */
.recon-line.quote {
    padding-left: 1.75rem;
    color: #777;
    font-style: italic;
}

.recon-quote-mark {
    color: #444;
}

/* Blinking cursor */
.recon-cursor {
    color: #2bbc8a;
    animation: recon-blink 1s step-end infinite;
}

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

/* Mobile adjustments */
@media (max-width: 1023px) {
    .recon-panel {
        margin: 1.5rem 0.75rem 2rem 0.75rem;
        border-radius: 4px;
    }
    
    .recon-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .recon-line.content,
    .recon-line.list,
    .recon-line.quote {
        padding-left: 1rem;
    }
    
    .recon-window-title {
        font-size: 0.7rem;
    }
    
    .recon-dot {
        width: 8px;
        height: 8px;
    }
}

/* ========== CONTACT - COMMUNICATION VECTOR INTERFACE ========== */

/* Main interface container */
.comm-interface {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4.5rem 1rem 4rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Main panel */
.comm-panel {
    width: 100%;
    max-width: 700px;
    background: rgba(8, 12, 15, 0.9);
    border: 1px solid rgba(43, 188, 138, 0.35);
    border-radius: 4px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        0 0 30px rgba(43, 188, 138, 0.06),
        0 4px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Status console banner */
.comm-banner {
    background: rgba(43, 188, 138, 0.08);
    border-bottom: 1px solid rgba(43, 188, 138, 0.2);
    padding: 1rem 1.5rem;
    text-align: center;
}

.comm-banner-text {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #2bbc8a;
    text-transform: uppercase;
}

.comm-banner-line {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(43, 188, 138, 0.4) 50%,
        transparent 100%
    );
    margin-top: 0.75rem;
}

/* Initialization sequence */
.comm-init {
    padding: 2rem 2rem 1.5rem 2rem;
    transition: opacity 0.5s ease;
}

.comm-init.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.init-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.init-step.active,
.init-step.complete {
    opacity: 1;
}

.init-status {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.9rem;
    width: 2rem;
    text-align: center;
}

.init-status.pending {
    color: #555;
}

.init-status.success {
    color: #2bbc8a;
}

.init-label {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.9rem;
    color: #888;
    flex: 1;
}

.init-step.complete .init-label {
    color: #aaa;
}

.init-progress {
    width: 80px;
    height: 3px;
    background: rgba(43, 188, 138, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.init-bar {
    width: 0;
    height: 100%;
    background: #2bbc8a;
    border-radius: 2px;
}

@keyframes init-progress-fill {
    0% { width: 0; }
    100% { width: 100%; }
}

.init-complete {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(43, 188, 138, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.init-complete.visible {
    opacity: 1;
}

.init-complete .init-label {
    color: #2bbc8a;
    font-weight: 600;
}

/* Contact content (hidden initially) */
.comm-content {
    padding: 0 2rem 1rem 2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, max-height 0.5s ease;
}

.comm-content.visible {
    opacity: 1;
    max-height: 1000px;
}

/* Section styling */
.comm-section {
    margin-bottom: 2rem;
}

.comm-section-header {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(43, 188, 138, 0.7);
    text-transform: uppercase;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(43, 188, 138, 0.15);
}

/* Field rows */
.comm-field {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.5rem 0;
    font-family: 'Perfect DOS VGA 437', monospace;
}

.comm-key {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #555;
    text-transform: uppercase;
    min-width: 70px;
}

.comm-value {
    font-size: 1rem;
    color: #c0c0c0;
}

/* Communication endpoints */
.comm-endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comm-endpoint:last-child {
    border-bottom: none;
}

.endpoint-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 188, 138, 0.08);
    border: 1px solid rgba(43, 188, 138, 0.2);
    border-radius: 4px;
    color: #2bbc8a;
    font-size: 1rem;
}

.endpoint-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.endpoint-label {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #555;
    text-transform: uppercase;
}

.endpoint-value {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.95rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.endpoint-value.obfuscated {
    color: #666;
    font-style: italic;
}

/* Copy button */
.comm-copy {
    background: transparent;
    border: 1px solid rgba(43, 188, 138, 0.25);
    border-radius: 3px;
    color: rgba(43, 188, 138, 0.6);
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comm-copy:hover {
    background: rgba(43, 188, 138, 0.1);
    border-color: rgba(43, 188, 138, 0.5);
    color: #2bbc8a;
}

.comm-copy.copied {
    color: #00ff00;
    border-color: #00ff00;
}

/* Footer */
.comm-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(43, 188, 138, 0.15);
    padding: 1.25rem 2rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.comm-footer.visible {
    opacity: 1;
}

.comm-intent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Perfect DOS VGA 437', monospace;
}

.intent-icon {
    color: #2bbc8a;
    font-size: 0.8rem;
}

.intent-text {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    .comm-interface {
        padding: 5rem 0.75rem 3rem 0.75rem;
    }
    
    .comm-panel {
        border-radius: 4px;
    }
    
    .comm-banner {
        padding: 0.75rem 1rem;
    }
    
    .comm-banner-text {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
    
    .comm-init {
        padding: 1.5rem 1.25rem 1rem 1.25rem;
    }
    
    .comm-content {
        padding: 1.5rem 1.25rem 1rem 1.25rem;
    }
    
    .comm-section-header {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        margin-bottom: 1rem;
    }
    
    .comm-footer {
        padding: 1rem 1.25rem;
    }
    
    .init-progress {
        width: 50px;
    }
    
    .init-label {
        font-size: 0.8rem;
    }
    
    .comm-field {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .comm-key {
        min-width: auto;
    }
    
    .endpoint-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* ========== CYBER FOOTER STYLING ========== */
.cyber-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 4rem;
    padding: 0;
    box-sizing: border-box;
}

.cyber-footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(43, 188, 138, 0.6) 20%, rgba(43, 188, 138, 0.8) 50%, rgba(43, 188, 138, 0.6) 80%, transparent 100%);
    margin-bottom: 0;
}

.cyber-footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 3rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.cyber-footer-left,
.cyber-footer-center,
.cyber-footer-right {
    font-family: 'DOSFont', 'Courier New', monospace;
}

.cyber-footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.footer-copyright {
    color: rgba(170, 170, 170, 0.9);
    font-size: 1rem;
    font-weight: 600;
}

.footer-role {
    color: rgba(43, 188, 138, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-disclaimer {
    color: rgba(136, 136, 136, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
}

.cyber-footer-center {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.uptime-row,
.state-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.uptime-label {
    color: rgba(170, 170, 170, 0.7);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.uptime-separator {
    color: rgba(170, 170, 170, 0.5);
    font-size: 1rem;
}

.uptime-value {
    color: rgba(43, 188, 138, 0.9);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.cyber-quote {
    color: rgba(43, 188, 138, 0.85);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
}

.cyber-footer-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.terminal-prefix {
    color: rgba(43, 188, 138, 1);
}

.terminal-word {
    opacity: 0;
    transition: opacity 0.4s ease;
    min-width: 160px;
    display: inline-block;
    text-align: left;
    color: rgba(0, 200, 0, 0.9);
}

.terminal-word.visible {
    opacity: 1;
}

.state-label {
    color: rgba(170, 170, 170, 0.7);
    letter-spacing: 0.05em;
}

.state-separator {
    color: rgba(170, 170, 170, 0.5);
}

.state-value {
    color: rgba(43, 188, 138, 0.9);
    font-weight: 600;
}

/* Mobile footer - stack vertically */
@media (max-width: 768px) {
    /* Ensure body/html allow full scroll and don't clip footer */
    html, body {
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        min-height: auto !important;
        position: relative;
    }
    
    body {
        display: block;
        padding-bottom: 0;
    }
    
    .cyber-footer {
        margin-top: 3rem;
        position: relative;
        z-index: 10;
        overflow: visible;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-bottom: 2rem;
    }
    
    .cyber-footer-content {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem 2.5rem;
        text-align: center;
        overflow: visible;
        min-height: auto;
    }
    
    .cyber-footer-left,
    .cyber-footer-center,
    .cyber-footer-right {
        width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
        overflow: visible;
        display: flex;
        flex-wrap: wrap;
    }
    
    .cyber-footer-left {
        flex-direction: column;
        gap: 0.2rem;
        order: 1;
    }
    
    .footer-copyright {
        font-size: 0.9rem;
    }
    
    .footer-role {
        font-size: 0.8rem;
    }
    
    .footer-disclaimer {
        font-size: 0.75rem;
    }
    
    .cyber-footer-center {
        padding: 0;
        order: -1;
        gap: 0.3rem;
        flex-direction: column;
    }
    
    .uptime-row,
    .state-row {
        gap: 0.4rem;
    }
    
    .cyber-footer-right {
        order: 1;
        font-size: 0.85rem;
    }
    
    .uptime-label {
        font-size: 0.85rem;
    }
    
    .uptime-separator {
        font-size: 0.85rem;
    }
    
    .uptime-value {
        font-size: 0.85rem;
    }
    
    .state-label,
    .state-separator,
    .state-value {
        font-size: 0.8rem;
    }
    
    .cyber-quote {
        font-size: 0.95rem;
    }
    
    .terminal-word {
        min-width: auto;
        text-align: center;
    }
    
    /* Ensure canvas doesn't clip footer */
    .matrix-canvas {
        pointer-events: none;
        position: fixed;
        height: 100%;
    }
}


/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    margin: 0;
    padding: 0;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* ========== ANIMATED TAGLINE ========== */
#animated-tagline {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#animated-tagline.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* ========== COMPACT SEARCH DROPDOWN ========== */
.search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 2px solid #2bbc8a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-dropdown.hidden {
    display: none;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #2bbc8a;
}

.search-icon {
    color: #666;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.search-input-wrapper input::placeholder {
    color: #999;
}

.search-close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.search-close-btn:hover {
    color: #2bbc8a;
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 0.75rem;
}

.search-results:empty {
    display: none;
}

.search-results a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.9rem;
}

.search-results a:hover {
    background: rgba(43, 188, 138, 0.15);
    color: #2bbc8a;
}

.search-results .search-result-title {
    color: #2bbc8a;
    font-weight: bold;
}

.search-results .search-result-excerpt {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========== RESPONSIVE NAVBAR ========== */
/* Mobile header: visible below 1024px */
.mobile-header {
    display: flex;
}

/* Desktop: show desktop header, hide mobile header */
@media (min-width: 1024px) {
    .mobile-header {
        display: none !important;
    }
    .desktop-header {
        display: flex !important;
        width: 100%;
        align-items: center;
        height: 4rem;
        padding: 0 40px;
    }
    
    /* Ensure navigation links are visible and not hidden */
    .desktop-header a {
        display: inline-flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Navigation Active State & Underline */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2bbc8a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-active {
    color: #2bbc8a;
}

.nav-link.nav-active::after {
    width: 100%;
    background-color: #2bbc8a;
    box-shadow: 0 0 8px #2bbc8a;
}

/* ========== SIDEBAR REMOVAL ON DESKTOP ========== */
/* Hide sidebar on laptop/desktop (≥1024px) */
@media (min-width: 1024px) {
    /* Hide the sidebar container only */
    .sidebar-container {
        display: none !important;
    }
    
    /* Two-column layout: blog list + widgets */
    #scr-target {
        display: flex;
        justify-content: center;
        gap: 50px;
        padding: 0 2rem;
        align-items: flex-start;
    }
    
    #scr-target > .w-full {
        flex: 1 1 auto;
        max-width: 800px;
    }
    
    /* Show widgets container on desktop - aligned with blog list top */
    .info-widgets-container {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        width: 260px;
        min-width: 260px;
        max-width: 280px;
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 0;
        padding-top: 1rem;
    }
}

/* ========== PROGRESSIVE POST DISCLOSURE ========== */

/* Post reveal animation */
.post-item.post-reveal {
    animation: post-reveal-in 0.4s ease-out forwards;
}

@keyframes post-reveal-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enumerate control container */
.enumerate-control {
    margin-top: 2rem;
    padding: 1rem 0;
    transition: opacity 0.3s ease;
}

.enumerate-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(43, 188, 138, 0.2) 20%,
        rgba(43, 188, 138, 0.2) 80%,
        transparent 100%
    );
    margin-bottom: 1.25rem;
}

.enumerate-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enumerate-btn:hover {
    background: rgba(43, 188, 138, 0.03);
}

.enumerate-text {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(43, 188, 138, 0.85);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.enumerate-btn:hover .enumerate-text {
    color: #2bbc8a;
}

.enumerate-glyph {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 1rem;
    color: rgba(43, 188, 138, 0.35);
    transition: color 0.3s ease, transform 0.3s ease;
}

.enumerate-btn:hover .enumerate-glyph {
    color: rgba(43, 188, 138, 0.6);
    transform: translateY(2px);
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    .enumerate-control {
        margin-top: 1.5rem;
    }
    
    .enumerate-text {
        font-size: 0.75rem;
    }
    
    .enumerate-glyph {
        font-size: 0.9rem;
    }
}

/* ========== INFO WIDGETS ========== */
/* Mobile: show widgets stacked below blog cards */
.info-widgets-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    order: 10;
}

/* Section heading for widgets */
.widgets-section-heading {
    font-family: 'Perfect DOS VGA 437', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #2bbc8a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(43, 188, 138, 0.25);
}

/* Mobile: make parent flex column to stack blog + widgets */
@media (max-width: 1023px) {
    #scr-target {
        flex-direction: column;
        gap: 0;
    }
    
    #scr-target > .w-full {
        order: 1;
    }
    
    .sidebar-container {
        display: none !important;
    }
    
    .info-widgets-container {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .widgets-section-heading {
        text-align: center;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Disable/slow animations on mobile for performance */
    .widget-list-animate {
        animation: none;
    }
    
    .info-widget {
        animation: none;
    }
}

/* Individual widget - compact card */
.info-widget {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(43, 188, 138, 0.3);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Widget hover - subtle border glow increase */
.info-widget:hover {
    border-color: rgba(43, 188, 138, 0.6);
    box-shadow: 0 0 12px rgba(43, 188, 138, 0.2);
}

/* Widget title */
.info-widget-title {
    font-family: 'Perfect DOS VGA 437', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #2bbc8a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(43, 188, 138, 0.2);
    padding-bottom: 0.4rem;
}

.widget-icon {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Widget list - all items visible */
.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 1;
}

.widget-list li {
    font-family: 'Perfect DOS VGA 437', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #888;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    line-height: 1.4;
    opacity: 0.7;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
    animation: line-highlight 8s ease-in-out infinite;
}

/* Staggered animation delays for sequential highlighting */
.widget-list li:nth-child(1) { animation-delay: 0s; }
.widget-list li:nth-child(2) { animation-delay: 2s; }
.widget-list li:nth-child(3) { animation-delay: 4s; }
.widget-list li:nth-child(4) { animation-delay: 6s; }
.widget-list li:nth-child(5) { animation-delay: 8s; }

/* Sequential line highlight animation */
@keyframes line-highlight {
    0%, 15% {
        opacity: 0.6;
        color: #888;
        text-shadow: none;
    }
    20%, 30% {
        opacity: 1;
        color: #2bbc8a;
        text-shadow: 0 0 6px rgba(43, 188, 138, 0.4);
    }
    35%, 100% {
        opacity: 0.6;
        color: #888;
        text-shadow: none;
    }
}

.widget-list li::before {
    content: '•';
    color: #00c000;
    margin-right: 0.5rem;
    font-size: 0.6rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Hover effects on widget - shift text slightly */
.info-widget:hover .widget-list li {
    transform: translateX(3px);
    opacity: 0.9;
    color: #aaa;
}

.info-widget:hover .widget-list li::before {
    opacity: 1;
}

/* Widget list animate class */
.widget-list-animate {
    opacity: 1 !important;
}

/* Threat list specific styling */
.threat-list li {
    justify-content: space-between;
}

.threat-list li::before {
    display: none;
}

.threat-label {
    color: #999;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.info-widget:hover .threat-label {
    color: #bbb;
}

.threat-high {
    color: #ff4444;
    font-size: 0.9rem;
    animation: threat-pulse-high 8s ease-in-out infinite;
}

.threat-active {
    color: #ff8800;
    font-size: 0.9rem;
    animation: threat-pulse-active 8s ease-in-out infinite;
    animation-delay: 2s;
}

.threat-rising {
    color: #ffcc00;
    font-size: 0.9rem;
    animation: threat-pulse-rising 8s ease-in-out infinite;
    animation-delay: 4s;
}

.threat-medium {
    color: #00c000;
    font-size: 0.9rem;
    animation: threat-pulse-medium 8s ease-in-out infinite;
    animation-delay: 6s;
}

@keyframes threat-pulse-high {
    0%, 15% { opacity: 0.7; text-shadow: none; }
    20%, 30% { opacity: 1; text-shadow: 0 0 8px rgba(255, 68, 68, 0.5); }
    35%, 100% { opacity: 0.7; text-shadow: none; }
}

@keyframes threat-pulse-active {
    0%, 15% { opacity: 0.7; text-shadow: none; }
    20%, 30% { opacity: 1; text-shadow: 0 0 8px rgba(255, 136, 0, 0.5); }
    35%, 100% { opacity: 0.7; text-shadow: none; }
}

@keyframes threat-pulse-rising {
    0%, 15% { opacity: 0.7; text-shadow: none; }
    20%, 30% { opacity: 1; text-shadow: 0 0 8px rgba(255, 204, 0, 0.5); }
    35%, 100% { opacity: 0.7; text-shadow: none; }
}

@keyframes threat-pulse-medium {
    0%, 15% { opacity: 0.7; text-shadow: none; }
    20%, 30% { opacity: 1; text-shadow: 0 0 8px rgba(0, 192, 0, 0.5); }
    35%, 100% { opacity: 0.7; text-shadow: none; }
}

/* Blurred Background Image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/cyber-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    filter: blur(8px) brightness(0.7);
    /* Blur and slight dim for readability */
    z-index: -2;
    /* Behind Matrix Canvas (-1) */
    pointer-events: none;
    will-change: auto;
}

/* Glassmorphism Post Card */
.glass-card {
    /* Transparent background to let words show */
    background-color: rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Container for floating words */
.word-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Behind content */
    overflow: hidden;
}

/* Individual floating word */
.floating-word {
    position: absolute;
    color: #1a8f5c; /* Visible green */
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    text-shadow: 0 0 4px rgba(26, 143, 92, 0.5);
    font-weight: bold;
}

/* Rainfall animation - words fall from top to bottom */
@keyframes rainfall {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(350px);
        opacity: 0;
    }
}

/* Legacy float animation */
@keyframes float-word {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100%));
        opacity: 0;
    }
}

/* Levitation animation for the card itself */
@keyframes card-levitate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.glass-card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-5px);
}

/* Remove the scanline overlay as requested "not lines" */
.glass-card::after {
    display: none;
}

.card-image {
    width: 30%;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 255, 0, 0.3);
    overflow: hidden;
    z-index: 2;
    /* Above words */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.glass-card:hover .card-image img {
    opacity: 1;
}

.card-content {
    width: 70%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    /* Above words */
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .glass-card {
        flex-direction: column;
    }

    .card-image {
        width: 100%;
        height: 200px;
        /* Fixed height for mobile image */
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    }

    .card-content {
        width: 100%;
        padding: 1.5rem 2rem;
        /* Increased side padding for mobile */
    }
}

/* Mobile Menu Drawer (Right Side) */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1117 100%);
    border-left: 1px solid rgba(43, 188, 138, 0.3);
    z-index: 10001;
    padding-top: 1.5rem;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

#mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(43, 188, 138, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 188, 138, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#mobile-menu.open::before {
    opacity: 1;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Profile photo glow effect */
.profile-glow {
    position: relative;
    display: inline-block;
}

.profile-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 188, 138, 0.3) 0%, transparent 70%);
    animation: profile-pulse 2s ease-in-out infinite;
}

.profile-photo {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mobile-menu.open .profile-photo {
    animation: profile-float 3s ease-in-out infinite;
}

@keyframes profile-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes profile-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Glitch text effect for title */
.glitch-text {
    position: relative;
}

#mobile-menu.open .glitch-text {
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-0.5deg); }
    40% { transform: skew(0.5deg); }
    60% { transform: skew(-0.3deg); }
    80% { transform: skew(0.3deg); }
}

/* Mobile nav list */
.mobile-nav-list {
    padding: 0 1rem !important;
}

/* Nav item with staggered animation */
.mobile-nav-item {
    opacity: 0;
    transform: translateX(30px);
}

#mobile-menu.open .mobile-nav-item {
    animation: nav-slide-in 0.4s ease forwards;
    animation-delay: calc(var(--item-index) * 80ms + 150ms);
}

@keyframes nav-slide-in {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nav link styling */
.mobile-nav-link {
    position: relative;
    color: #a0a0a0;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #2bbc8a;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover {
    color: #2bbc8a;
    background: rgba(43, 188, 138, 0.08);
    border-color: rgba(43, 188, 138, 0.2);
    transform: translateX(5px);
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

/* Nav icon wrapper */
.nav-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(43, 188, 138, 0.1);
    border: 1px solid rgba(43, 188, 138, 0.2);
    color: #2bbc8a;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-link:hover .nav-icon-wrapper {
    background: rgba(43, 188, 138, 0.2);
    border-color: #2bbc8a;
    box-shadow: 0 0 15px rgba(43, 188, 138, 0.3);
    transform: rotate(-5deg) scale(1.1);
}

.nav-icon-wrapper.social {
    background: rgba(102, 102, 102, 0.1);
    border-color: rgba(102, 102, 102, 0.3);
    color: #888;
}

.mobile-nav-link:hover .nav-icon-wrapper.social {
    background: rgba(43, 188, 138, 0.15);
    border-color: rgba(43, 188, 138, 0.4);
    color: #2bbc8a;
}

/* Nav text */
.nav-text {
    flex: 1;
    margin-left: 1rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding-right: 1rem;
}

/* Nav arrow - positioned at right corner */
.nav-arrow {
    position: absolute;
    right: 1rem;
    color: rgba(43, 188, 138, 0.4);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .nav-arrow {
    color: #2bbc8a;
    transform: translateX(3px);
    text-shadow: 0 0 10px rgba(43, 188, 138, 0.5);
}

/* Divider */
.mobile-nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 188, 138, 0.3), transparent);
    margin: 1rem 0 !important;
}

/* Mobile menu footer */
.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(43, 188, 138, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-footer .scan-line {
    width: 60%;
    height: 2px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(90deg, transparent, rgba(43, 188, 138, 0.5), transparent);
    animation: scan-pulse 2s ease-in-out infinite;
}

@keyframes scan-pulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Hide default mobile menu styles we're overriding */
#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 1rem;
}

#mobile-menu li {
    margin-bottom: 0.25rem;
}

#mobile-menu a {
    color: #a0a0a0;
    text-decoration: none;
}

#mobile-menu a:hover {
    color: #2bbc8a;
}

/* Hide footer when mobile menu is open */
body:has(#mobile-menu.open) .cyber-footer {
    display: none;
}
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        width: 100% !important;
    }

    .prose {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        text-align: left;
    }

    h1.text-5xl {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
}

/* HUD Search Button (Flex Integration) */
#search-toggle {
    position: relative;
    /* Changed from absolute */
    /* top/right removed to allow flex positioning */
    z-index: 50;
    transition: all 0.3s ease;
    overflow: hidden;
}

#search-toggle:hover {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    transform: scale(1.1);
}

/* Scanner Line Animation */
#search-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    opacity: 0;
    animation: scanner-line 5s infinite;
}

@keyframes scanner-line {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========== TAGS PAGE BUBBLE STYLING ========== */
.tags-bubble-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem 0;
}

.tag-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(43, 188, 138, 0.5);
    border-radius: 50px;
    font-family: 'DOSFont', 'Courier New', monospace;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(43, 188, 138, 0.1);
}

.tag-bubble:hover {
    background: rgba(43, 188, 138, 0.15);
    border-color: #2bbc8a;
    box-shadow: 0 0 15px rgba(43, 188, 138, 0.4), 0 0 30px rgba(43, 188, 138, 0.2);
    transform: translateY(-2px);
}

.tag-bubble .tag-name {
    color: #2bbc8a;
    font-weight: 500;
}

.tag-bubble:hover .tag-name {
    color: #3dd99a;
    text-shadow: 0 0 8px rgba(43, 188, 138, 0.6);
}

.tag-bubble .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    background: rgba(43, 188, 138, 0.2);
    border-radius: 50px;
    color: #aaa;
    font-size: 0.8rem;
}

.tag-bubble:hover .tag-count {
    background: rgba(43, 188, 138, 0.3);
    color: #fff;
}

/* Mobile responsiveness for tags */
@media (max-width: 768px) {
    .tags-bubble-container {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .tag-bubble {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .tag-bubble .tag-count {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.7rem;
    }
}

/* ================================
   Clean Boxed Editorial Table
   ================================ */

   .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
  
    /* Outer border */
    border: 1px solid rgba(110, 231, 183, 0.4);
  }
  
  /* Header */
  .post-content thead th {
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    color: #6ee7b7;
  
    /* Header line */
    border-bottom: 1px solid rgba(110, 231, 183, 0.4);
  }
  
  /* Table cells */
  .post-content td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  /* Vertical divider between columns */
  .post-content th + th,
  .post-content td + td {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  /* Remove last row bottom border */
  .post-content tbody tr:last-child td {
    border-bottom: none;
  }

/* ========== OPERATION BRIEF - BLOG CARDS ========== */
.op-brief-card {
    position: relative;
    background: rgba(8, 12, 18, 0.85);
    border: 1px solid rgba(43, 188, 138, 0.3);
    border-left: 3px solid #2bbc8a;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.op-brief-card:hover {
    border-color: rgba(43, 188, 138, 0.6);
    box-shadow: 
        0 0 25px rgba(43, 188, 138, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Card Header - Label + Risk */
.op-brief-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 1rem;
    background: rgba(43, 188, 138, 0.08);
    border-bottom: 1px solid rgba(43, 188, 138, 0.2);
}

.op-brief-label {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.75rem;
    color: #2bbc8a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.op-brief-risk {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.op-brief-risk.risk-high {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.4);
}

.op-brief-risk.risk-medium {
    color: #ffb84d;
    background: rgba(255, 184, 77, 0.15);
    border: 1px solid rgba(255, 184, 77, 0.4);
}

.op-brief-risk.risk-low {
    color: #4dff88;
    background: rgba(77, 255, 136, 0.15);
    border: 1px solid rgba(77, 255, 136, 0.4);
}

/* Thumbnail Image */
.op-brief-thumbnail {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.op-brief-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(30%) brightness(0.7);
}

.op-brief-card:hover .op-brief-thumbnail img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.85);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(8, 12, 18, 0.3) 60%,
        rgba(8, 12, 18, 0.9) 100%
    );
    pointer-events: none;
}

/* Scanline effect on thumbnail */
.op-brief-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

/* Card Body */
.op-brief-body {
    padding: 0.5rem 1rem;
}

.op-brief-title {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.4rem 0;
    color: rgba(43, 188, 138, 0.9);
}

.op-brief-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.op-brief-title a:hover {
    color: #fff;
}

/* Meta Info - Author + Date */
.op-brief-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.op-brief-author,
.op-brief-date {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.8rem;
    color: #666;
}

.op-brief-author i,
.op-brief-date i {
    margin-right: 0.4rem;
    color: #444;
}

/* Summary */
.op-brief-summary {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    margin: 0 0 0.4rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Attack Vectors */
.op-brief-vectors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vectors-label {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.25rem;
}

.vector-tag {
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.7rem;
    color: #2bbc8a;
    background: rgba(43, 188, 138, 0.1);
    border: 1px solid rgba(43, 188, 138, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.vector-tag:hover {
    background: rgba(43, 188, 138, 0.2);
    border-color: #2bbc8a;
}

/* Card Footer - CTA */
.op-brief-footer {
    padding: 0.35rem 1rem;
    border-top: 1px solid rgba(43, 188, 138, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

.op-brief-cta {
    display: inline-flex;
    align-items: center;
    font-family: 'Perfect DOS VGA 437', monospace;
    font-size: 0.85rem;
    color: #2bbc8a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.op-brief-cta:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(43, 188, 138, 0.6);
}

.cta-icon {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .op-brief-card {
        margin-bottom: 1rem;
    }
    
    .op-brief-header {
        padding: 0.6rem 1rem;
    }
    
    .op-brief-body {
        padding: 1rem 1.25rem;
    }
    
    .op-brief-title {
        font-size: 1.1rem;
    }
    
    .op-brief-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .op-brief-footer {
        padding: 0.6rem 1.25rem;
    }
}

/* ========== NAVBAR FIXES - ALL PAGES ========== */
/* Nav link colors: white default, green hover, green underline active */
.desktop-header .nav-link {
    color: #fff !important;
}

.desktop-header .nav-link:hover {
    color: #2bbc8a !important;
}

.desktop-header .nav-link.nav-active {
    color: #2bbc8a !important;
}

/* ========== HERO SECTION CENTERING FIX ========== */
.hero-section {
    /* Ensure true vertical centering - no offset from fixed header */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-content {
    /* True center positioning */
    position: relative;
    margin: 0 auto;
    pointer-events: auto;
}

/* ========== SEARCH OVERLAY - DARK THEME ========== */
.search-dropdown {
    background: #0a0a0a !important;
    border-bottom: 2px solid #2bbc8a !important;
}

.search-input-wrapper {
    background: #111 !important;
    border: 1px solid #333 !important;
}

.search-input-wrapper:focus-within {
    border-color: #2bbc8a !important;
}

.search-input-wrapper input {
    color: #e0e0e0 !important;
    background: transparent !important;
}

.search-input-wrapper input::placeholder {
    color: #666 !important;
}

.search-icon {
    color: #666 !important;
}

.search-close-btn {
    color: #666 !important;
}

.search-close-btn:hover {
    color: #2bbc8a !important;
}

.search-results {
    background: #0a0a0a !important;
    border: none !important;
}

.search-results a {
    color: #aaa !important;
    border-bottom: 1px solid #222 !important;
}

.search-results a:hover {
    color: #2bbc8a !important;
    background: rgba(43, 188, 138, 0.1) !important;
}
