/* Lab-specific styles */
.lab-hero {
    background: var(--bg-primary);
    min-height: 60vh;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 8vh;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) and (orientation: landscape) {
    .lab-hero {
        min-height: 90vh;
    }
}

.lab-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin: 0;
    color: #0a192f;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.lab-title-animated {
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    position: relative;
}

.lab-title-animated::after {
    content: '|';
    animation: blinkCursor 1s infinite;
    color: #2a5298;
    margin-left: 0.1em;
}

@keyframes blinkCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.lab-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.3;
    color: #64748b;
    margin-top: 1rem;
    max-width: 600px;
    transition: color 0.3s ease;
}

.lab-tagline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.5;
    color: #475569;
    margin-top: 2rem;
    max-width: 700px;
    transition: color 0.3s ease;
}

.word-cloud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 4rem 2rem;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.word-cloud-item {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e3c72;
    margin: 1rem;
    animation: float 8s ease-in-out infinite;
    opacity: 0.08;
    position: relative;
    white-space: nowrap;
    z-index: 2;
}

/* Dynamic positioning - will be set by JavaScript */
.word-cloud-item { 
    position: absolute;
    transition: all 0.3s ease;
}

/* Font sizes and animation delays */
.word-cloud-item:nth-child(1) { font-size: 2.2rem; animation-delay: 0s; }
.word-cloud-item:nth-child(2) { font-size: 1.8rem; animation-delay: 0.7s; }
.word-cloud-item:nth-child(3) { font-size: 2.5rem; animation-delay: 1.4s; }
.word-cloud-item:nth-child(4) { font-size: 1.5rem; animation-delay: 2.1s; }
.word-cloud-item:nth-child(5) { font-size: 2rem; animation-delay: 2.8s; }
.word-cloud-item:nth-child(6) { font-size: 1.6rem; animation-delay: 3.5s; }
.word-cloud-item:nth-child(7) { font-size: 2.3rem; animation-delay: 4.2s; }
.word-cloud-item:nth-child(8) { font-size: 1.4rem; animation-delay: 4.9s; }
.word-cloud-item:nth-child(9) { font-size: 1.9rem; animation-delay: 5.6s; }
.word-cloud-item:nth-child(10) { font-size: 2.1rem; animation-delay: 6.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-12px) rotate(1deg) scale(1.02); }
    50% { transform: translateY(-6px) rotate(-1deg) scale(0.98); }
    75% { transform: translateY(-15px) rotate(0.5deg) scale(1.01); }
}



.word-cloud-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    opacity: 0.7;
    animation: scrollPulse 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(30, 60, 114, 0.2);
    transform: scale(1.1);
}

.scroll-arrow i {
    font-size: 1.2rem;
    color: #1e3c72;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Adjust scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 8rem;
        opacity: 0.9;
    }
    
    .scroll-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .scroll-text {
        font-size: 0.8rem;
        font-weight: 600;
    }
}

.lab-content {
    position: relative;
    z-index: 10;
}

.lab-section {
    padding: 5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.lab-section:last-child {
    border-bottom: none;
}

.lab-section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--section-title-color);
    margin-bottom: 2rem;
    position: relative;
    transition: color 0.3s ease;
}

.lab-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.lab-quote {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: #64748b;
    background: transparent;
    border-left: 2px solid #e2e8f0;
    padding: 0.8rem 0 0.8rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0.5rem 2rem;
    margin-top: 2rem;
}

.focus-item {
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.focus-item:hover {
    opacity: 0.7;
}

.focus-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.focus-icon .icon-container {
    margin-right: 0; /* Remove default margin in focus icons */
}

.focus-icon i {
    font-size: 1.1rem;
    color: #64748b;
}

.focus-item h5 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #334155;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.lab-stats {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0;
}

.lab-stats .lab-section-title {
    color: white;
}

