.labs-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px 40px;
    animation: fadeIn 1s ease-out;
}

.labs-header {
    text-align: center;
    margin-bottom: 70px;
}

.labs-header h1 {
    margin: 0 0 15px 0;
    font-size: 3.2em;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow:
        -1px -1px 0 #007BFF,
         1px -1px 0 #007BFF,
        -1px  1px 0 #007BFF,
         1px  1px 0 #007BFF;
}

.labs-header p {
    font-size: 1.2em;
    color: #a0a0a0;
    margin: 0;
}

/* ── Project Card ── */
.lab-card {
    background: rgba(26, 34, 43, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
    transition: border-color 0.3s ease;
}

.lab-card:hover {
    border-color: rgba(0, 123, 255, 0.4);
}

/* ── Carousel ── */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0d1117;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0d1117
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #007BFF;
    border-color: #007BFF;
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #007BFF;
    transform: scale(1.3);
}

/* ── Card Body ── */
.lab-card-body {
    padding: 35px 40px 40px;
}

.lab-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.lab-card-body h2 {
    margin: 0;
    font-size: 1.9em;
    font-weight: 700;
    color: #FFFFFF;
}

.no-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #a0a0a0;
    font-size: 0.85em;
    white-space: nowrap;
    flex-shrink: 0;
}

.lab-hook {
    font-size: 1.05em;
    color: #007BFF;
    font-weight: 600;
    margin: 0 0 18px 0;
    letter-spacing: 0.01em;
}

/* ── Metric Callout ── */
.metric-callout {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 25px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.metric-value.highlight {
    color: #007BFF;
}

.metric-label {
    display: block;
    font-size: 0.75em;
    color: #a0a0a0;
    margin-top: 4px;
}

.metric-arrow {
    font-size: 1.3em;
    color: #007BFF;
}

/* ── Description ── */
.lab-description {
    font-size: 1.05em;
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ── Optimizations ── */
.optimizations {
    margin-bottom: 28px;
}

.optimizations h3 {
    font-size: 1em;
    color: #EAEAEA;
    font-weight: 600;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85em;
}

.optimization-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.optimization-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #a0a0a0;
    font-size: 0.95em;
    line-height: 1.6;
}

.optimization-list li i {
    color: #007BFF;
    margin-top: 3px;
    flex-shrink: 0;
}

.optimization-list li strong {
    color: #EAEAEA;
}

/* ── Tech Stack ── */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 6px 14px;
    background: #1a222b;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 20px;
    color: #a0a0a0;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 123, 255, 0.15);
    color: #EAEAEA;
    border-color: #007BFF;
    transform: translateY(-2px);
}

/* ── Coming Soon Card ── */
.lab-card-coming-soon {
    background: rgba(26, 34, 43, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 50px;
}

.coming-soon-icon {
    font-size: 2.5em;
    color: rgba(0, 123, 255, 0.4);
    margin-bottom: 20px;
}

.lab-card-coming-soon h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: #EAEAEA;
    margin: 0 0 12px 0;
}

.lab-card-coming-soon p {
    font-size: 1em;
    color: #a0a0a0;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.7;
}

.coming-soon-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 7px 18px;
    border: 1px solid rgba(0, 123, 255, 0.4);
    border-radius: 20px;
    color: #007BFF;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
    .labs-container { padding: 20px; }
    .lab-card-body  { padding: 25px 20px 30px; }
    .lab-card-top   { flex-direction: column; gap: 12px; }
    .labs-header h1 { font-size: 2.4em; }
    .metric-callout { flex-wrap: wrap; justify-content: center; }
}