/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2d3748;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2d3748;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="neuralNet" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="2" fill="rgba(74,144,226,0.3)"/><circle cx="80" cy="30" r="1.5" fill="rgba(74,144,226,0.2)"/><circle cx="50" cy="70" r="2.5" fill="rgba(74,144,226,0.4)"/><circle cx="10" cy="85" r="1.8" fill="rgba(74,144,226,0.3)"/><line x1="20" y1="20" x2="80" y2="30" stroke="rgba(74,144,226,0.15)" stroke-width="0.5"/><line x1="80" y1="30" x2="50" y2="70" stroke="rgba(74,144,226,0.15)" stroke-width="0.5"/><line x1="50" y1="70" x2="10" y2="85" stroke="rgba(74,144,226,0.15)" stroke-width="0.5"/><line x1="20" y1="20" x2="50" y2="70" stroke="rgba(74,144,226,0.1)" stroke-width="0.3"/></pattern></defs><rect width="400" height="400" fill="url(%23neuralNet)"/></svg>');
    animation: float 40s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><defs><pattern id="aiNodes" patternUnits="userSpaceOnUse" width="150" height="150"><circle cx="30" cy="30" r="1" fill="rgba(16,185,129,0.2)"/><circle cx="120" cy="45" r="1.5" fill="rgba(16,185,129,0.3)"/><circle cx="75" cy="100" r="1.2" fill="rgba(16,185,129,0.25)"/><circle cx="15" cy="130" r="0.8" fill="rgba(16,185,129,0.2)"/><circle cx="135" cy="120" r="1.3" fill="rgba(16,185,129,0.3)"/><line x1="30" y1="30" x2="120" y2="45" stroke="rgba(16,185,129,0.1)" stroke-width="0.3"/><line x1="120" y1="45" x2="75" y2="100" stroke="rgba(16,185,129,0.1)" stroke-width="0.3"/><line x1="75" y1="100" x2="15" y2="130" stroke="rgba(16,185,129,0.08)" stroke-width="0.3"/><line x1="75" y1="100" x2="135" y2="120" stroke="rgba(16,185,129,0.08)" stroke-width="0.3"/><line x1="30" y1="30" x2="75" y2="100" stroke="rgba(16,185,129,0.06)" stroke-width="0.2"/></pattern></defs><rect width="600" height="600" fill="url(%23aiNodes)"/></svg>');
    animation: float 60s ease-in-out infinite reverse;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #e0e7ff;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #c7d2fe;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 5;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: #ffffff;
    color: #2d3748;
    border-color: #ffffff;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2d3748;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure hero text content stays above decorative layers */
.hero-content {
    position: relative;
    z-index: 4;
}

.science-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Virus System Animation */
.virus-system {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    overflow: visible;
    z-index: 2;
}

.virus-system::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: systemPulse 8s ease-in-out infinite;
}

.virus-system::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(74, 144, 226, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: systemPulse 8s ease-in-out infinite 2s;
}

.immune-cell {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #4a90e2 0%, #2d5aa0 50%, #1e3a8a 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 25px #4a90e2, 0 0 50px #2d5aa0;
    animation: cellPulse 4s ease-in-out infinite;
    border: 3px solid rgba(74, 144, 226, 0.3);
}

.immune-cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cellRipple 3s ease-in-out infinite;
}

.immune-cell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cellRipple 3s ease-in-out infinite 1.5s;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 80px; height: 80px; animation: rotate 3s linear infinite; }
.orbit-2 { width: 100px; height: 100px; animation: rotate 4s linear infinite; }
.orbit-3 { width: 120px; height: 120px; animation: rotate 5s linear infinite; }
.orbit-4 { width: 140px; height: 140px; animation: rotate 6s linear infinite; }
.orbit-5 { width: 180px; height: 180px; animation: rotate 8s linear infinite; }
.orbit-6 { width: 220px; height: 220px; animation: rotate 10s linear infinite; }
.orbit-7 { width: 260px; height: 260px; animation: rotate 12s linear infinite; }
.orbit-8 { width: 300px; height: 300px; animation: rotate 15s linear infinite; }
.orbit-9 { width: 340px; height: 340px; animation: rotate 18s linear infinite; }