.lab-stats .lab-section-title::after {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h5 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-list li i {
    margin-right: 0.75rem;
    width: 20px;
}

.coming-soon-container {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin: 3rem 0;
    transition: background-color 0.3s ease;
}

.coming-soon-container h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.coming-soon-container p {
    color: #64748b;
    font-size: 1.1rem;
}

.collaboration-cta {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.collaboration-cta h2 {
    color: white;
    margin-bottom: 2rem;
}

.collaboration-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.email-display {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff8c00;
    margin: 2rem 0;
    letter-spacing: 0.5px;
}

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .word-cloud-item:nth-child(3) { right: 15%; }
    .word-cloud-item:nth-child(7) { right: 3%; }
    .word-cloud-item:nth-child(8) { right: 25%; }
}

@media (max-width: 768px) {
    .lab-hero {
        min-height: 100vh;
        text-align: center;
    }
    
    .word-cloud {
        padding: 1rem;
    }
    
    /* Mobile font sizes - smaller than desktop */
    .word-cloud-item:nth-child(1) { font-size: 1.1rem; }
    .word-cloud-item:nth-child(2) { font-size: 0.9rem; }
    .word-cloud-item:nth-child(3) { font-size: 1.3rem; }
    .word-cloud-item:nth-child(4) { font-size: 0.8rem; }
    .word-cloud-item:nth-child(5) { font-size: 1rem; }
    .word-cloud-item:nth-child(6) { font-size: 0.9rem; }
    .word-cloud-item:nth-child(7) { font-size: 1.2rem; }
    .word-cloud-item:nth-child(8) { font-size: 0.8rem; }
    .word-cloud-item:nth-child(9) { font-size: 1rem; }
    .word-cloud-item:nth-child(10) { font-size: 1.1rem; }
    
    .word-cloud-item::before {
        display: none;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .lab-section {
        padding: 3rem 0;
    }
}

/* All dark mode styles moved to dark-mode.css */

/* MSc mentorship section styling */
.lab-section-light {
    background-color: #f8fafc;
    transition: background-color 0.3s ease;
}

/* Mentorship Modal Styling - matching cookie modal design */
.mentorship-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: var(--bg-primary);
    overflow: hidden;
}

.mentorship-modal-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(42, 82, 152, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 2.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mentorship-modal-header .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

.mentorship-modal-header .modal-title i {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-right: 0.75rem;
    color: #2a5298;
}

.mentorship-modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.6;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mentorship-modal-header .btn-close:hover {
    opacity: 1;
    background: var(--border-color);
    transform: scale(1.05);
}

.mentorship-modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
    opacity: 1;
}

.mentorship-modal-body {
    padding: 2.5rem;
    background: var(--bg-primary);
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Styling */
.mentorship-modal-body .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.mentorship-modal-body .form-group:last-child {
    margin-bottom: 1rem;
}

.mentorship-modal-body label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: block;
}

.mentorship-modal-body .text-danger {
    color: #e74c3c;
}

.mentorship-modal-body .form-control {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: none;
}

.mentorship-modal-body .form-control:focus {
    background: var(--bg-primary);
    border-color: #2a5298;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.15);
    outline: none;
}

.mentorship-modal-body .form-control:hover {
    border-color: rgba(42, 82, 152, 0.3);
}

.mentorship-modal-body .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.mentorship-modal-body textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.mentorship-modal-body .form-control-file {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.mentorship-modal-body .form-control-file:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.15);
    outline: none;
}

.mentorship-modal-body .form-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Checkbox Styling */
.mentorship-modal-body .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.mentorship-modal-body .form-check {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.mentorship-modal-body .form-check:hover {
    border-color: rgba(42, 82, 152, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mentorship-modal-body .form-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.mentorship-modal-body .form-check-label {
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: block;
    position: relative;
    padding-left: 2rem;
    margin: 0;
}

.mentorship-modal-body .form-check-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.mentorship-modal-body .form-check-label::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mentorship-modal-body .form-check-input:checked + .form-check-label::before {
    background: #2a5298;
    border-color: #2a5298;
}

.mentorship-modal-body .form-check-input:checked + .form-check-label::after {
    opacity: 1;
}

.mentorship-modal-body .form-check-input:checked ~ .form-check {
    border-color: #2a5298;
    background: rgba(42, 82, 152, 0.05);
}

.mentorship-modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 2.5rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mentorship-modal-footer .btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mentorship-modal-footer .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.mentorship-modal-footer .btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mentorship-modal-footer .btn-custom {
    background: linear-gradient(135deg, #2a5298 0%, #3d5aa1 100%);
    color: white;
    border: none;
}

.mentorship-modal-footer .btn-custom:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 82, 152, 0.3);
}

.mentorship-modal-footer .btn-custom:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.5);
}

/* Success Modal Styling */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mentorship-modal-header,
    .mentorship-modal-body,
    .mentorship-modal-footer {
        padding: 1.5rem;
    }
    
    .mentorship-modal-body {
        max-height: 60vh;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mentorship-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mentorship-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}