:root {
    --primary-color: #0056b3; /* Deep Blue */
    --secondary-color: #00a8e8; /* Lighter Blue */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white: #fff;
    --text-color: #555;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

/* Utilities */
.text-center { text-align: center; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); color: var(--white); }
.text-white { color: var(--white); }

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    margin-right: 15px;
}

.navbar .logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1559757175-5779524558e6?auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    height: 80vh; /* Fallback */
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    background-color: #2c3e50; /* Fallback color */
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.funding-badges {
    margin-bottom: 2rem;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0 5px;
    font-weight: 600;
}

.badge.nsf { background-color: #e6f7ff; color: #0056b3; }
.badge.nys { background-color: #fff7e6; color: #d46b08; }

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* About Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-placeholder {
    background: #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-box {
    font-size: 1.2rem;
    color: #adb5bd;
    margin-bottom: 15px;
}

.placeholder-box i {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
}

.caption {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* Research List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
}

.feature-list i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.team-member h4 {
    margin-bottom: 5px;
    color: var(--white);
}

.team-member .role {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-member .institution {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

.team-member .contribution {
    font-size: 0.85rem;
    color: var(--white);
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

/* Advisory Committee */
.advisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advisory-member {
    background: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}

.advisory-member h5 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.advisory-member p {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* Updates Page */
.page-header {
    background: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.update-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
}

.date-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0,56,179,0.3);
}

.date-badge .month { font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.date-badge .year { font-size: 0.8rem; }

.update-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.update-content h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.gallery-item .image-placeholder {
    margin-bottom: 10px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation-name: zoom;
    animation-duration: 0.3s;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Clickable image cue */
.zoomable {
    cursor: pointer;
    transition: 0.3s;
}

.zoomable:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(0,0,0,0.3) !important;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

footer .small {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; text-align: center; }
    .menu-toggle { display: block; }
    
    .content-grid { grid-template-columns: 1fr; }
    
    .timeline::before { left: 20px; }
    .update-item { padding-left: 60px; }
    .date-badge { width: 40px; height: 40px; left: 0; }
    .date-badge .month { display: none; }
    .date-badge .year { font-size: 0.7rem; }
}