/* --- PREMIUM PROJECT MODULES - LAB SECTION --- */

:root {
    --p-glow: rgba(79, 96, 112, 0.4);
    --p-glass: rgba(255, 255, 255, 0.03);
    --p-border: rgba(255, 255, 255, 0.08);
}

#projects-lab {
    padding: 10rem 2rem;
    background: #080a12;
    color: #fff;
    overflow: hidden;
}

.lab-section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8rem;
    background: linear-gradient(to bottom, #fff, #64748b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Base Module Wrapper */
.project-module {
    margin-bottom: 15rem;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.module-info {
    z-index: 10;
    pointer-events: none;
}

.module-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.module-phrase {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 500px;
    margin-bottom: 2rem;
}

.module-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.module-tag {
    padding: 0.4rem 1rem;
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: 99px;
    font-size: 0.8rem;
    color: #cbd5e1;
    backdrop-filter: blur(5px);
}

.module-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.module-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* SPECIFIC MODULE TWEAKS (Placeholders) */

/* 1. Cinematic Reveal */
.cinematic-reveal {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-frame {
    position: relative;
    width: 80%;
    aspect-ratio: 16/9;
    overflow: hidden;
    clip-path: inset(45% 0 45% 0);
    /* Initial hidden state */
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.cinematic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

/* 2. Orbit */
.orbit-showcase {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    position: relative;
    text-align: center;
}

.orbit-satellites {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

/* 3. Liquid Glass */
.liquid-glass {
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 4. Blueprint Assembly */
.blueprint-assembly {
    height: 700px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

/* 5. Holographic Index Map */
.holographic-map {
    height: 600px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-grid {
    width: 60%;
    height: 300px;
    border: 1px solid rgba(79, 96, 112, 0.2);
    transform: rotateX(45deg);
    position: relative;
}

.holo-card {
    position: absolute;
    background: rgba(79, 96, 112, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 96, 112, 0.4);
    padding: 1rem;
    width: 200px;
    transform: rotateX(-45deg) translateY(-50px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* 6. Parallax Diorama Card */
.parallax-diorama {
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diorama-card {
    width: 500px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
}

.diorama-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.diorama-bg {
    transform: translateZ(-50px);
    filter: blur(4px);
    opacity: 0.5;
}

.diorama-mid {
    transform: translateZ(0px);
}

.diorama-fg {
    transform: translateZ(50px);
}

/* 7. Typography Kinetic Poster */
.kinetic-poster {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kinetic-title {
    font-size: 10vw;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, #4F6070, #72808D);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    cursor: pointer;
    transition: font-weight 0.3s ease;
}

/* 8. Data Stream Capsule */
.data-capsule {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capsule-body {
    width: 600px;
    height: 80px;
    border: 1px solid var(--p-border);
    border-radius: 40px;
    background: var(--p-glass);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
    position: relative;
}

.capsule-stream {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: streamScroll 20s linear infinite;
}

@keyframes streamScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* 9. Morphing Gallery Stack */
.gallery-stack {
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-container {
    position: relative;
    width: 300px;
    height: 400px;
}

.stack-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1e293b;
    border: 1px solid var(--p-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 10. Focus Spotlight Story */
.focus-spotlight {
    height: 700px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: none;
}

.spotlight-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 100px, rgba(0, 0, 0, 0.95) 200px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .lab-section-title {
        font-size: 2.5rem;
    }

    .project-module {
        margin-bottom: 8rem;
        padding: 0 1.5rem;
    }
}