/* ─────────────────────────────────────────────────────────────────────────
   DESIGN SYSTEM & VARIABLES
   ───────────────────────────────────────────────────────────────────────── */
:root {
    /* Color Palette */
    --background: #131313;
    --surface: #131313;
    --surface-bright: #3a3939;
    --surface-dim: #131313;
    
    --surface_lowest: #0e0e0e;
    --surface_low: #1c1b1b;
    --surface_mid: #201f1f;
    --surface_high: #2a2a2a;
    --surface_highest: #353534;
    
    --primary: #66fdec;
    --on_primary: #003732;
    --primary_container: #40e0d0;
    --primary_fixed: #61f9e9;
    --primary_fixed_dim: #3adccc;
    --on_primary_fixed: #00201d;
    --on_primary_fixed_variant: #005049;
    
    --secondary: #76d6d5;
    --on_secondary: #003737;
    --secondary_container: #007f7f;
    --secondary_fixed: #93f2f2;
    --secondary_fixed_dim: #76d6d5;
    --on_secondary_fixed: #002020;
    --on_secondary_fixed_variant: #004f4f;
    
    --tertiary: #81ffa4;
    --on_tertiary: #003919;
    --tertiary_container: #4ee483;
    --tertiary_fixed: #6bfe9a;
    --tertiary_fixed_dim: #4ae181;
    --on_tertiary_fixed: #00210c;
    --on_tertiary_fixed_variant: #005227;

    --terminal_pink: #ff4d80;
    --light_teal: #aaf0d1;
    
    --error: #ffb4ab;
    --on_error: #690005;
    --error_container: #93000a;
    --on_error_container: #ffdad6;

    --outline: #859491;
    --outline_variant: #3c4a47;
    
    --text_bright: #ffffff;
    --text_dim: #cccccc;
    --on_surface: #e5e2e1;
    --on_surface_variant: #bacac6;
    --on_background: #e5e2e1;
    
    --scanline_overlay: rgba(0, 255, 200, 0.04);
    --grid_color: rgba(0, 128, 128, 0.1);

    /* Fonts */
    --font_headline: 'Press Start 2P', monospace;
    --font_body: 'Inconsolata', monospace;

    /* Spacing & Layout */
    --margin_desktop: 40px;
    --margin_mobile: 20px;
    --container_max: 1024px;
    --gutter: 16px;
    --unit: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────
   GLOBAL RESETS & ELEMENT STYLES
   ───────────────────────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--on_background);
    font-family: var(--font_body);
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Accessibility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    background-color: var(--background);
    color: var(--primary);
    z-index: 100;
    outline: none;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* ─────────────────────────────────────────────────────────────────────────
   COMMON AMBIENT EFFECTS & STYLING
   ───────────────────────────────────────────────────────────────────────── */
