@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

html {
    font-size: 112.5%; /* Scales base 1rem from 16px to 18px globally for readability */
}

:root {
    --bg-dark: #06090e;
    --bg-dark-accent: #080c14;
    --bg-dark-secondary: #0b0f17;
    --card-bg: rgba(10, 15, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #b8c5d6;
    
    --green-primary: #10b981;
    --green-glow: rgba(16, 185, 129, 0.3);
    --green-dark: #042f1a;
    
    --blue-primary: #06b6d4;
    --blue-glow: rgba(6, 182, 212, 0.3);
    --blue-dark: #083344;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Page-Specific Color Themes (Demarcation) */
body.genomics-page {
    --bg-dark: #030704;              /* Deep forest-green base */
    --bg-dark-accent: #050c07;       /* Slate-green section accent */
    --bg-dark-secondary: #040906;    /* Secondary forest-green */
    --card-bg: rgba(6, 15, 10, 0.75); /* Green-tinted card background */
    --border-color: rgba(16, 185, 129, 0.08); /* Subtle green border tint */
    --text-secondary: #c6d8c9;       /* Soft mint-sage body text */
    background-color: var(--bg-dark);
}

body.skating-page {
    --bg-dark: #030509;              /* Deep space-navy base */
    --bg-dark-accent: #05080e;       /* Slate-blue section accent */
    --bg-dark-secondary: #04060b;    /* Secondary space-navy */
    --card-bg: rgba(6, 9, 14, 0.75);  /* Blue-tinted card background */
    --border-color: rgba(6, 182, 212, 0.08);  /* Subtle cyan border tint */
    --text-secondary: #c9d5e6;       /* Soft steel-ice body text */
    background-color: var(--bg-dark);
}

body.gateway-page {
    --text-secondary: #cbd5e1;       /* Slightly brighter text on the landing gateway only */
}

/* Contrast and Legibility Overrides (Font Weight 400 for dark themes) */
body.genomics-page p,
body.genomics-page li,
body.genomics-page .pub-summary,
body.genomics-page .pub-authors,
body.genomics-page .footer-desc,
body.genomics-page .lead-text,
body.genomics-page .workflow-step p,
body.genomics-page .collab-card p,
body.genomics-page .modal-card p,
body.genomics-page .academic-highlight p,
body.genomics-page .arm-box p,
body.skating-page p,
body.skating-page li,
body.skating-page .pub-summary,
body.skating-page .pub-authors,
body.skating-page .footer-desc,
body.skating-page .lead-text,
body.skating-page .workflow-step p,
body.skating-page .collab-card p,
body.skating-page .modal-card p,
body.skating-page .academic-highlight p,
body.skating-page .arm-box p {
    font-weight: 400 !important;
}

/* Custom Scrollbar for the main page */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ----------------------------------------------------
   SITE HEADER NAVIGATION
   ---------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(6, 9, 14, 0.95) 0%, rgba(6, 9, 14, 0) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform 0.5s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-logo-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header-text-group {
    display: flex;
    flex-direction: column;
}

.header-logo-icon {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.35));
}

.header-logo-group:hover {
    opacity: 0.85;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.header-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 3px;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.genomics-active .nav-links a.active::after {
    background-color: var(--green-primary);
}

.skating-active .nav-links a.active::after {
    background-color: var(--blue-primary);
}

/* ----------------------------------------------------
   HERO / SPLIT CONTAINER (100vh)
   ---------------------------------------------------- */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Individual Panels */
.panel {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 2rem 2rem 2rem;
    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
    cursor: pointer;
    overflow: hidden;
}

/* Background Canvas */
.panel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    transition: opacity 0.5s ease;
}

/* Panel Content Wrapper */
.panel-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Illustration / Wrapper */
.illustration-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.png-illustration {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.panel.left .png-illustration {
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.15));
}

.panel.right .png-illustration {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.15));
}

.panel:hover .png-illustration {
    transform: scale(1.03);
}

.panel.left:hover .png-illustration {
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.35));
}

.panel.right:hover .png-illustration {
    filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.35));
}

/* Interactive Hover Overlays */
.illustration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel:hover .illustration-overlay {
    opacity: 1;
}

.genomics-overlay {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.15);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--green-primary), transparent);
    box-shadow: 0 0 12px var(--green-primary);
    animation: scanAnimation 3s linear infinite;
}

