/* ============================================
   LAB PAGE STYLES
   Cybersecurity Lab — Elitech Hub
   ============================================ */

/* --- Lab Hero Section --- */
.lab-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: #020617;
    background-image:
        linear-gradient(to bottom, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.85) 100%),
        url('../assets/images/lab-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.lab-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    pointer-events: none;
    z-index: 1;
}

.lab-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(195, 21, 28, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: corePulse 8s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes corePulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.lab-hero .container {
    position: relative;
    z-index: 2;
}

.lab-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1rem;
}

.lab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 3rem;
    margin-bottom: 1.5rem;
    animation: labBadgePulse 3s ease-in-out infinite;
}

.lab-badge span {
    color: #67e8f9;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@keyframes labBadgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.2);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(6, 182, 212, 0.15);
    }
}

.lab-hero h1 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.lab-hero h1 span {
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lab-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.lab-hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.lab-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s;
}

.lab-hero-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.3);
}

.lab-hero-stat i {
    font-size: 1.25rem;
}

.lab-hero-stat .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Lab Overview Section --- */
.lab-overview {
    padding: 5rem 2rem;
    background: white;
}

.lab-overview-content {
    max-width: 850px;
    margin: 0 auto;
}

.lab-overview h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.lab-overview h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #06B6D4, #8B5CF6);
    border-radius: 2px;
}

.lab-overview p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 1.25rem;
}

.lab-overview-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.lab-pillar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.lab-pillar:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lab-pillar i {
    font-size: 1.1rem;
    color: #06B6D4;
    width: 20px;
    flex-shrink: 0;
}

.lab-pillar span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

/* --- Lab Focus Areas Section --- */
.lab-focus {
    padding: 5rem 2rem;
    background: #f8fafc;
}

