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

:root {
    --bg: #fafafa;
    --white: #ffffff;
    --text: #1a1a2e;
    --text-light: #4a4a6a;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #d1fae5;
    --purple: #7c3aed;
    --orange: #f59e0b;
    --blue: #3b82f6;
    --border: #e5e7eb;
    @import url('https://fonts.googleapis.com/css2?family=Ysabeau:wght@400;500;600;700&display=swap');
}

body {
    font-family: 'Ysabeau', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation - Simple & Clean */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
    font-weight: 600;
}

/* Nav Tagline */
.nav-inner .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 2px solid var(--accent);
    padding-left: 12px;
}

@media (max-width: 640px) {
    .logo-container {
        gap: 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-inner .tagline {
        font-size: 0.6rem;
        padding-left: 8px;
        letter-spacing: 0.5px;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 80px 32px 32px;
}

.sidebar.active {
    right: 0;
}

.sidebar .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-content a {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-content a:hover,
.sidebar-content a.active {
    color: var(--accent);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    display: none;
}

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

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

/* Nav Tagline */
.nav-inner .tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Main Content -  Lab Style */
.main-content {
    padding: 120px 32px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.lab-header {
    text-align: center;
    margin-bottom: 60px;
}

.lab-header h1 {
    font-family: 'Ysabeau', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text);
}

.tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-light);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.lab-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.lab-card:hover {
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.card-svg {
    width: 140px;
    height: 120px;
    margin-bottom: 16px;
}

.card-svg svg {
    width: 100%;
    height: 100%;
}

/* Card Colors */
.card-svg.red { color: #ef4444; }
.card-svg.orange { color: #f97316; }
.card-svg.purple { color: #a855f7; }
.card-svg.green { color: #22c55e; }
.card-svg.blue { color: #3b82f6; }
.card-svg.teal { color: #14b8a6; }

.lab-card h3 {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

/* Hero - Full Screen with Animated Cells */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Animated biological cell background */
.hero-cells {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.cell {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(1px);
}

.cell-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    top: 15%;
    left: 10%;
    animation: cell-float 8s ease-in-out infinite;
}

.cell-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0.1) 100%);
    top: 25%;
    right: 15%;
    animation: cell-float 10s ease-in-out infinite 1s;
}

.cell-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 100%);
    bottom: 30%;
    left: 20%;
    animation: cell-float 12s ease-in-out infinite 2s;
}

.cell-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    bottom: 20%;
    right: 10%;
    animation: cell-float 9s ease-in-out infinite 0.5s;
}

.cell-5 {
    width: 40px;
    height: 40px;
    background: var(--accent);
    opacity: 0.3;
    top: 60%;
    right: 25%;
    animation: cell-float 7s ease-in-out infinite 1.5s;
}

.cell-6 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, transparent 100%);
    top: 10%;
    right: 30%;
    animation: cell-float 15s ease-in-out infinite;
}

@keyframes cell-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-content h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Section Styles */
.section {
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* Research Areas */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.research-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.research-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.research-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Publications */
.pub-section {
    background: var(--white);
    padding: 100px 32px;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.pub-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.pub-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.pub-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.pub-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pub-badge {
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--white) 100%);
    padding: 100px 32px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Contact */
.contact-section {
    background: var(--text);
    color: white;
    padding: 80px 32px;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: white;
    color: var(--accent-dark);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 24px 32px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    width: 100%;
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 20px 40px;
    }
    
    .lab-header h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card-svg {
        width: 100px;
        height: 80px;
    }
    
    .lab-card h3 {
        font-size: 0.95rem;
    }
    
    .nav-inner {
        padding: 0 20px;
        height: 64px;
    }
    
    .nav-inner .tagline {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .logo {
        font-size: 1.3rem;
        padding: 6px 10px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .pub-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    /* Mobile: Card grid - single column */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    /* Mobile: Header adjustments */
    .header img {
        height: 30px;
    }
    
    .header {
        padding: 8px 16px;
    }
    
    /* Mobile: Footer adjustments */
    .footer > div {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Additional Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hero section - stack vertically on mobile */
    .hero-section {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .hero-image {
        order: -1;
        max-height: 300px;
    }
    
    /* Header adjustments */
    .header {
        padding: 8px 16px !important;
    }
    
    .header img {
        height: 65px !important;
    }
    
    .header > div > a > div:last-child {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
    }
    
    /* Lab intro section */
    .lab-intro {
        padding: 20px 16px !important;
        max-width: 100% !important;
    }
    
    .lab-intro p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .lab-intro strong {
        display: inline !important;
    }
    
    /* Main content padding */
    .main-content {
        padding: 0 16px 40px !important;
    }
    
    /* Card grid - keep 2 columns on mobile with consistent sizing */
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .lab-card {
        padding: 16px !important;
        min-height: 200px !important;
    }
    
    .lab-card > div {
        height: 130px !important;
        width: 100% !important;
    }
    
    .lab-card > div img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Footer logo size */
    .footer img {
        height: 140px !important;
    }
    
    .footer > div {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
        padding: 20px 16px !important;
    }
    
    .footer > div > div {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .footer > div > div:first-child {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .footer > div > div:first-child > div:first-child {
        height: 60px !important;
    }
    
    .footer > div > div:first-child > div:nth-child(2) {
        display: none !important;
    }
    
    .footer p {
        font-size: 0.8rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header img {
        height: 55px !important;
    }
    
    .header > div > a > div:last-child {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
    }
    
    .lab-intro p {
        font-size: 0.9rem !important;
    }
    
    .lab-card h3 {
        font-size: 0.9rem !important;
    }
    
    .hero-image {
        max-height: 250px;
    }
    
    /* Small mobile card adjustments */
    .lab-card {
        padding: 12px !important;
        min-height: 180px !important;
    }
    
    .lab-card > div {
        height: 110px !important;
    }
    
    /* Footer small mobile */
    .footer img {
        height: 120px !important;
    }
    
    .footer > div {
        padding: 16px 12px !important;
        gap: 12px !important;
    }
    
    .footer > div > div:last-child {
        gap: 8px !important;
    }
    
    .footer > div > div:last-child a {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* News grid mobile */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .news-card {
        padding: 16px !important;
    }
    
    .news-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
}

/* News section mobile styles */
@media (max-width: 768px) {
    .news-section {
        padding: 15px 12px !important;
    }
    
    .news-section h2 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
        display: block !important;
        text-align: center !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        justify-items: stretch !important;
    }
    
    .news-card {
        padding: 12px !important;
        width: 100% !important;
    }
    
    .news-card h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .news-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .news-card a {
        font-size: 0.85rem !important;
        margin-top: 8px !important;
    }
}

/* News section tablet */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Desktop: Force hide hamburger menu */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile: Show hamburger menu, hide desktop nav */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    .desktop-nav {
        display: none !important;
    }
    .desktop-social a {
        width: 32px !important;
        height: 32px !important;
    }
    .desktop-social a svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Publications Page Styles */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e3a5f;
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #4A90E2;
    border-radius: 2px;
}
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.publication-item {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #4A90E2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.publication-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
}
.publication-item .journal {
    color: #4A90E2;
    font-size: 0.9rem;
    font-weight: 500;
}
.year-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4A90E2;
    margin: 32px 0 16px;
}
@media (max-width: 768px) {
    .page-container {
        padding: 30px 20px;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .section-title::after {
        width: 80px;
        height: 3px;
    }
    .year-heading {
        font-size: 1.1rem;
        margin: 24px 0 12px;
    }
    .publication-item {
        padding: 16px 20px;
    }
    .publication-item h4 {
        font-size: 1rem;
    }
    .publication-item .journal {
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .page-container {
        padding: 20px 16px;
    }
    .section-title {
        font-size: 1.6rem;
        padding-bottom: 15px;
    }
    .publication-item {
        padding: 14px 16px;
        border-left-width: 3px;
    }
}