@keyframes scanAnimation {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scanning-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 15px 15px;
    background-image: 
        linear-gradient(to right, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
}

.skating-overlay {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.03) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-color: rgba(6, 182, 212, 0.15);
}

.telemetry-radar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 50%;
}

.telemetry-radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(6, 182, 212, 0.15);
    border-radius: 50%;
}

.telemetry-radar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(6, 182, 212, 0.12) 0deg, transparent 90deg, transparent 360deg);
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Data Monospace readouts */
.data-stream {
    font-family: 'Share Tech Mono', monospace;
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(4, 6, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    text-align: left;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.genomics-overlay .data-stream {
    border-color: rgba(16, 185, 129, 0.2);
}

.skating-overlay .data-stream {
    border-color: rgba(6, 182, 212, 0.2);
}

.stream-title {
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.5;
    font-weight: 700;
}

.genomics-overlay .stream-title {
    color: var(--green-primary);
}

.skating-overlay .stream-title {
    color: var(--blue-primary);
}

.stream-row {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.stream-row:last-child {
    margin-bottom: 0;
}

.stream-val {
    color: var(--text-primary);
    float: right;
}

.text-green {
    color: var(--green-primary);
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
}

.text-blue {
    color: var(--blue-primary);
    text-shadow: 0 0 4px rgba(6, 182, 212, 0.4);
}

/* Titles & Descriptions */
h2 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.panel.left h2 {
    color: var(--green-primary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.panel.right h2 {
    color: var(--blue-primary);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

p.description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* CTA Buttons */
.cta-button {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none; /* Avoid browser link underlining */
}

.panel.left .cta-button {
    color: var(--green-primary);
    border: 1px solid var(--green-primary);
}

.panel.left .cta-button:hover {
    color: var(--bg-dark);
    background-color: var(--green-primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.panel.right .cta-button {
    color: var(--blue-primary);
    border: 1px solid var(--blue-primary);
}

.panel.right .cta-button:hover {
    color: var(--bg-dark);
    background-color: var(--blue-primary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Hover Expanding Logic (Desktop) */
@media (min-width: 769px) {
    .split-container:hover .panel {
        flex: 0.65;
        opacity: 0.3; /* Enhanced darkening effect (was 0.5) */
    }
    
    .split-container .panel:hover {
        flex: 1.35;
        opacity: 1;
    }

    .split-container .panel:hover .panel-canvas {
        opacity: 0.6;
    }
}

/* Active Expansion */
.panel.expanded {
    flex: 1 0 100% !important;
    opacity: 1 !important;
    cursor: default;
    z-index: 5;
}

.panel.collapsed {
    flex: 0 0 0% !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Portal Content details */
.portal-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    z-index: 3;
    padding: 3rem;
}

.panel.expanded .portal-details {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.panel.expanded .panel-content {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.portal-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.left .portal-title {
    color: var(--green-primary);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.right .portal-title {
    color: var(--blue-primary);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.portal-tagline {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
}

.portal-message-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 550px;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.left .portal-message-card {
    border-color: rgba(16, 185, 129, 0.2);
}

.right .portal-message-card {
    border-color: rgba(6, 182, 212, 0.2);
}

.portal-message-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.portal-message-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Back Button */
.back-button {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.back-button:hover svg {
    transform: translateX(-4px);
}


/* ----------------------------------------------------
   SITE FOOTER (Academic/Executive Fat Layout)
   ---------------------------------------------------- */
.site-footer {
    background-color: #0b0f17;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 3rem 2.5rem 3rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 0.8fr 1fr;
    gap: 3.5rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* Column 1: Profile specifics */
.profile-col h4 {
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(165, 180, 252, 0.15);
}

.footer-desc {
    margin-bottom: 1.5rem !important;
}

/* CV Download */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cv-download-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cv-download-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cv-download-btn:hover svg {
    transform: translateY(2px);
}

/* Column 2: Scope specs */
.engagement-status {
    color: var(--green-primary) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-left: 2px solid var(--green-primary);
    padding-left: 8px;
    margin-top: 1rem;
}

.location-detail {
    font-size: 0.75rem !important;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Column 4: Contact/Copyright */
.footer-sub {
    font-size: 0.72rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem !important;
    opacity: 0.7;
}

.email-link {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 1px;
}

.email-link:hover {
    border-color: var(--text-primary);
}

.copyright {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.25) !important;
    margin-top: 2rem;
}

/* ----------------------------------------------------
   SUBPAGES GLOBAL SPECIFICS
   ---------------------------------------------------- */
.subpage-hero {
    position: relative;
    height: 52vh; /* banner height */
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 3rem 3rem 3rem; /* header padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.subpage-hero.green-theme {
    background: linear-gradient(135deg, #020c08 0%, #041910 100%);
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-art {
    flex: 1;
    max-width: 240px;
    display: flex;
    justify-content: center;
}

.subpage-hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.25));
}

.hero-text-block {
    flex: 1.3;
    text-align: left;
}

.category-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.category-tag.text-green {
    color: var(--green-primary);
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
}

.hero-text-block h1 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.btn-green {
    background: var(--green-primary) !important;
    color: var(--bg-dark) !important;
    border: none !important;
}

.btn-green:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45) !important;
    background: #14cb8e !important;
}

@keyframes greenPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-pulse {
    animation: greenPulse 2.5s infinite;
}

.btn-outline-green {
    color: var(--green-primary) !important;
    border: 1px solid var(--green-primary) !important;
    background: transparent !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-green:hover {
    color: var(--bg-dark) !important;
    background: var(--green-primary) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45) !important;
}

.secondary-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.secondary-link:hover {
    color: var(--text-primary);
}

/* ----------------------------------------------------
   LOGO WALL SECTION
   ---------------------------------------------------- */
.logo-wall-section {
    background-color: var(--bg-dark-accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 5rem 3rem;
    display: flex;
    justify-content: center;
}

.logo-wall-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.logo-wall-section .section-tagline {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.logo-item img {
    max-height: 58px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* Force any transparent logo (regardless of original color) to show as a clean white vector at 80% opacity */
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.8);
    transition: all 0.4s ease;
}

.logo-item img.logo-blend {
    /* For logos with a solid white background (e.g. JPG): invert colors so background is black and logo is white, then screen-blend */
    filter: invert(1) grayscale(100%) opacity(0.8);
    mix-blend-mode: screen;
}

.logo-item:hover img {
    /* Full brightness white logo on hover with emerald drop-shadow glow */
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.95) drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
    transform: scale(1.05);
}

.logo-item:hover img.logo-blend {
    /* Blended logo hover state */
    filter: invert(1) grayscale(100%) opacity(0.95) drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
    transform: scale(1.05);
}

/* ----------------------------------------------------
   GENOMICS PORTAL CONTENT SPLIT
   ---------------------------------------------------- */
.subpage-content-grid {
    background-color: var(--bg-dark);
    padding: 7rem 3rem;
    display: flex;
    justify-content: center;
}

.content-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
}

.block-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.block-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Publication cards */
.publication-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.publication-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.journal-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.green-tag {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green-primary);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.publication-card h4 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.pub-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.paper-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--green-primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.paper-link:hover {
    transform: translateX(4px);
}

/* Subpage Project Cards */
.project-card-sub {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.2rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.project-card-sub:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.green-border {
    border-left: 3px solid var(--green-primary);
}

.proj-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green-primary);
    display: block;
    margin-bottom: 1rem;
}

.project-card-sub h4 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.proj-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.proj-bullet-list {
    list-style: none;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proj-bullet-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.proj-bullet-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ----------------------------------------------------
   COLLABORATIVE ENGAGEMENT WORKFLOW
   ---------------------------------------------------- */
.workflow-section {
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 4.5rem 3rem 3rem 3rem;
    display: flex;
    justify-content: center;
}

.center-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.center-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.workflow-step {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 2rem 1.8rem;
    border-radius: 8px;
    position: relative;
    transition: border-color 0.3s ease;
}

.workflow-step:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

.step-num {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.2);
    margin-bottom: 1rem;
}

.workflow-step h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.workflow-step p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* ----------------------------------------------------
   COLLABORATIVE CTA
   ---------------------------------------------------- */
.collab-cta-section {
    padding: 3.5rem 3rem;
    display: flex;
    justify-content: center;
}

.collab-card {
    background: linear-gradient(135deg, #020a07 0%, #031c0f 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

.collab-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-primary);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.collab-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
    max-width: 580px;
    margin: 0 auto 2rem auto;
}

.collab-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.email-btn-secondary {
    display: inline-flex;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.email-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------
   MODAL OVERLAYS (About & Contact)
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 9, 14, 0.8);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-card h3 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.modal-scroll-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lead-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.academic-highlight {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--green-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.academic-highlight h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-primary);
}

.academic-highlight p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

.arms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.arm-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.arm-box.genomics-border {
    border-top: 3px solid var(--green-primary);
}

.arm-box.skating-border {
    border-top: 3px solid var(--blue-primary);
}

.arm-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.arm-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.contact-card {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.submit-button {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding: 0.9rem;
    border-radius: 4px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    background: var(--text-primary);
    color: var(--bg-dark);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   ---------------------------------------------------- */
@media (max-width: 768px) {
    .site-header {
        padding: 0 1.5rem;
        height: 70px;
    }
    
    .header-logo {
        font-size: 1.1rem;
    }

    .header-subtitle {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .panel {
        width: 100%;
        height: 50vh;
        padding: 6rem 1.5rem 1.5rem 1.5rem;
    }
    
    .panel.left {
        border-right: none;
        border-bottom: 1px solid rgba(16, 185, 129, 0.08);
    }
    
    .illustration-wrapper {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }
    
    .telemetry-radar {
        width: 140px;
        height: 140px;
    }
    
    .telemetry-radar::before {
        width: 85px;
        height: 85px;
    }
    
    .data-stream {
        bottom: 5px;
        left: 5px;
        right: 5px;
        padding: 0.3rem 0.5rem;
    }
    
    .stream-row {
        font-size: 0.65rem;
    }
    
    h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    p.description {
        font-size: 0.82rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }

    .site-footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Subpage adjustments */
    .subpage-hero {
        padding-top: 100px;
        height: auto;
        min-height: unset;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-text-block {
        text-align: center;
    }

    .hero-text-block h1 {
        font-size: 2rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .secondary-link {
        margin-left: 0;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .subpage-content-grid {
        padding: 4rem 1.5rem;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .workflow-section {
        padding: 3rem 1.5rem 2.2rem 1.5rem;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .collab-cta-section {
        padding: 2.5rem 1.5rem;
    }

    .collab-card {
        padding: 2.5rem 1.5rem;
    }

    .collab-card h2 {
        font-size: 1.7rem;
    }

    .collab-actions {
        flex-direction: column;
        gap: 1rem;
    }

    /* Active Expansion */
    .panel.expanded {
        height: 100vh !important;
        flex: 1 0 100% !important;
    }
    
    .panel.collapsed {
        height: 0vh !important;
        flex: 0 0 0% !important;
    }
    
    .portal-title {
        font-size: 1.8rem;
    }
    
    .portal-tagline {
        font-size: 0.95rem;
    }
    
    .portal-message-card {
        padding: 1.5rem;
    }
    
    .modal-card {
        padding: 2rem 1.5rem;
    }
    
    .modal-card h3 {
        font-size: 1.5rem;
    }
    
    .arms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ----------------------------------------------------
   PROJECTS PAGE GRID ADJUSTMENTS
   ---------------------------------------------------- */
.projects-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .projects-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-horizontal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ----------------------------------------------------
   FIGURE SKATING SUBPAGE STYLES
   ---------------------------------------------------- */
.skating-page {
    --theme-primary: var(--blue-primary);
}

.blue-theme {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.12) 0%, transparent 60%), #04060a;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.blue-theme h1 {
    color: var(--blue-primary);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* Rink HUD Layout Adjustments */
@media (max-width: 992px) {
    .rink-hud-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.pulse-dot {
    animation: hudPulse 1.8s infinite ease-in-out;
}

@keyframes hudPulse {
    0% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 4px var(--blue-primary); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--blue-primary); }
    100% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 4px var(--blue-primary); }
}

/* Blog Cards */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    border-color: rgba(6, 182, 212, 0.3) !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45) !important;
}

.blog-card h4 {
    transition: color 0.3s ease;
}

.blog-card:hover h4 {
    color: var(--blue-primary);
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #community-integration div {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    
    #skating-newsletter-form {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    #skating-newsletter-form button {
        width: 100% !important;
    }
}

#skating-newsletter-form input:focus {
    border-color: var(--blue-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

#skating-newsletter-form button:hover {
    background: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

.btn-blue {
    background: var(--blue-primary) !important;
    color: var(--bg-dark) !important;
    border: none !important;
}

.btn-blue:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45) !important;
    background: #0ea5e9 !important;
}

.btn-outline-blue {
    color: var(--blue-primary) !important;
    border: 1px solid var(--blue-primary) !important;
    background: transparent !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-blue:hover {
    color: var(--bg-dark) !important;
    background: var(--blue-primary) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45) !important;
}

.category-tag.text-blue {
    color: var(--blue-primary);
    text-shadow: 0 0 4px rgba(6, 182, 212, 0.3);
}

.subpage-hero-img.skating-hero-img {
    filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.25)) !important;
}

/* Skating Welcome Page Showcase Rows */
.asset-showcase-row {
    display: grid;
    align-items: center;
}

.asset-image {
    width: 100%;
    aspect-ratio: 1.0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.asset-image:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

.asset-image:hover .hover-zoom-img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .asset-showcase-row {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .asset-image {
        order: 1 !important;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .asset-text {
        order: 2 !important;
        text-align: center;
    }
}

/* Skating Project Visual Cards */
.skating-project-card {
    background: rgba(6, 9, 14, 0.35);
    border: 1px solid rgba(6, 182, 212, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Vertical layout on desktop */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.skating-project-card:hover {
    border-color: rgba(6, 182, 212, 0.3) !important;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.skating-project-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keep images perfectly square */
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    background: #04060a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.skating-project-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.skating-project-card:hover .skating-project-image-container img {
    transform: scale(1.04);
}

.skating-project-card:hover .skating-project-image-container {
    background-color: rgba(6, 182, 212, 0.06) !important;
}

.skating-project-content {
    padding: 2rem; /* Luxurious padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mobile responsive override */
@media (max-width: 900px) {
    .skating-project-image-container {
        aspect-ratio: 1.2 / 1; /* Slightly wider on mobile to save vertical scrolling */
    }
}

/* ----------------------------------------------------
   INTERACTIVE BIAS SEARCH SUBPAGE ADDITIONS
   ---------------------------------------------------- */
.tab-panel {
    display: none;
    animation: tabFadeIn 0.4s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-btn {
    color: rgba(255, 255, 255, 0.55) !important;
    border-bottom: 2px solid transparent !important;
}

.tab-btn:hover {
    color: var(--blue-primary) !important;
    background: rgba(6, 182, 212, 0.03) !important;
}

.tab-btn.active {
    color: var(--blue-primary) !important;
    border-bottom-color: var(--blue-primary) !important;
    background: rgba(6, 182, 212, 0.05) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.switch-toggle input:checked + .slider-toggle {
    background-color: rgba(6, 182, 212, 0.2);
    border-color: var(--blue-primary);
}

.switch-toggle input:checked + .slider-toggle::before {
    transform: translateX(20px);
    background-color: var(--blue-primary);
    box-shadow: 0 0 10px var(--blue-primary);
}

.slider-toggle::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.sim-row {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sim-row.highlight-up {
    background: rgba(34, 197, 94, 0.03) !important;
    box-shadow: inset 3px 0 0 #22c55e;
}

.sim-row.highlight-down {
    background: rgba(239, 68, 68, 0.03) !important;
    box-shadow: inset 3px 0 0 #ef4444;
}

.sim-row td {
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.sim-table tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Vertical Sidebar Tabs Layout */
.tab-container.sidebar-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 620px;
    background: rgba(8, 12, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.sidebar-layout .tabs-nav {
    width: 260px;
    flex-shrink: 0;
    background: rgba(6, 9, 14, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none !important;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 0.25rem;
}

.sidebar-layout .tab-btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 3px solid transparent !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    letter-spacing: 0.5px;
}

.sidebar-layout .tab-btn:hover {
    color: var(--blue-primary) !important;
    background: rgba(6, 182, 212, 0.03) !important;
}

.sidebar-layout .tab-btn.active {
    color: var(--blue-primary) !important;
    background: rgba(6, 182, 212, 0.06) !important;
    border-left-color: var(--blue-primary) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.sidebar-layout .tabs-content {
    flex-grow: 1;
    padding: 2.5rem;
    min-width: 0;
    background: rgba(8, 12, 20, 0.15);
}

/* Mobile responsive transition */
@media (max-width: 992px) {
    .tab-container.sidebar-layout {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .sidebar-layout .tabs-nav {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 0.5rem 0 !important;
        gap: 0 !important;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-layout .tab-btn {
        width: auto !important;
        display: inline-flex !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        padding: 0.9rem 1.2rem !important;
        flex: 0 0 auto !important;
    }
    .sidebar-layout .tab-btn.active {
        border-bottom-color: var(--blue-primary) !important;
        border-left-color: transparent !important;
    }
    .sidebar-layout .tabs-content {
        padding: 1.5rem !important;
    }
}