.virus {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Virus size diversity based on real-world characteristics */
.coronavirus {
    width: 24px;
    height: 24px;
    color: #f59e0b;
    animation-delay: 0s;
}

.influenza {
    width: 20px;
    height: 20px;
    color: #ef4444;
    animation-delay: 0.2s;
}

.adenovirus {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    animation-delay: 0.4s;
}

.rhinovirus {
    width: 16px;
    height: 16px;
    color: #10b981;
    animation-delay: 0.6s;
}

.herpesvirus {
    width: 32px;
    height: 32px;
    color: #8b5cf6;
    animation-delay: 0.8s;
}

.rotavirus {
    width: 22px;
    height: 22px;
    color: #06b6d4;
    animation-delay: 1s;
}

.papillomavirus {
    width: 18px;
    height: 18px;
    color: #f97316;
    animation-delay: 1.2s;
}

.retrovirus {
    width: 26px;
    height: 26px;
    color: #ec4899;
    animation-delay: 1.4s;
}

.bacteriophage {
    width: 30px;
    height: 30px;
    color: #84cc16;
    animation-delay: 1.6s;
}

.virus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px currentColor) brightness(1.1) contrast(1.1);
    animation: virusFloat 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.virus:hover img {
    filter: drop-shadow(0 0 12px currentColor) brightness(1.2) contrast(1.2);
    transform: scale(1.1);
}


/* Virus animations */
@keyframes virusFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 8px currentColor) brightness(1.1) contrast(1.1);
    }
    50% { 
        transform: translateX(-50%) translateY(-3px) scale(1.05) rotate(5deg);
        filter: drop-shadow(0 0 12px currentColor) brightness(1.2) contrast(1.2);
    }
}

@keyframes virusRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes systemPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.1;
    }
}

@keyframes cellPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 25px #4a90e2, 0 0 50px #2d5aa0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 35px #4a90e2, 0 0 70px #2d5aa0;
    }
}

@keyframes cellRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Molecular Figure Placeholders */
.figure-placeholder {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    color: #4a5568;
    position: relative;
    overflow: hidden;
}

.figure-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(59,130,246,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(16,185,129,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(245,158,11,0.1)"/><circle cx="70" cy="70" r="2.5" fill="rgba(239,68,68,0.1)"/><path d="M20,20 L40,60" stroke="rgba(59,130,246,0.2)" stroke-width="1"/><path d="M40,60 L70,70" stroke="rgba(16,185,129,0.2)" stroke-width="1"/><path d="M70,70 L80,30" stroke="rgba(245,158,11,0.2)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Research Section */
.research {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M50,50 Q100,20 150,50 Q100,80 50,50" stroke="rgba(59,130,246,0.1)" stroke-width="2" fill="none"/><path d="M30,100 Q80,70 130,100 Q80,130 30,100" stroke="rgba(16,185,129,0.1)" stroke-width="2" fill="none"/><path d="M70,150 Q120,120 170,150 Q120,180 70,150" stroke="rgba(245,158,11,0.1)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.research-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    display: block;
    padding: 2rem;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #10b981, #f59e0b, #ef4444);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.1;
    z-index: -1;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.research-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.research-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-list li {
    position: relative;
    margin: 0 0 0.6rem 1.25rem;
    color: #4b5563;
}

.research-list li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #34d399); /* blue→green */
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.research-card .learn-more {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(45, 55, 72, 0.1);
    border: 1px solid rgba(45, 55, 72, 0.2);
}

.research-card .learn-more:hover {
    color: #ffffff;
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 55, 72, 0.3);
}

.research-card .learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.research-card:hover .learn-more i {
    transform: translateX(3px);
}

/* Research Image Styles */
/* Image placeholders removed for research cards */

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

.research-content {
    padding: 0;
}

.research-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


/* Mission Section */
.mission {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="60" r="0.8" fill="rgba(255,255,255,0.06)"/><circle cx="70" cy="70" r="1.2" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="80" r="0.9" fill="rgba(255,255,255,0.07)"/><path d="M10,10 Q50,5 90,10" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/><path d="M5,50 Q25,45 45,50" stroke="rgba(255,255,255,0.08)" stroke-width="0.5" fill="none"/></svg>');
    animation: float 25s ease-in-out infinite;
}

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

.mission h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.mission p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #c7d2fe;
}

.mission-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    color: #a5b4fc;
    margin: 0;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: white;
}

.team-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px dashed #d1d5db;
}

.team-avatar {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.team-avatar.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.team-avatar.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #6b7280;
}

