/* ========================================================
   THE MATRIX // STYLESHEET (RED THEME)
   Vanilla CSS with Crimson Cyberpunk / Red Alert CRT Aesthetics
   ======================================================== */

:root {
    --bg-black: #080102;
    --bg-panel: rgba(22, 4, 7, 0.88);
    --bg-panel-light: rgba(45, 6, 12, 0.65);
    
    /* Matrix Red Palette */
    --matrix-red: #ff003c;
    --matrix-red-bright: #ff6b81;
    --matrix-red-glow: rgba(255, 0, 60, 0.55);
    --matrix-red-dim: #b30027;
    --matrix-red-dark: #40000d;
    
    /* Pill & Accent Colors */
    --pill-red: #ff003c;
    --pill-red-glow: rgba(255, 0, 60, 0.65);
    --pill-blue: #00b4d8;
    --pill-blue-glow: rgba(0, 180, 216, 0.6);

    /* Borders & Shadows */
    --border-matrix: 1px solid rgba(255, 0, 60, 0.35);
    --border-matrix-bright: 1px solid #ff003c;
    --glow-box: 0 0 15px rgba(255, 0, 60, 0.25), inset 0 0 10px rgba(255, 0, 60, 0.08);
    --text-glow: 0 0 8px rgba(255, 0, 60, 0.7);

    /* Typography */
    --font-mono: 'Share Tech Mono', 'Courier New', Courier, monospace;
    --font-terminal: 'VT323', monospace;
}

/* Reset & Base Rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--matrix-red);
    font-family: var(--font-mono);
}

body {
    min-height: 100vh;
    background-color: var(--bg-black);
    color: var(--matrix-red);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    text-shadow: var(--text-glow);
}

/* Custom Matrix Red Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080102;
    border-left: 1px solid rgba(255, 0, 60, 0.15);
}
::-webkit-scrollbar-thumb {
    background: var(--matrix-red-dim);
    border-radius: 2px;
    border: 1px solid var(--matrix-red);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-red);
    box-shadow: 0 0 10px var(--matrix-red);
}

/* Matrix Digital Rain Canvas Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0.42;
    pointer-events: none;
}

/* CRT Screen Scanlines & Glitch Overlays */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.45) 0px,
        rgba(0, 0, 0, 0.45) 1px,
        transparent 2px,
        transparent 3px
    );
    opacity: 0.6;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 98;
    pointer-events: none;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 55%,
        rgba(25, 0, 5, 0.88) 100%
    );
}

/* Main Content Wrapper */
.matrix-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ========================================================
   1. HUD Header / Top Status
   ======================================================== */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-panel);
    border: var(--border-matrix);
    border-radius: 4px;
    box-shadow: var(--glow-box);
    backdrop-filter: blur(8px);
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--matrix-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--matrix-red);
    animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 0, 60, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 60, 0);
    }
}

.system-tag {
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--matrix-red-bright);
}

.hud-telemetry {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--matrix-red-dim);
}

.hud-telemetry strong {
    color: var(--matrix-red-bright);
}

.highlight-red,
.highlight-green {
    color: var(--matrix-red);
    font-weight: bold;
    text-shadow: 0 0 8px var(--matrix-red);
}

/* ========================================================
   2. Matrix Navigation Bar (Home, About, Contact)
   ======================================================== */
.matrix-navbar {
    position: sticky;
    top: 12px;
    z-index: 80;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(20, 2, 5, 0.94);
    border: 1px solid var(--matrix-red);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.35), inset 0 0 12px rgba(255, 0, 60, 0.12);
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2.5px;
    color: var(--matrix-red-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-prompt {
    color: var(--matrix-red);
    animation: blink-cursor 1.2s infinite;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--matrix-red-dim);
    font-size: 0.92rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-idx {
    font-size: 0.75rem;
    color: rgba(255, 0, 60, 0.5);
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: var(--matrix-red-bright);
    border-color: var(--matrix-red);
    background: rgba(255, 0, 60, 0.15);
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.4);
    text-shadow: 0 0 8px var(--matrix-red);
}

.nav-link:hover .nav-idx {
    color: var(--matrix-red);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 0, 60, 0.25);
    border: 1px solid var(--matrix-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.55);
    text-shadow: 0 0 10px var(--matrix-red);
}

.nav-link.active .nav-idx {
    color: var(--matrix-red-bright);
}

/* ========================================================
   3. Home Section (Hero, Dashboard, Pills)
   ======================================================== */
.home-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-section {
    text-align: center;
    padding: 24px 10px;
}

