* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 95%; /* Updated to allow full-screen width */
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.header {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.logo-area h1 {
    font-size: 2.2rem;
    color: #38bdf8;
    margin-bottom: 0;
}

.initiative-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.header p {
    color: #94a3b8;
    font-size: 1rem;
}

.search-section {
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.search-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 900px; /* Made wider for the new full-screen layout */
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input:focus {
    border-color: #38bdf8;
}

.btn-primary {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 8px;
    background: #0284c7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0369a1;
}

.api-credit {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.status-message {
    text-align: center;
    padding: 1rem;
    color: #38bdf8;
    font-weight: 500;
}

.hidden {
    display: none;
}

.results-grid {
    display: grid; /* Updated to display results dynamically side-by-side */
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); 
    gap: 1.5rem;
    margin: 1.5rem 0 3rem;
}

.card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.card h3 {
    font-size: 1.2rem;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-links a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.card-links a:hover {
    opacity: 0.85;
}

.link-doi { background: #334155; color: #f8fafc; }
.link-pdf { background: #16a34a; color: #ffffff; }
.link-rg { background: #00ccbb; color: #0f172a; }

@media (max-width: 600px) {
    .brand-title {
        flex-direction: column;
        gap: 0.4rem;
    }

    .search-form {
        flex-direction: column;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ai-modal-content {
    max-width: 600px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #f8fafc;
}

.modal-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}

.modal-section h3 {
    color: #38bdf8;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.modal-section p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* AI Chat Box */
.chat-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   Scientist Image Carousel
========================================= */
.scientist-carousel-section {
    margin: 3rem 0;
    width: 100%;
    overflow: hidden; 
}

.scientist-carousel {
    position: relative;
    width: 100vw; 
    margin-left: calc(-50vw + 50%); 
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
}

.scientist-track {
    display: inline-flex;
    gap: 3rem; 
    padding-left: 3rem; 
    animation: scroll-scientists 25s linear infinite;
}

.scientist-track:hover {
    animation-play-state: paused;
}

.scientist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.scientist-card:hover {
    transform: translateY(-5px);
}

.scientist-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #334155;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.8rem;
}

.scientist-card:hover img {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.scientist-card h4 {
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0 0 0.3rem 0;
}

.scientist-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

@keyframes scroll-scientists {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* =========================================
   Bioinformatics Tools Section
========================================= */
.tools-section {
    margin: 4rem 0 2rem;
    text-align: center;
}

.tools-section h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(8px);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 0.6rem;
}

.tool-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* =========================================
   Footer & Scrolling Ribbon Styles
========================================= */
.site-footer {
    margin-top: auto; 
    background-color: rgba(30, 41, 59, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Scrolling Ribbon */
.scrolling-ribbon {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    color: #ffffff;
    padding: 0.6rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    white-space: nowrap;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%; 
    animation: scroll-left 35s linear infinite;
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.scrolling-ribbon:hover .scrolling-text {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Contact & Copyright Content */
.footer-content {
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content p {
    margin-bottom: 0.4rem;
}

.footer-content .copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}