:root {
    /* Premium Light Theme Colors */
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.15);
    --accent-cyan-dark: #0891b2;
    
    --accent-navy: #0f172a;
    --accent-navy-light: #1e293b;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, rgba(0,0,0,0) 60%);
    z-index: -1;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-bg-2 {
    top: auto;
    bottom: -20%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(0,0,0,0) 60%);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.section {
    padding: 100px 0;
}

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

.bg-subtle {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glass-shadow);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 12px 40px 0 rgba(34, 211, 238, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-cyan);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-cyan-dark);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-t {
    color: var(--accent-cyan);
    font-size: 1.8rem;
}

.logo-lab {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-links .btn {
    color: #000;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

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

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.research-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.research-card p {
    color: var(--text-secondary);
}

/* Publications */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pub-item {
    display: flex;
    gap: 32px;
    padding: 32px;
}

.pub-year {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0.8;
}

.pub-details {
    flex: 1;
}

.pub-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pub-authors {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pub-venue {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.pub-link:hover {
    text-decoration: underline;
}

/* Team Section */
.team-role-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.pi-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto 80px;
}

.team-card {
    text-align: center;
    padding: 40px 32px;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 3px solid rgba(34, 211, 238, 0.3);
    padding: 4px;
}

.pi-photo {
    width: 200px;
    height: 200px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-navy-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 16px;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.team-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.team-social a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 0;
    background: var(--bg-alt);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-address {
    margin-top: 24px !important;
    font-size: 0.9rem;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-cyan);
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .pub-item {
        flex-direction: column;
        gap: 16px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   GLASSMORPHISM OVERHAUL (VARIANT 1)
   ========================================= */

/* 1. Animated Mesh Gradient Background */
body {
    background: linear-gradient(-45deg, #f0fdfa, #e0f2fe, #f0f9ff, #f8fafc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Base glowing orbs for extra glass refraction */
body::before {
    content: '';
    position: fixed;
    top: 20%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: float-slow 10s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: 10%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: float-slow 12s ease-in-out infinite alternate-reverse;
}

/* 2. Frosted Glass Cards (Overrides for legacy.css) */
.card, .item, .pub, .notice, .section.alt {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
    border-radius: 20px !important;
}

/* Remove solid background colors from nested elements */
.item {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Clean up hero section backgrounds */
.page-hero, .hero {
    background: transparent !important;
    border-bottom: none !important;
}

/* 3. Glass Navbar */
.navbar.glass-effect {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

/* 4. Enhanced Hover Micro-animations */
.card:hover, .pub:hover {
    transform: translateY(-6px) !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    box-shadow: 0 16px 40px 0 rgba(6, 182, 212, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 5. Mission Card Images */
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.02);
}

/* =========================================
   PUBLICATIONS PAGE (year groups, filters, search)
   ========================================= */
.pub-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pub-search {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.pub-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.pub-search input::placeholder { color: var(--text-secondary); }

.pub-search input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.pub-search i,
.pub-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn.active {
    background: var(--accent-cyan);
    color: #fff;
    border-color: var(--accent-cyan);
}

.pub-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.year-group { margin-bottom: 40px; }

.year-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.year-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.year-heading .year-num { color: var(--accent-cyan); }

.pub-entry {
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    margin-bottom: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pub-entry:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 16px 40px 0 rgba(6, 182, 212, 0.12);
}

.pe-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.pe-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.pe-title a:hover { color: var(--accent-cyan); }

.pe-authors {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.pe-authors strong { color: var(--text-primary); font-weight: 700; }

.pe-venue {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-style: italic;
    margin-bottom: 14px;
}

.pe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pe-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-journal  { background: rgba(6, 182, 212, 0.12);  color: var(--accent-cyan-dark); }
.badge-conf     { background: rgba(129, 140, 248, 0.14); color: #6366f1; }
.badge-book     { background: rgba(16, 185, 129, 0.16); color: #059669; }
.badge-chapter  { background: rgba(16, 185, 129, 0.10); color: #10b981; }
.badge-preprint { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.badge-other    { background: rgba(100, 116, 139, 0.14); color: #475569; }
.badge-arxiv    { background: rgba(100, 116, 139, 0.10); color: #64748b; text-transform: none; font-weight: 600; }

.pe-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.pe-link:hover {
    background: var(--accent-cyan);
    color: #fff;
    border-color: var(--accent-cyan);
}

.pe-link i,
.pe-link svg { width: 13px; height: 13px; }

.no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 20px;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .pub-controls { flex-direction: column; align-items: stretch; }
    .pub-filters { justify-content: flex-start; }
}

/* Justify bio paragraphs in person/team cards for a cleaner block of text */
.person p {
    text-align: justify;
    text-justify: inter-word;
}

/* Animated particle-constellation background behind the hero */
.hero-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Keep hero content above the constellation */
.hero .hero-inner { position: relative; z-index: 2; }

/* Mobile hero: stack into one centered column (inline grid style needs overriding) */
@media (max-width: 920px) {
    .hero .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        text-align: center;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
    .hero-massive-logo { order: -1; }
    .hero-massive-logo img { max-width: 230px !important; }
    .hero .eyebrow { align-self: center !important; }
    .hero-actions { justify-content: center; }
}

@media (max-width: 600px) {
    .hero .h1 { font-size: 32px !important; letter-spacing: -0.8px; }
    .hero .lead { font-size: 17px !important; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn, .hero-actions .ghost { width: 100%; justify-content: center; }
}