/* Grid Background */
.bg_grid {
    position: fixed;
    inset: 0;
    background-size: 20px 20px;
    background-image:
        linear-gradient(to right, var(--grid_color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid_color) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

/* Alternate matrix grid bg */
.grid_bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(60, 74, 71, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 74, 71, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* Scanline Animation */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    opacity: 0.7;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* CRT Overlay for Projects/Bridge */
.crt_overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        var(--scanline_overlay) 50%,
        var(--scanline_overlay)
    );
    background-size: 100% 4px;
    animation: scanlines_anim 10s linear infinite;
}

@keyframes scanlines_anim {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.crt_flicker {
    animation: flicker 0.15s infinite;
    pointer-events: none;
    z-index: 51;
    position: fixed;
    inset: 0;
    background: rgba(0, 255, 200, 0.02);
}

@keyframes flicker {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

/* Blinking cursor */
.cursor_blink::after, .cursor {
    content: "_";
    animation: blink 1s step-end infinite;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1em;
    background-color: var(--primary);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

/* Custom Webkit Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background);
    border-left: 1px solid var(--outline_variant);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary_container);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* ─────────────────────────────────────────────────────────────────────────
   CORE UTILITY STYLES
   ───────────────────────────────────────────────────────────────────────── */
.site_body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.relative_body {
    position: relative;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMPONENT STYLES: BUTTONS, CARDS, PANEL CHROME
   ───────────────────────────────────────────────────────────────────────── */
/* Terminal buttons */
.btn_terminal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #2bca6d;
    background: transparent;
    color: #2bca6d;
    font-family: var(--font_headline);
    font-size: 0.75rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.btn_terminal:hover {
    background: #2bca6d;
    color: #111;
    box-shadow: 0 0 10px #2bca6d;
}

.btn_terminal_primary {
    border: 1px solid var(--terminal_pink);
    color: var(--terminal_pink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn_terminal_primary:hover {
    background: var(--terminal_pink);
    color: #111;
    box-shadow: 0 0 10px var(--terminal_pink);
}

.enter_btn {
    border: 1px solid #2bca6d;
    background: transparent;
    color: #2bca6d;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: var(--font_headline);
    font-size: 0.75rem;
    padding: 1rem 2rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.enter_btn:hover {
    background: #2bca6d;
    color: #111;
    box-shadow: 0 0 15px #2bca6d;
}

.enter_btn::before {
    content: '>';
    margin-right: 8px;
    color: inherit;
}

.enter_btn.executing {
    background: var(--terminal_pink);
    color: var(--background);
    border-color: var(--terminal_pink);
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────
   PAGE LAYOUTS & COMPONENT MARKUP
   ───────────────────────────────────────────────────────────────────────── */
/* 1. HOME LANDING (index.html) */
.hero_section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 1px solid var(--outline_variant);
}

#particle_canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.splash_content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    text-align: center;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        rgba(19, 19, 19, 0.1) 0%,
        rgba(19, 19, 19, 0.7) 100%
    );
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.hero_title_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.hero_title {
    font-family: var(--font_headline);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--primary);
    text-shadow: rgba(102, 253, 236, 0.5) 0px 0px 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero_subtitle {
    font-family: var(--font_headline);
    font-size: 0.7rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.sys_boot_text {
    background-image: linear-gradient(90deg, var(--terminal_pink), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: breathe 4s ease-in-out infinite;
    text-shadow: none;
}

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

.protocol_card {
    max-width: 28rem;
    width: 100%;
    background-color: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--outline_variant);
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.1);
    margin-bottom: 2rem;
    pointer-events: auto;
    position: relative;
}

/* Corner Accents */
.corner_accent {
    position: absolute;
    width: 1rem;
    height: 1rem;
}
.corner_accent.top_left {
    top: 0; left: 0;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    margin-top: -1px; margin-left: -1px;
}
.corner_accent.top_right {
    top: 0; right: 0;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    margin-top: -1px; margin-right: -1px;
}
.corner_accent.bottom_left {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    margin-bottom: -1px; margin-left: -1px;
}
.corner_accent.bottom_right {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    margin-bottom: -1px; margin-right: -1px;
}

.protocol_card h2 {
    font-family: var(--font_headline);
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.protocol_card p {
    font-family: var(--font_body);
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--on_surface_variant);
    margin-bottom: 1.5rem;
    text-align: left;
}

.btn_wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn_terminal svg, .btn_terminal .material-symbols-outlined {
    transition: transform 0.15s ease-in-out;
}
.btn_terminal:hover svg, .btn_terminal:hover .material-symbols-outlined {
    animation: spin 2s linear infinite;
}

.scroll_indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 4s infinite;
    opacity: 0.7;
    pointer-events: auto;
    cursor: pointer;
}

.scroll_indicator_text {
    font-family: var(--font_headline);
    font-size: 0.6rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll_indicator_icon {
    color: var(--secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
        opacity: 1;
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
        opacity: 0.85;
    }
}

/* Page Main Container */
.main_content {
    width: 100%;
    max-width: var(--container_max);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding-left: var(--margin_mobile);
    padding-right: var(--margin_mobile);
    padding-top: 4rem;
    padding-bottom: 8rem;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.content_section {
    margin-bottom: 3rem;
    width: 100%;
    padding-top: 2rem;
}

.section_header {
    border-bottom: 1px solid var(--outline_variant);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section_indicator {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}
.section_indicator.primary {
    background-color: var(--primary);
}
.section_indicator.tertiary {
    background-color: var(--tertiary);
}

.section_title {
    font-family: var(--font_headline);
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}
.section_title.primary {
    color: var(--primary);
}
.section_title.tertiary {
    color: var(--tertiary);
}

.capabilities_grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    row-gap: 0.5rem;
}

.capabilities_column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.capabilities_item {
    font-family: var(--font_body);
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0.5rem;
    transition: background-color 0.15s;
    cursor: crosshair;
    display: flex;
    align-items: flex-start;
}
.capabilities_item.col1 {
    color: var(--on_surface);
}
.capabilities_item.col2 {
    color: var(--on_surface_variant);
}

.capabilities_item:hover {
    background-color: rgba(0, 127, 127, 0.2);
}

.capabilities_bullet {
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.capabilities_bullet.primary {
    color: var(--primary);
}
.capabilities_bullet.secondary {
    color: var(--secondary);
}

/* Projects grid area */
.projects_grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site_footer {
    width: 100%;
    text-align: center;
    font-family: var(--font_headline);
    color: var(--on_surface_variant);
    opacity: 0.4;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

/* Bottom navigation bar */
.bottom_nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 5rem;
    padding-left: var(--margin_mobile);
    padding-right: var(--margin_mobile);
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
    border-top: 1px solid var(--outline_variant);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    background-color: rgba(14, 14, 14, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-in-out, opacity 0.15s;
    cursor: pointer;
}

.nav_item.active {
    color: var(--primary);
    background-color: rgba(64, 224, 208, 0.1);
    border-radius: 0.75rem;
    padding: 0.25rem 0.75rem;
    box-shadow: 0 0 10px #66fdec;
}

.nav_item.inactive {
    color: var(--on_surface_variant);
    opacity: 0.6;
}
.nav_item.inactive:hover {
    opacity: 1;
    color: var(--secondary);
}

.nav_item:active {
    transform: scale(0.95);
}

.nav_item.btn_ascend {
    border: 1px solid var(--terminal_pink);
    color: var(--terminal_pink);
    opacity: 0.8;
    padding: 0.25rem 0.75rem;
}
.nav_item.btn_ascend:hover {
    opacity: 1;
    background-color: rgba(255, 77, 128, 0.1);
}

.nav_icon {
    font-size: 24px;
}

.nav_label {
    font-family: var(--font_headline);
    font-size: 10px;
    margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. PROJECTS CONTAINER (projects/index.html)
   ───────────────────────────────────────────────────────────────────────── */
.projects_layout_main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 20;
    padding: 2rem 1rem 7rem 1rem;
}

.terminal_wrapper {
    border: 1px solid var(--secondary_container);
    background-color: rgba(19, 19, 19, 0.92);
    overflow: visible;
    width: 100%;
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(102, 253, 236, 0.1);
    height: auto;
    min-height: calc(100dvh - 7rem);
}

.terminal_header {
    height: 2rem;
    border-bottom: 1px solid var(--secondary_container);
    background-color: var(--surface_high);
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    justify-content: space-between;
    flex-shrink: 0;
}

.terminal_header_title {
    font-family: var(--font_headline);
    font-size: 10px;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

.terminal_header_buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal_dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid var(--secondary);
}
.terminal_dot.active {
    border-color: var(--terminal_pink);
    background-color: rgba(255, 77, 128, 0.2);
}

/* Boot output area */
.boot_output {
    flex-grow: 1;
    padding: 1rem;
    font-family: var(--font_body);
    font-size: 1.1rem;
    color: var(--primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.25;
    white-space: pre-wrap;
    transition: opacity 0.5s;
}

/* Projects main grid */
.projects_container {
    display: none;
    flex-grow: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    font-family: var(--font_body);
    color: var(--primary);
    overflow: visible;
    transition: opacity 1s;
    opacity: 0;
}

/* Scrollbar styling inside terminal panel */
.projects_container::-webkit-scrollbar {
    width: 6px;
}
.projects_container::-webkit-scrollbar-track {
    background: var(--surface_mid);
    border-left: 1px solid var(--secondary_container);
}
.projects_container::-webkit-scrollbar-thumb {
    background: var(--secondary_container);
}
.projects_container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.projects_header_row {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.projects_title {
    font-family: var(--font_headline);
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
    border-bottom: 1px solid var(--primary_fixed_dim);
    display: inline-block;
    padding-right: 2rem;
    margin: 0;
}

.module_count {
    color: var(--text_dim);
    font-size: 1.1rem;
    margin: 0;
}

.cards_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Card Renderer Styles */
.project_card {
    border: 1px solid var(--secondary_container);
    background-color: rgba(32, 31, 31, 0.4);
    padding: 1rem;
    transition: background-color 0.15s, border-color 0.15s;
    cursor: pointer;
    display: block;
    outline: none;
    text-decoration: none;
}

.project_card:hover, .project_card:focus {
    background-color: rgba(32, 31, 31, 0.8);
    border-color: var(--primary);
}

.project_card:focus {
    box-shadow: 0 0 0 2px var(--primary);
}

.card_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.card_title_row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 0;
}

.card_title_arrow {
    color: var(--secondary);
    transition: color 0.15s;
    flex-shrink: 0;
}
.project_card:hover .card_title_arrow {
    color: var(--primary);
}

.card_title {
    font-family: var(--font_headline);
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--text_bright);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}
.project_card:hover .card_title {
    text-shadow: 0 0 8px var(--primary);
    color: var(--primary);
}

.status_badge {
    font-family: var(--font_headline);
    font-size: 8px;
    flex-shrink: 0;
    border: 1px solid;
    padding: 0.2rem 0.4rem;
}

/* Status variants */
.status_online {
    background-color: rgba(74, 225, 129, 0.2);
    color: var(--tertiary);
    border-color: var(--tertiary);
}

.status_compiling {
    background-color: rgba(118, 214, 213, 0.2);
    color: var(--secondary);
    border-color: var(--secondary);
}

.status_deployed {
    background-color: rgba(255, 77, 128, 0.2);
    color: var(--terminal_pink);
    border-color: var(--terminal_pink);
}

.status_archived {
    background-color: rgba(60, 74, 71, 0.2);
    color: var(--outline);
    border-color: var(--outline);
}

.status_indev {
    background-color: rgba(58, 220, 204, 0.2);
    color: var(--primary);
    border-color: var(--primary);
}

.status_default {
    background-color: rgba(60, 74, 71, 0.2);
    color: var(--on_surface_variant);
    border-color: var(--outline_variant);
}

.card_details {
    padding-left: 1rem;
    border-left: 1px solid var(--outline_variant);
    margin-left: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text_dim);
    font-size: 0.875rem;
    font-family: var(--font_body);
    margin-top: 0.5rem;
}

.card_stat_line {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.bullet_sym {
    color: var(--text_dim);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. BRIDGE PAGE (bridge/index.html)
   ───────────────────────────────────────────────────────────────────────── */
.return_link {
    font-family: var(--font_headline);
    font-size: 10px;
    color: rgba(118, 214, 213, 0.5);
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
}

.return_link:hover {
    color: var(--secondary);
}

#matrix_canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.bridge_splash_content {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-left: var(--margin_mobile);
    padding-right: var(--margin_mobile);
}

.bridge_wrapper {
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.blur_glitch_bg {
    position: absolute;
    inset: 0;
    background-color: rgba(102, 253, 236, 0.1);
    filter: blur(64px);
    border-radius: 9999px;
    transform: scale(1.5);
    animation: pulse 2s infinite;
}

.bridge_nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
    gap: 1rem;
}

.node_card {
    border: 1px solid rgba(118, 214, 213, 0.5);
    background-color: rgba(32, 31, 31, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem 1.5rem;
    border-radius: 0.125rem;
    position: relative;
    overflow: hidden;
    flex: 1;
    width: 100%;
}

.node_card .pulse_bg {
    position: absolute;
    inset: 0;
    background-color: rgba(102, 253, 236, 0.05);
    animation: pulse 2s infinite;
}

.node_card.target_node .pulse_bg {
    background-color: rgba(129, 255, 164, 0.05);
    animation-delay: 0.5s;
}

.node_card.target_node {
    border-color: rgba(129, 255, 164, 0.5);
    box-shadow: 0 0 20px rgba(129, 255, 164, 0.15);
}

.node_label {
    font-size: 0.75rem;
    font-family: var(--font_body);
    margin-bottom: 0.25rem;
    text-align: left;
}
.node_card.origin_node .node_label {
    color: rgba(118, 214, 213, 0.6);
}
.node_card.target_node .node_label {
    color: rgba(129, 255, 164, 0.6);
}

.node_title {
    font-family: var(--font_headline);
    font-size: 0.8rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 10;
    margin: 0;
}
.node_card.origin_node .node_title {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    animation: pulse-glow 2s infinite alternate;
}
.node_card.target_node .node_title {
    color: var(--tertiary);
    text-shadow: 0 0 20px var(--tertiary), 0 0 40px var(--tertiary);
    animation: tertiary-pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { text-shadow: 0 0 10px #66fdec, 0 0 20px #66fdec; }
    to { text-shadow: 0 0 20px #66fdec, 0 0 40px #66fdec, 0 0 60px #007f7f; }
}

@keyframes tertiary-pulse-glow {
    from { text-shadow: 0 0 10px #81ffa4, 0 0 20px #81ffa4; }
    to { text-shadow: 0 0 20px #81ffa4, 0 0 40px #81ffa4, 0 0 60px #00622f; }
}

.transfer_column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--tertiary);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.transfer_icon {
    font-size: 36px;
    animation: pulse 2s infinite;
    margin-bottom: 0.5rem;
}

.pulse_dots {
    display: flex;
    gap: 0.5rem;
}

.pulse_dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--tertiary);
}
.pulse_dot:nth-child(1) { animation: ping 1.5s infinite; }
.pulse_dot:nth-child(2) { animation: ping 1.5s infinite 300ms; }
.pulse_dot:nth-child(3) { animation: ping 1.5s infinite 600ms; }

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    70%, 100% { transform: scale(2); opacity: 0; }
}

.transit_subtext {
    font-family: var(--font_headline);
    font-size: 0.7rem;
    color: rgba(118, 214, 213, 0.8);
    margin-top: 2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.terminal_console {
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(118, 214, 213, 0.3);
    background-color: rgba(32, 31, 31, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    position: relative;
    margin-bottom: 3rem;
    text-align: left;
    font-family: var(--font_body);
    color: rgba(118, 214, 213, 0.7);
    height: 12rem;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(102, 253, 236, 0.1);
    border-radius: 0.125rem;
}

.terminal_console_line {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary) 50%, transparent);
    opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ───────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    /* Home Landing */
    .hero_title {
        font-size: 2.5rem;
    }
    
    .hero_title_wrapper {
        margin-top: 4rem;
    }
    
    .main_content {
        padding-left: var(--margin_desktop);
        padding-right: var(--margin_desktop);
        padding-bottom: 6rem;
    }
    
    .capabilities_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Projects directory page */
    .projects_layout_main {
        justify-content: center;
        padding: var(--margin_desktop);
        padding-bottom: 7rem;
    }
    
    .terminal_wrapper {
        height: auto;
        min-height: calc(100dvh - 8rem);
    }
    
    .projects_header_row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.25rem;
    }
    
    .cards_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Bridge Page */
    .bridge_splash_content {
        padding-left: var(--margin_desktop);
        padding-right: var(--margin_desktop);
    }
    
    .bridge_nodes {
        flex-direction: row;
        gap: 2rem;
    }
    
    .node_card {
        width: auto;
    }
    
    .node_title {
        font-size: 1.2rem;
    }
    
    .transfer_column {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    /* Projects directory page */
    .cards_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   PRINT LAYOUT (A4 CV)
   ───────────────────────────────────────────────────────────────────────── */
.print_layout {
    display: none;
}

@media print {
    @page {
        size: A4;
        margin: 2cm;
    }

    body {
        background: white;
        color: black;
        margin: 0;
        padding: 0;
    }

    /* Hide screen elements */
    .hero_section, .main_content, .bottom_nav, .bg_grid, .scanlines, .crt_overlay, .crt_flicker {
        display: none;
    }

    /* Show print layout */
    .print_layout {
        display: block;
        font-family: sans-serif;
    }

    .cv_table {
        width: 100%;
        border-collapse: collapse;
        font-size: 11pt;
        line-height: 1.5;
    }

    .cv_table th {
        text-align: left;
        font-size: 16pt;
        border-bottom: 2px solid black;
        padding-bottom: 12px;
        margin-bottom: 24px;
        font-weight: normal;
        letter-spacing: 1px;
    }

    .cv_table td {
        padding: 12px 0;
        vertical-align: top;
        border-bottom: 1px solid #ccc;
    }
    
    .cv_table tr:last-child td {
        border-bottom: none;
    }

    .cv_table .table_label {
        width: 180px;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 9pt;
        letter-spacing: 1px;
        color: #333;
    }

    .cv_table ul {
        margin: 0;
        padding-left: 16px;
        list-style-type: square;
    }

    .cv_table li {
        margin-bottom: 6px;
        color: black;
    }

    .cv_table li::before {
        display: none;
    }
}
