/* Global styling for BioMed-KAI documentation site */
:root {
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 40%, #f1f5f9 100%);
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(148, 163, 184, 0.25);
    --brand-blue: #2563eb;
    --brand-purple: #7c3aed;
    --brand-slate: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-bg);
    color: var(--brand-slate);
    min-height: 100vh;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 40px -20px rgba(15, 23, 42, 0.4);
}

.site-nav .brand-pill {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    border-radius: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.site-nav a.nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
}

.site-nav a.nav-link:hover {
    color: var(--brand-blue);
    background: rgba(37, 99, 235, 0.08);
}

.site-nav a.nav-link.active {
    color: var(--brand-blue);
    background: rgba(37, 99, 235, 0.12);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.55);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-soft.brand {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-blue);
}

.badge-soft.neutral {
    background: rgba(15, 23, 42, 0.08);
    color: var(--brand-slate);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.35);
}

.btn-primary-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.45);
}

.btn-outline {
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    color: var(--brand-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.06);
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--brand-slate);
}

.section-subtitle {
    color: #475569;
    font-size: 1.05rem;
    max-width: 40rem;
    margin: 0 auto;
}

.metric-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px -30px rgba(37, 99, 235, 0.45);
}

.pill-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.18));
    color: var(--brand-blue);
}

.mini-nav {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: inline-flex;
    padding: 0.3rem;
    gap: 0.5rem;
}

.mini-nav a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.mini-nav a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-blue);
}

.mini-nav a.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.18));
    color: var(--brand-blue);
}

.mini-nav.vertical {
    flex-direction: column;
    align-items: flex-start;
    width: auto;
}

.mini-nav.vertical a {
    width: auto;
    text-align: left;
}

.mini-nav.vertical a + a {
    margin-left: 0;
}

.footer {
    background: rgba(15, 23, 42, 0.95);
    color: rgba(226, 232, 240, 0.85);
}

.footer a {
    color: rgba(226, 232, 240, 0.75);
}

.footer a:hover {
    color: white;
}

.pattern-dot {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.22), transparent 70%);
    filter: blur(0px);
}

.pattern-dot.alt {
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.2), transparent 70%);
}

.timeline-dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.chip {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue);
}

.chip.neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.step-card {
    border-left: 3px solid rgba(37, 99, 235, 0.3);
    padding-left: 1.5rem;
}

.step-card:hover {
    border-left-color: rgba(37, 99, 235, 0.65);
}

.card-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s 
ease;
}

.pill-grid {
    display: grid;
    gap: 0.75rem;
}

.pill-grid span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.pill-grid span i {
    color: var(--brand-blue);
}

.team-photo {
    width: 13rem;
    height: 20rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.6);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.filter-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(148, 163, 184, 0.4);
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--brand-blue);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--brand-blue);
}

.publication-card {
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: rgba(255, 255, 255, 0.92);
}

.publication-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
}

.cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.9));
    color: white;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 45%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .site-nav .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 639px) {
    .mini-nav.vertical {
        width: 100%;
        align-items: stretch;
    }

    .mini-nav.vertical a {
        width: 100%;
    }
}

