/* =================================================================
   CODENOSYS SERVICES SHARED STYLES (The Laboratory)
   Shared assets for Web Dev, UI/UX, Growth, and SEO pages.
   ================================================================= */

:root {
    --lab-bg: #050816;
    --lab-card-bg: rgba(255, 255, 255, 0.02);
    --lab-border: rgba(255, 255, 255, 0.08);
    --lab-accent-cyan: #00f0ff;
    --lab-accent-purple: #bc13fe;
    --lab-accent-green: #0aff60;
}

/* --- 1. Bento Grid Layouts --- */
.lab-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
}

.lab-bento-item {
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lab-bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.lab-bento-item.large {
    grid-column: span 2;
}

.lab-bento-item.tall {
    grid-row: span 2;
}

/* --- 2. Sticky Scroll Container --- */
.lab-sticky-section {
    position: relative;
    display: flex;
    gap: 60px;
    padding: 100px 0;
}

.lab-sticky-content {
    position: sticky;
    top: 120px;
    height: fit-content;
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lab-sticky-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.lab-sticky-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 450px;
}

.lab-scroll-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-top: 20vh;
    /* Offset to align first item */
    padding-bottom: 20vh;
}

.lab-scroll-item {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: blur(2px);
}

.lab-scroll-item.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.02);
}

.lab-scroll-item .step-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

.lab-scroll-item.active .step-num {
    color: var(--lab-accent-green);
    text-shadow: 0 0 30px rgba(10, 255, 96, 0.2);
}

.lab-scroll-item h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.lab-scroll-item p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
}

/* --- Shared Components --- */
.btn-primary {
    width: fit-content;
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(138, 66, 255, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(138, 66, 255, 0.5);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}

/* --- 3. Glass HUD (Heads Up Display) --- */
.lab-hud {
    background: rgba(10, 15, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lab-hud-stat {
    display: flex;
    flex-direction: column;
}

.lab-hud-stat .label {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lab-hud-stat .value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .lab-bento-grid {
        grid-template-columns: 1fr;
    }

    .lab-bento-item.large,
    .lab-bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .lab-sticky-section {
        padding: 0 10px;
        flex-direction: column;
    }

    .lab-sticky-content {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .lab-scroll-content {
        padding-top: 0;
    }
}