.glitch-container {
    position: relative;
    display: inline-block;
}

.matrix-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: 6px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--matrix-red-bright);
    position: relative;
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--matrix-red), 0 0 25px rgba(255, 0, 60, 0.6);
}

/* CSS Glitch Animation with Crimson Cyberpunk Shadows */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.glitch::before {
    left: -2px;
    text-shadow: 2px 0 #ff0055;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: 2px;
    text-shadow: -2px 0 #ff8da1;
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 60% 0); }
    20% { clip-path: inset(80% 0 5% 0); }
    40% { clip-path: inset(40% 0 45% 0); }
    60% { clip-path: inset(10% 0 70% 0); }
    80% { clip-path: inset(50% 0 25% 0); }
    100% { clip-path: inset(30% 0 40% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(70% 0 15% 0); }
    25% { clip-path: inset(15% 0 65% 0); }
    50% { clip-path: inset(55% 0 20% 0); }
    75% { clip-path: inset(35% 0 45% 0); }
    100% { clip-path: inset(5% 0 85% 0); }
}

.matrix-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--matrix-red-dim);
    max-width: 650px;
    margin: 0 auto;
    letter-spacing: 1.5px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Terminal Card */
.terminal-card {
    background: var(--bg-panel);
    border: var(--border-matrix);
    border-radius: 6px;
    box-shadow: var(--glow-box);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-bar {
    background: rgba(28, 3, 7, 0.95);
    padding: 10px 16px;
    border-bottom: var(--border-matrix);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-close {
    background: #ff003c;
    box-shadow: 0 0 6px rgba(255, 0, 60, 0.8);
}
.dot-minimize {
    background: #ff9900;
    box-shadow: 0 0 6px rgba(255, 153, 0, 0.8);
}
.dot-expand {
    background: #ff5e7e;
    box-shadow: 0 0 6px rgba(255, 94, 126, 0.8);
}

.terminal-title {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--matrix-red-bright);
}

.terminal-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border: 1px solid var(--matrix-red-dim);
    border-radius: 3px;
    color: var(--matrix-red-dim);
}

.terminal-body {
    padding: 20px;
    background: rgba(12, 1, 3, 0.92);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
}

.term-line {
    word-break: break-word;
}

.prompt-host {
    color: var(--matrix-red-bright);
    font-weight: bold;
    margin-right: 8px;
}

.term-line.output {
    color: var(--matrix-red-dim);
    padding-left: 8px;
    border-left: 2px solid rgba(255, 0, 60, 0.25);
}

.status-ok {
    color: var(--matrix-red);
    font-weight: bold;
    text-shadow: 0 0 8px var(--matrix-red);
}

.term-line.highlight {
    color: #ffffff;
    font-style: italic;
    background: rgba(255, 0, 60, 0.1);
    padding: 6px 10px;
    border-left: 3px solid var(--matrix-red);
    margin: 8px 0;
    text-shadow: 0 0 5px var(--matrix-red);
}

.interactive-prompt {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.typed-text {
    color: var(--matrix-red-bright);
    margin-right: 2px;
}

.cursor {
    display: inline-block;
    color: var(--matrix-red-bright);
    font-weight: bold;
    animation: blink-cursor 0.9s infinite;
}

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

/* Sidebar HUD & Diagnostics */
.sidebar-hud {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hud-card {
    background: var(--bg-panel);
    border: var(--border-matrix);
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: var(--glow-box);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hud-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 0, 60, 0.25);
    padding-bottom: 10px;
}

.hud-card-header h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--matrix-red-bright);
}

.badge {
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    background: rgba(255, 0, 60, 0.15);
    border: 1px solid var(--matrix-red);
    border-radius: 3px;
    color: var(--matrix-red);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--matrix-red-dim);
}

.metric-value {
    color: var(--matrix-red-bright);
    font-weight: bold;
}

.alert-red {
    color: var(--pill-red) !important;
    text-shadow: 0 0 6px var(--pill-red);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(25, 2, 5, 0.9);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--matrix-red-dim), var(--matrix-red));
    box-shadow: 0 0 8px var(--matrix-red);
    transition: width 0.5s ease-in-out;
}

