/* Lab Modal Styles - Optimized Premium Layout */
.lab-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-modal.active {
    opacity: 1;
    visibility: visible;
}

.lab-content {
    background: #0a0a0a;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 3rem;
    padding: 4rem;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lab-modal.active .lab-content {
    transform: translateY(0);
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-header h3 {
    font-size: 2.4rem;
    color: #00f2ff;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.close-lab {
    background: none;
    border: none;
    font-size: 3rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lab:hover {
    color: #ff00ea;
    transform: rotate(90deg);
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

/* Premium Lab Item Link */
.lab-item-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lab-item-premium:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: #00f2ff;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.lab-item-premium .lab-icon {
    font-size: 4.5rem;
    color: #00f2ff;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.lab-item-premium:hover .lab-icon {
    transform: scale(1.1);
}

.lab-item-premium h4 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.lab-item-premium p {
    font-size: 1.3rem;
    color: #a0a0a0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .lab-content { padding: 2.5rem; }
    .lab-grid { grid-template-columns: 1fr; }
}
