/* --- labs.css (Modified to trigger git detection) --- */

/* 1. THE TERMINAL HORIZON HERO */
.labs-hero {
    margin-top: 8rem;
    margin-bottom: 4rem;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--bg-base);
    border: 1px solid var(--border-alpha);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.05), var(--shadow-sm);
    z-index: 1;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.labs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, var(--bg-base) 100%);
    z-index: 1;
    pointer-events: none;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.5;
    animation: scan 8s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 110%; opacity: 0; }
}

.hero-content-layer {
    padding: 7rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-main h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    letter-spacing: -0.04em;
    margin-bottom: 0;
    color: var(--text-main);
    line-height: 1;
    min-height: 1.2em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 2. FILTER CAPSULE */
.labs-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--text-main);
}

.filter-bar {
    display: inline-flex;
    background: var(--border-alpha);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--border-alpha);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--card-glass);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}


/* 3. CINEMATIC TABLE */
.inventory-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.header-row,
.inv-row {
    display: grid;
    grid-template-columns: 0.5fr 4fr 1.2fr 1.2fr;
    gap: 2rem;
    padding: 1.5rem 2rem;
    align-items: center;
}

.header-row {
    padding: 1rem 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    border-bottom: 1px solid var(--border-alpha);
}

.inv-row {
    border-bottom: 1px solid var(--border-alpha);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    color: var(--text-muted);
}

.inventory-table:hover .inv-row {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.inventory-table .inv-row:hover {
    opacity: 1;
    filter: grayscale(0);
    background: var(--card-glass);
    transform: scale(1.02);
    z-index: 10;
    border-radius: 12px;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-hover);
    color: var(--text-main);
}

/* Columns */
.col-id { opacity: 0.5; font-size: 0.8rem; }
.col-project { display: flex; flex-direction: column; gap: 4px; }
.p-name { font-weight: 600; color: var(--text-main); font-size: 1.1rem; }
.p-desc { font-family: 'Inter', sans-serif; font-size: 0.9rem; opacity: 0.8; }

.tech-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-alpha);
    padding: 2px 10px;
    border-radius: 100px;
    background: transparent;
    margin-right: 4px;
}

.inv-row:hover .tech-tag {
    color: var(--accent);
    border-color: var(--accent);
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.status-badge.green { background: rgba(39, 201, 63, 0.1); color: #27c93f; }
.status-badge.yellow { background: rgba(255, 189, 46, 0.1); color: #ffbd2e; }
.status-badge.blue { background: rgba(0, 122, 255, 0.1); color: #007aff; }

/* Launch Button */
.access-btn {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    color: var(--text-main);
    background: transparent;
    border: 1px solid var(--border-alpha);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.access-btn:hover {
    background: var(--text-main);
    color: var(--bg-base);
    border-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.access-btn::after { content: '→'; transition: transform 0.3s; }
.access-btn:hover::after { transform: translateX(3px); }

/* Mobile */
@media (max-width: 900px) {
    #matrix-canvas { display: none; }
    .hero-main h1 { font-size: 2.5rem; }
    .header-row, .col-id { display: none; }
    .inv-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    .inventory-table:hover .inv-row { opacity: 1; transform: none; filter: none; }
}