.progress-fill-red {
    height: 100%;
    background: linear-gradient(90deg, #660012, var(--pill-red));
    box-shadow: 0 0 8px var(--pill-red);
    animation: flash-red-bar 1.5s infinite alternate;
}

@keyframes flash-red-bar {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Agent Threat Alert Card */
.alert-card {
    border-color: rgba(255, 0, 60, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3), inset 0 0 10px rgba(255, 0, 60, 0.08);
}

.alert-title {
    color: var(--pill-red) !important;
    text-shadow: 0 0 8px var(--pill-red);
}

.badge-alert {
    background: rgba(255, 0, 60, 0.2) !important;
    border-color: var(--pill-red) !important;
    color: var(--pill-red) !important;
    animation: blink-badge 1s infinite alternate;
}

@keyframes blink-badge {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.alert-desc {
    font-size: 0.85rem;
    color: #ffb3c1;
    line-height: 1.5;
    text-shadow: none;
}

.alert-desc strong {
    color: #ffffff;
    text-shadow: 0 0 5px var(--pill-red);
}

/* The Choice Section */
.choice-section {
    background: var(--bg-panel);
    border: var(--border-matrix);
    border-radius: 6px;
    padding: 36px 24px;
    box-shadow: var(--glow-box);
    text-align: center;
}

.choice-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 4px;
    color: var(--matrix-red-bright);
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--matrix-red);
}

.choice-desc {
    color: var(--matrix-red-dim);
    font-size: 1rem;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.pills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

/* Pill Cards */
.pill-card {
    background: rgba(15, 2, 4, 0.92);
    border-radius: 8px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pill-card:hover {
    transform: translateY(-6px);
}

.pill-icon {
    width: 64px;
    height: 28px;
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.4);
    transition: transform 0.4s ease;
}

.pill-card:hover .pill-icon {
    transform: rotate(-15deg) scale(1.1);
}

/* Blue Pill */
.blue-pill-card {
    border: 1px solid rgba(0, 180, 216, 0.35);
}

.blue-pill-card:hover {
    border-color: var(--pill-blue);
    box-shadow: 0 0 25px var(--pill-blue-glow);
}

.blue-pill-glow {
    background: linear-gradient(135deg, #48cae4 0%, #0077b6 100%);
    box-shadow: 0 0 18px var(--pill-blue);
}

.blue-text {
    color: var(--pill-blue);
    text-shadow: 0 0 10px var(--pill-blue);
    letter-spacing: 2px;
    font-size: 1.25rem;
}

/* Red Pill */
.red-pill-card {
    border: 1px solid rgba(255, 0, 60, 0.5);
    background: rgba(28, 3, 7, 0.95);
}

.red-pill-card:hover {
    border-color: var(--pill-red);
    box-shadow: 0 0 25px var(--pill-red-glow);
}

.red-pill-glow {
    background: linear-gradient(135deg, #ff6b81 0%, #c1002e 100%);
    box-shadow: 0 0 22px var(--pill-red);
}

.red-text {
    color: var(--pill-red);
    text-shadow: 0 0 10px var(--pill-red);
    letter-spacing: 2px;
    font-size: 1.25rem;
}

.pill-text {
    font-size: 0.9rem;
    color: #ffccd5;
    text-shadow: none;
    line-height: 1.6;
    min-height: 65px;
}

/* Buttons */
.matrix-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    background: transparent;
    transition: all 0.25s ease;
    outline: none;
    position: relative;
}

.btn-blue {
    border: 1px solid var(--pill-blue);
    color: var(--pill-blue);
}

.btn-blue:hover {
    background: var(--pill-blue);
    color: #000000;
    box-shadow: 0 0 15px var(--pill-blue);
}

.btn-red {
    border: 1px solid var(--pill-red);
    color: var(--pill-red);
}

.btn-red:hover {
    background: var(--pill-red);
    color: #000000;
    box-shadow: 0 0 15px var(--pill-red);
}

.choice-result {
    margin-top: 24px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.choice-result.active {
    padding: 12px 18px;
    border-radius: 4px;
}

.choice-result.blue {
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--pill-blue);
    color: #c7f3ff;
    text-shadow: 0 0 10px var(--pill-blue);
}

.choice-result.red {
    background: rgba(255, 0, 60, 0.2);
    border: 1px solid var(--pill-red);
    color: #ffd2da;
    text-shadow: 0 0 10px var(--pill-red);
}

/* ========================================================
   4. Section Shared Styles (About & Contact)
   ======================================================== */
.matrix-section {
    background: var(--bg-panel);
    border: var(--border-matrix);
    border-radius: 6px;
    padding: 36px 28px;
    box-shadow: var(--glow-box);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-header {
    border-bottom: 1px dashed rgba(255, 0, 60, 0.3);
    padding-bottom: 16px;
}

.section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    letter-spacing: 3px;
    color: var(--matrix-red-bright);
    text-shadow: 0 0 10px var(--matrix-red);
    margin-bottom: 6px;
}

.title-index {
    color: var(--matrix-red-dim);
    font-size: 0.85em;
}

.section-tagline {
    font-size: 0.95rem;
    color: var(--matrix-red-dim);
    letter-spacing: 1px;
}

/* ========================================================
   5. About Section Cards
   ======================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.about-card {
    background: rgba(15, 2, 4, 0.92);
    border: 1px solid rgba(255, 0, 60, 0.25);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--matrix-red);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.35);
}

.about-card.highlight-border {
    border-color: rgba(255, 0, 60, 0.55);
    background: rgba(24, 3, 7, 0.95);
}

.about-card-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--matrix-red-bright);
    background: rgba(255, 0, 60, 0.12);
    border: 1px solid rgba(255, 0, 60, 0.4);
    padding: 3px 8px;
    border-radius: 3px;
}

.about-card-title {
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 6px var(--matrix-red);
}

.about-card-text {
    font-size: 0.9rem;
    color: #ffb8c5;
    line-height: 1.6;
    text-shadow: none;
}

.about-specs {
    list-style: none;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 0, 60, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: #ffe0e6;
}

.about-specs span {
    color: var(--matrix-red-dim);
    font-weight: bold;
    margin-right: 6px;
}

/* ========================================================
   6. Contact Section (Operator Transmission Uplink)
   ======================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
}

@media (max-width: 860px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info-panel {
    background: rgba(15, 2, 4, 0.92);
    border: 1px solid rgba(255, 0, 60, 0.25);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-subtitle {
    font-size: 1.05rem;
    color: var(--matrix-red-bright);
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 0, 60, 0.25);
    padding-bottom: 8px;
}

.panel-desc {
    font-size: 0.88rem;
    color: var(--matrix-red-dim);
    line-height: 1.5;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--matrix-red-dim);
}

.info-val {
    font-size: 0.92rem;
    color: var(--matrix-red-bright);
    font-weight: bold;
}

.terminal-warning-box {
    margin-top: auto;
    padding: 12px;
    background: rgba(255, 0, 60, 0.15);
    border: 1px dashed var(--pill-red);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ff99aa;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.warning-icon {
    color: var(--pill-red);
    font-size: 1rem;
}

/* Contact Form */
.contact-form-panel {
    background: rgba(15, 2, 4, 0.92);
    border: 1px solid rgba(255, 0, 60, 0.35);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matrix-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--matrix-red-bright);
}

.required {
    color: var(--matrix-red);
    font-weight: bold;
    text-shadow: 0 0 6px var(--matrix-red);
}

.matrix-input,
.matrix-select,
.matrix-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(22, 2, 5, 0.95);
    border: 1px solid rgba(255, 0, 60, 0.4);
    border-radius: 4px;
    color: var(--matrix-red-bright);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.matrix-input:focus,
.matrix-select:focus,
.matrix-textarea:focus {
    border-color: var(--matrix-red);
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.5);
    background: rgba(35, 3, 9, 0.95);
}

.matrix-select option {
    background: #140205;
    color: var(--matrix-red);
}

.matrix-textarea {
    resize: vertical;
}

.btn-transmit {
    border: 1px solid var(--matrix-red);
    color: var(--matrix-red-bright);
    background: rgba(255, 0, 60, 0.15);
    margin-top: 6px;
}

.btn-transmit:hover {
    background: var(--matrix-red);
    color: #ffffff;
    box-shadow: 0 0 20px var(--matrix-red);
    text-shadow: none;
}

/* Transmission Feedback */
.transmission-feedback {
    min-height: 0;
    transition: all 0.3s ease;
}

.transmission-feedback.active {
    margin-top: 8px;
    padding: 14px;
    background: rgba(255, 0, 60, 0.2);
    border: 1px solid var(--matrix-red);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.35);
}

.feedback-success {
    color: var(--matrix-red-bright);
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feedback-sub {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: normal;
}

/* ========================================================
   7. Footer
   ======================================================== */
.matrix-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-panel);
    border: var(--border-matrix);
    border-radius: 4px;
    box-shadow: var(--glow-box);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--matrix-red-dim);
}

.footer-col.center {
    font-style: italic;
    color: var(--matrix-red-bright);
}

.status-online {
    color: var(--matrix-red-bright);
}

/* ========================================================
   8. Responsive Adjustments
   ======================================================== */
@media (max-width: 680px) {
    .matrix-navbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-link {
        padding: 5px 8px;
        font-size: 0.82rem;
    }

    .hud-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hud-telemetry {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .matrix-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