/* Publications Section */
.publications {
    padding: 80px 0;
    background: #f8fafc;
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(236, 245, 255, 0.5) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.gallery-thumb {
    width: 100%;
    padding-top: 66%;
    background:
        radial-gradient( farthest-side at 20% 30%, rgba(59,130,246,0.15), transparent 60% ),
        radial-gradient( farthest-side at 80% 40%, rgba(16,185,129,0.15), transparent 60% ),
        radial-gradient( farthest-side at 50% 80%, rgba(245,158,11,0.15), transparent 60% ),
        linear-gradient(135deg, #eef2ff, #f8fafc);
    position: relative;
}

.gallery-thumb::after {
    content: 'Image Placeholder';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #64748b;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.gallery-item figcaption {
    padding: 0.9rem 1rem 1.1rem;
    color: #475569;
    font-size: 0.95rem;
}

/* If real images are used instead of placeholders */
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.gallery-desc {
    margin: 0;
    line-height: 1.5;
    color: #6b7280;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pub-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 1rem 1.25rem;
}

.pub-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.pub-img {
    width: 70%;
    aspect-ratio: 3 / 4; /* book cover ratio */
    object-fit: cover;
    display: block;
    background: #f1f5f9;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.pub-item figcaption {
    padding: 0.9rem 1rem 1.1rem;
}

.pub-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.pub-meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.pub-link {
    color: inherit;
    text-decoration: none;
}

.pub-link:hover .pub-title {
    color: #2d3748;
}

@media (max-width: 992px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: #2563eb;
    margin-right: 1rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    color: #9ca3af;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Prevent the animation from blocking taps on mobile */
    .hero-visual,
    .virus-system,
    .virus-system * {
        pointer-events: none;
    }

    .virus-system {
        width: 300px;
        height: 300px;
    }

    .orbit-1 { width: 60px; height: 60px; }
    .orbit-2 { width: 75px; height: 75px; }
    .orbit-3 { width: 90px; height: 90px; }
    .orbit-4 { width: 105px; height: 105px; }
    .orbit-5 { width: 135px; height: 135px; }
    .orbit-6 { width: 165px; height: 165px; }
    .orbit-7 { width: 195px; height: 195px; }
    .orbit-8 { width: 225px; height: 225px; }
    .orbit-9 { width: 255px; height: 255px; }

    .immune-cell {
        width: 40px;
        height: 40px;
    }

    .coronavirus { width: 18px; height: 18px; }
    .influenza { width: 15px; height: 15px; }
    .adenovirus { width: 21px; height: 21px; }
    .rhinovirus { width: 12px; height: 12px; }
    .herpesvirus { width: 24px; height: 24px; }
    .rotavirus { width: 16px; height: 16px; }
    .papillomavirus { width: 13px; height: 13px; }
    .retrovirus { width: 19px; height: 19px; }
    .bacteriophage { width: 22px; height: 22px; }

    .research-vertical {
        gap: 2rem;
    }
    
    .research-card {
        flex-direction: column;
        text-align: center;
    }
    
    .research-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .research-content {
        padding: 1.5rem;
    }

    .ai-subcategories {
        grid-template-columns: 1fr;
    }

    .mission-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }


    .mission h2 {
        font-size: 2rem;
    }

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

    .virus-system {
        width: 250px;
        height: 250px;
    }

    .orbit-1 { width: 50px; height: 50px; }
    .orbit-2 { width: 62px; height: 62px; }
    .orbit-3 { width: 75px; height: 75px; }
    .orbit-4 { width: 87px; height: 87px; }
    .orbit-5 { width: 112px; height: 112px; }
    .orbit-6 { width: 137px; height: 137px; }
    .orbit-7 { width: 162px; height: 162px; }
    .orbit-8 { width: 187px; height: 187px; }
    .orbit-9 { width: 212px; height: 212px; }

    .immune-cell {
        width: 35px;
        height: 35px;
    }

    .coronavirus { width: 16px; height: 16px; }
    .influenza { width: 13px; height: 13px; }
    .adenovirus { width: 18px; height: 18px; }
    .rhinovirus { width: 10px; height: 10px; }
    .herpesvirus { width: 20px; height: 20px; }
    .rotavirus { width: 14px; height: 14px; }
    .papillomavirus { width: 11px; height: 11px; }
    .retrovirus { width: 16px; height: 16px; }
    .bacteriophage { width: 18px; height: 18px; }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Safety: prevent oversized images from overflowing on static hosts */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure anchored sections account for fixed navbar height */
:root {
    --nav-offset: 90px;
}

html { scroll-padding-top: var(--nav-offset); }
body { scroll-padding-top: var(--nav-offset); }

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.research-card {
    animation: fadeInUp 0.6s ease-out;
}

.research-card:nth-child(2) {
    animation-delay: 0.2s;
}

.research-card:nth-child(3) {
    animation-delay: 0.4s;
}