.lab-focus-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.lab-focus-header h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.lab-focus-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.lab-units {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lab-unit {
    background: white;
    border-radius: 1.25rem;
    padding: 2.25rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: height 0.3s ease;
}

.lab-unit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.lab-unit:nth-child(1)::before {
    background: linear-gradient(90deg, #06B6D4, #0891b2);
}

.lab-unit:nth-child(2)::before {
    background: linear-gradient(90deg, #8B5CF6, #7C3AED);
}

.lab-unit:nth-child(3)::before {
    background: linear-gradient(90deg, #10B981, #059669);
}

.lab-unit:nth-child(4)::before {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.lab-unit-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.lab-unit:nth-child(1) .lab-unit-icon {
    background: rgba(6, 182, 212, 0.1);
    color: #06B6D4;
}

.lab-unit:nth-child(2) .lab-unit-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.lab-unit:nth-child(3) .lab-unit-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.lab-unit:nth-child(4) .lab-unit-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.lab-unit-icon i {
    font-size: 1.4rem;
}

.lab-unit h3 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.lab-unit-section {
    margin-bottom: 1.25rem;
}

.lab-unit-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.625rem;
}

.lab-unit-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lab-unit-section li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.lab-unit-section li i {
    font-size: 0.5rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.lab-unit:nth-child(1) .lab-unit-section li i {
    color: #06B6D4;
}

.lab-unit:nth-child(2) .lab-unit-section li i {
    color: #8B5CF6;
}

.lab-unit:nth-child(3) .lab-unit-section li i {
    color: #10B981;
}

.lab-unit:nth-child(4) .lab-unit-section li i {
    color: #F59E0B;
}

/* --- Methodology Section --- */
.lab-methodology {
    padding: 5rem 2rem;
    background: white;
}

.lab-methodology-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lab-methodology-header h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.lab-methodology-header p {
    font-size: 1rem;
    color: #64748b;
    max-width: 550px;
    margin: 0 auto;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.methodology-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.methodology-step:hover {
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.methodology-step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1.25rem;
}

.methodology-step h3 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.methodology-step p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
}

/* Connector arrows between steps */
.methodology-steps .methodology-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #cbd5e1;
    font-weight: 700;
}

/* --- Lab Artifacts Section --- */
.lab-artifacts {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
}

.lab-artifacts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lab-artifacts-header h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.lab-artifacts-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.artifact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.artifact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.artifact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.artifact-card-header i {
    font-size: 1.25rem;
    color: #06B6D4;
}

.artifact-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.artifact-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.artifact-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #67e8f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Code snippet styling */
.artifact-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #a5f3fc;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.artifact-code .comment {
    color: #64748b;
}

.artifact-code .keyword {
    color: #c084fc;
}

.artifact-code .string {
    color: #6ee7b7;
}

.artifact-code .operator {
    color: #f472b6;
}

/* --- Research-Training Relationship --- */
.lab-relationship {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.lab-relationship-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lab-relationship-text h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.lab-relationship-text p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.lab-relationship-diagram {
    text-align: center;
}

.relationship-flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.flow-node {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    width: 220px;
    text-align: center;
    transition: transform 0.3s ease;
}

.flow-node:hover {
    transform: scale(1.03);
}

.flow-node.research-node {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}

.flow-node.lab-node {
    background: linear-gradient(135deg, #06B6D4, #0891b2);
    color: white;
}

.flow-node.training-node {
    background: linear-gradient(135deg, #c3151c, #9e1115);
    color: white;
}

.flow-arrow {
    color: #94a3b8;
    font-size: 1.25rem;
}

/* --- Ethics Section --- */
.lab-ethics {
    padding: 4rem 2rem;
    background: white;
}

.lab-ethics-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.lab-ethics-left h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.lab-ethics-left p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.ethics-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.ethics-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ethics-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.ethics-item i {
    font-size: 1.1rem;
    color: #10B981;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ethics-item div h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.ethics-item div p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* --- CTA Section --- */
.lab-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-top: 1px solid #e2e8f0;
}

.lab-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.lab-cta h2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.lab-cta p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.lab-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lab-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lab-cta-btn.primary {
    background: linear-gradient(135deg, #06B6D4, #0891b2);
    color: white;
}

.lab-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.lab-cta-btn.secondary {
    background: transparent;
    border: 2px solid #0f172a;
    color: #0f172a;
}

.lab-cta-btn.secondary:hover {
    background: #0f172a;
    color: white;
}

/* --- Scroll Animations --- */
.lab-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lab-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .lab-units {
        grid-template-columns: 1fr;
    }

    .methodology-steps .methodology-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .lab-hero {
        min-height: 70vh;
        padding-top: 70px;
    }

    .lab-hero-content {
        padding: 2.5rem 1rem;
    }

    .lab-hero h1 {
        font-size: 1.75rem;
    }

    .lab-hero p {
        font-size: 0.95rem;
    }

    .lab-hero-stats {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .lab-hero-stat {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .lab-overview {
        padding: 3rem 1rem;
    }

    .lab-overview-pillars {
        grid-template-columns: 1fr;
    }

    .lab-focus {
        padding: 3rem 1rem;
    }

    .lab-focus-header h2 {
        font-size: 1.75rem;
    }

    .lab-unit {
        padding: 1.5rem;
    }

    .lab-methodology {
        padding: 3rem 1rem;
    }

    .methodology-steps {
        grid-template-columns: 1fr;
    }

    .lab-artifacts {
        padding: 3rem 1rem;
    }

    .artifacts-grid {
        grid-template-columns: 1fr;
    }

    .lab-relationship {
        padding: 3rem 1rem;
    }

    .lab-relationship-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lab-ethics {
        padding: 3rem 1rem;
    }

    .lab-ethics-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ethics-items {
        grid-template-columns: 1fr;
    }

    .lab-cta {
        padding: 3rem 1rem;
    }

    .lab-cta h2 {
        font-size: 1.5rem;
    }

    .lab-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lab-cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Lab page footer responsive overrides */
    .lab-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .lab-footer-newsletter {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .lab-footer-newsletter form {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .lab-hero {
        min-height: 60vh;
    }

    .lab-hero h1 {
        font-size: 1.5rem;
    }

    .lab-hero p {
        font-size: 0.875rem;
    }

    .lab-hero-stat {
        padding: 0.625rem 1rem;
        max-width: 100%;
    }

    .lab-badge span {
        font-size: 0.7rem;
    }

    .lab-unit h3 {
        font-size: 1rem;
    }

    .artifact-card {
        padding: 1.25rem;
    }

    .lab-focus-header h2,
    .lab-methodology-header h2,
    .lab-artifacts-header h2 {
        font-size: 1.4rem;
    }
}