:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --primary: #1e293b;
    --accent-1: #2563eb;
    --accent-2: #7c3aed;
    --accent-3: #10b981;
    --accent: var(--accent-1);
    --accent-soft: #eff6ff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

hr {
    margin-bottom: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}


/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Header --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

nav .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: var(--accent);
}

nav button {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

nav button:hover {
    background-color: var(--bg-main);
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Hero --- */
.version-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.accent-text {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.popular-searches {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero {
    padding: 100px 0;
    background: linear-gradient(130deg, #f1f5f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    color: var(--primary);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.search-box {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.search-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.search-input-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 8px;
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    padding: 16px 32px;
    font-size: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--accent);
    color: var(--accent);
}


/* --- Stats Section --- */
.stats {
    padding: 80px 0 100px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.stat-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.domain-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--accent-soft);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stat-items-group {
    margin-top: 24px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--accent-soft);
}

.pills {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-cyan {
    background: #00f2ff;
}

.dot-purple {
    background: #ad00ff;
}

.dot-green {
    background: #00ff88;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* --- Molecular Pipeline Section --- */
.pipeline-section {
    padding: 120px 0;
    overflow: hidden;
}

.pipeline-container {
    position: relative;
    padding: 80px 0;
    margin-top: 40px;
}

/* The Main Track */
.pipeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(37, 99, 235, 0.1) 0%,
            var(--accent-1) 50%,
            rgba(37, 99, 235, 0.1) 100%);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
}

/* Animated Data Packets */
.data-packet {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    filter: blur(2px);
    transform: translateY(-50%);
    animation: flow 4s infinite linear;
    z-index: 1;
}

@keyframes flow {
    0% {
        left: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

.pipeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pipeline-node {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.node-circles {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.outer-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(15, 23, 42, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.inner-circle {
    width: 64px;
    height: 64px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 3;
    transition: var(--transition);
}

.pipeline-node:hover .outer-circle {
    transform: scale(1.2);
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.pipeline-node:hover .inner-circle {
    transform: scale(0.95);
    border-color: var(--accent-1);
    background: var(--accent-soft);
}

.node-info {
    opacity: 0.9;
}

.node-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.node-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 180px;
    line-height: 1.5;
}

.step-label {
    position: absolute;
    top: -40px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-1);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 1100px) {

    .pipeline-track,
    .data-packet {
        display: none;
    }

    .pipeline-steps {
        flex-direction: column;
        gap: 60px;
    }

    .pipeline-node {
        width: 100%;
    }
}


/* --- Detailed Pipeline Section --- */
.detailed-pipeline {
    padding: 80px 0 120px;
    background: #fff;
}

.pipeline-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-1);
    margin-bottom: 8px;
}

.pipeline-sub-title {
    color: var(--text-muted);
    font-weight: 500;
}

.stage-label {
    position: absolute;
    top: -40px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-1);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Full-width breakout from layout container */
.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stage-title-box {
    background: linear-gradient(135deg, var(--accent-1), #1d4ed8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}


.stage-title-box h4 {
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
}

.stage-desc-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.desc-col {
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
}

.desc-col span {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    text-align: center;
}

.visual-pipeline-bar {
    background: #20262e;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.visual-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.visual-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.visual-item-box p {
    color: #94a3b8;
    font-size: 0.65rem;
    white-space: nowrap;
}

.icon-placeholder {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-arrow-separator {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
}

.bottom-labels-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bottom-label-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.bottom-label-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 900px) {

    .stages-grid,
    .stage-desc-row,
    .bottom-labels-row {
        grid-template-columns: 1fr;
    }

    .visual-pipeline-bar {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }
}



/* --- Taxonomy Tree --- */
.taxonomy-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.taxonomy-nested {
    padding-left: 20px;
    display: none;
    border-left: 1px solid var(--border);
    margin-left: 10px;
}

.taxonomy-item.expanded>.taxonomy-nested {
    display: block;
}

.taxonomy-item {
    margin: 4px 0;
}

.taxonomy-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.taxonomy-content:hover {
    background: var(--accent-soft);
}

.taxonomy-item.active>.taxonomy-content {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}

.taxonomy-toggle {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.8rem;
}

.taxonomy-toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 4px;
}

.taxonomy-item.expanded>.taxonomy-content .taxonomy-toggle i {
    transform: rotate(90deg);
}

.taxonomy-toggle i {
    transition: transform 0.2s ease;
}

.taxonomy-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    user-select: none;
}

.taxonomy-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.taxonomy-dot {
    width: 6px;
    height: 6px;
    background: var(--border);
    border-radius: 50%;
    margin: 0 7px;
    flex-shrink: 0;
}

.taxonomy-item.active>.taxonomy-content .taxonomy-link {
    color: var(--accent);
    font-weight: 700;
}

.taxonomy-item.active>.taxonomy-content .taxonomy-dot {
    background: var(--accent);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-main);
    padding: 20px 0 40px 0;
}

.university-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.footer-info p {
    color: #94a3b8;
    margin-top: 16px;
}
/* --- New Glassmorphism Navbar (from test.cshtml) --- */
.navbar { position: fixed; width: 100%; top: 0; z-index: 50; transition: all 0.3s; }
.glass-nav { background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.6); }
.solid-nav { background: rgba(255,255,255,0.9); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }

.nav-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo-box { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(to bottom right, var(--techblue, #2563eb), var(--techpurple, #7c3aed)); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.nav-brand-text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.025em; color: #1e293b; }
.nav-brand-text span { color: var(--techblue, #2563eb); }

.desktop-menu { display: none; align-items: center; gap: 32px; font-weight: 500; font-size: 14px; color: var(--text-muted); }
@media (min-width: 768px) { .desktop-menu { display: flex; } }
.desktop-menu a:hover { color: var(--techblue, #2563eb); transition: color 0.2s; text-decoration: none; }
.nav-divider { height: 24px; width: 1px; background-color: #e2e8f0; }

.btn-signin { background-color: #0f172a; color: white; padding: 10px 20px; border-radius: 9999px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: background-color 0.2s; text-decoration: none; border: none; }
.btn-signin:hover { background-color: #1e293b; color: white; text-decoration: none; }
.mobile-menu-btn { display: flex; align-items: center; color: var(--text-muted); font-size: 30px; cursor: pointer; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Additional Layout specific adjustments for new navbar */
body {
    padding-top: 80px; /* Offset for fixed navbar */
}

/* Adjust mobile toggle button since Bootstrap controls the collapse */
.mobile-menu-btn[aria-expanded=""true""] {
    color: var(--techblue, #2563eb);
}

.mobile-menu-content {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.mobile-menu-content a {
    text-decoration: none;
    color: var(--text-muted);
}
