/* Project Laboratory (Largest Section) */
.laboratory-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem; /* Huge gap between projects for cinematic scroll */
    margin-top: 4rem;
}

.lab-card {
    position: relative;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* 3D Lift on Hover */
.lab-card:hover {
    transform: translateZ(50px) translateY(-10px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 217, 255, 0.1);
}

/* Animated Backgrounds inside cards */
.lab-bg-anim {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.1), transparent 50%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.lab-card:hover .lab-bg-anim {
    opacity: 1;
    transform: scale(1.1);
}

.cyber-bg { background: radial-gradient(circle at 80% 20%, rgba(255, 0, 85, 0.1), transparent 50%); }
.data-bg { background: radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.1), transparent 50%); }
.prod-bg { background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 50%); }

.lab-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    transform: translateZ(30px); /* 3D depth */
}

.lab-header {
    grid-column: 1 / -1;
}

.module-id {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.lab-header h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Live Preview Window Mockups */
.lab-preview-window {
    background: #050816;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateZ(40px); /* Pops out more */
}

.window-bar {
    background: #161b22;
    padding: 10px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #30363d;
}

.window-bar i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #444;
}
.window-bar i:nth-child(1) { background: #ff5f56; }
.window-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3) { background: #27c93f; }

.window-content {
    padding: 20px;
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mock UI Elements */
.mock-ui .skeleton-line {
    height: 12px; background: rgba(255,255,255,0.1); margin-bottom: 15px; border-radius: 4px;
}
.mock-ui .w-80 { width: 80%; }
.mock-ui .w-60 { width: 60%; }
.mock-ui .skeleton-box {
    margin-top: 20px; padding: 15px; background: rgba(0, 217, 255, 0.1); border: 1px dashed var(--primary); color: var(--primary); text-align: center; font-family: var(--font-mono); font-size: 0.8rem;
}

.dark-console { font-family: var(--font-mono); font-size: 0.9rem; justify-content: flex-start; }
.text-green { color: #00ff00; }
.text-red { color: #ff0000; }

.chart-mock { align-items: flex-end; justify-content: space-around; flex-direction: row; padding-top: 50px;}
.chart-mock .bar { width: 40px; background: linear-gradient(to top, var(--primary), transparent); border-radius: 4px 4px 0 0; }
.chart-mock .h-60 { height: 60%; }
.chart-mock .h-90 { height: 90%; }
.chart-mock .h-40 { height: 40%; }

.circle-chart {
    width: 150px; height: 150px; margin: 0 auto;
    border: 15px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--secondary);
    animation: rotate 4s linear infinite;
}

/* Text and Badges */
.lab-tech-badges {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
    transform: translateZ(20px);
}

.lab-tech-badges span {
    padding: 5px 15px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary);
}

.lab-expanded-info {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    transform: translateZ(20px);
}
.lab-expanded-info strong { color: #fff; }

.lab-actions {
    margin-top: 30px;
    display: flex; gap: 15px;
    transform: translateZ(30px);
}

.btn-icon.outline {
    background: transparent;
    border: 1px solid var(--text-secondary);
    padding: 10px 20px;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-icon.outline:hover {
    border-color: #fff; color: #fff;
}
.btn-icon:not(.outline) {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    color: var(--primary);
}
.btn-icon:not(.outline):hover {
    background: var(--primary); color: #000;
}
