:root {
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    --accent-teal: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(226, 232, 240, 0.8);
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 45px -10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 40%);
}

/* Typography Overrides */
h1, h2, h3, h4 {
    letter-spacing: -0.025em;
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

/* Sections */
section {
    padding: 100px 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 1)), url('static/assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    text-align: left;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.4);
}

/* Stats Strip */
.stats-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 3rem;
    margin-top: -100px;
    box-shadow: var(--shadow-strong);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Research Cards */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

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

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(37, 99, 235, 0.3);
}

.glass-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-strong);
}

.project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.project-content {
    padding: 2rem;
}

.project-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.member-card {
    text-align: center;
}

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 1.5rem;
    background-image: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
    border: 4px solid white;
    box-shadow: var(--shadow-soft);
}

.member-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.member-card.active {
    transform: translateY(-5px);
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.member-card.active .member-info {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.member-card {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.member-card:hover {
    border-color: var(--border);
    border-radius: 16px;
    background: #fdfdfd;
}

/* Collaborators Ribbon */
.collaborators-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.collaborators-wrapper::before,
.collaborators-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.collaborators-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(241, 245, 249, 1), transparent);
}
.collaborators-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(241, 245, 249, 1), transparent);
}

.collaborators-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
}

.collaborators-track:hover {
    animation-play-state: paused;
}

.collab-group {
    display: flex;
    gap: 5rem;
    padding-right: 5rem;
    align-items: center;
}

.collab-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-muted);
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    cursor: pointer;
    white-space: nowrap;
}

.collab-logo:hover {
    filter: grayscale(0%) opacity(1);
    color: var(--text-main);
    transform: scale(1.05);
}

.collab-logo i {
    font-size: 2.5rem;
    color: var(--accent-blue);
}

@keyframes scroll-marquee {
    to {
        transform: translateX(-50%);
    }
}



/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 6rem 2rem 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h5 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5rem;
    padding-top: 2.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Awards Section */
.award-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: -1px; /* Overlap borders to create the stacked table look */
    text-align: left;
    transition: background 0.2s ease;
}

.award-box:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.award-box:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.award-box:hover {
    background: #f8fafc;
}

.award-box h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.award-date {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1rem;
}

.award-details {
    list-style-type: none;
    padding-left: 0;
}

.award-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.award-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
}

/* Responsive */
@media (max-width: 960px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .hero { height: auto; padding: 160px 2rem 100px; }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
}

