/* --- Nexus Lab: Futuristic HUD & Bento Styles --- */

.lab-main {
    padding-top: 120px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.05) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(197, 160, 89, 0.03) 0%, transparent 40%);
}

/* --- Hero Scanner --- */
.lab-hero {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.lab-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.lab-status {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
}

/* Grid Sizes */
.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Item Elements */
.bento-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.bento-header h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.bento-header p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* HUD Data Visualization Mockup */
.hud-visual {
    margin-top: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}

.data-stream {
    font-size: 0.7rem;
    color: rgba(197, 160, 89, 0.5);
    line-height: 1.5;
}

/* Kinetic Signature Loader */
.kinetic-box {
    width: 60px;
    height: 60px;
    position: relative;
}

.kinetic-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-border);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 6s ease-in-out infinite;
}

.kinetic-circle:nth-child(2) {
    border-color: var(--color-accent);
    animation-direction: reverse;
    animation-duration: 8s;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
        transform: rotate(180deg);
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(360deg);
    }
}

/* Digital Blueprint (SVG Based) */
.blueprint-svg {
    width: 100%;
    height: 150px;
    stroke: rgba(197, 160, 89, 0.2);
    stroke-width: 0.5;
    fill: none;
}

.blueprint-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 8s linear infinite;
}

@keyframes draw {
    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1000;
    }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .lab-title {
        font-size: 2.5rem;
    }
}

/* --- Utility & Fixes --- */
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-items-lab {
    display: flex;
    gap: 40px;
}

.bento-cta {
    background: var(--gradient-primary);
    color: black;
}

.bento-cta .bento-label {
    color: rgba(0, 0, 0, 0.6);
}

.bento-cta h3 {
    color: black;
}

.bento-cta p {
    color: rgba(0, 0, 0, 0.7);
}

.btn-lab-cta {
    background: black;
    color: white;
    border: none;
    align-self: flex-start;
}

.performance-val {
    font-size: 2rem;
    font-weight: 700;
    font-family: monospace;
}

.site-footer-lab {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}