/* LAMB Lab Website - Inspired by Princeton AI Design */

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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

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

/* Header - Princeton AI Style Dark Header */
.site-header {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.site-title:hover {
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: 400;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    opacity: 1;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

/* Hero Section - Full Screen Like Princeton AI */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('thumbs/brain1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2), rgba(0,0,0,0.15));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0;
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Hero Subtitle Section */
.hero-subtitle-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
}

.hero-subtitle-content {
    text-align: justify;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-subtitle-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle-text:last-child {
    margin-bottom: 0;
}

.hero-image {
    display: none; /* Hidden since we're using background image */
}

/* Main Content Sections */
.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: #2c2c2c;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.7;
    text-align: justify;
}

/* Card Grid Layout - Princeton AI Style */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.research-card,
.center-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.research-card:hover,
.center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #000;
    opacity: 0.8;
}

.card-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(3px);
}

/* Workshop Links */
.workshop-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.workshop-links .card-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.workshop-links .card-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.workshop-links .card-link::after {
    display: none;
}

/* Workshop List */
.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.workshop-item {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.workshop-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.workshop-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Sports Club */
.sports-club-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    margin-top: 3rem;
}

.sports-image {
    flex-shrink: 0;
}

.sports-image img {
    width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.sports-content {
    flex: 1;
}

.sports-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sports-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Research Topics Section */
.research-topics {
    background: #f8f9fa;
    padding: 4rem 0;
    margin: 4rem 0;
}

.research-questions {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.research-question {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.research-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.research-question p {
    color: #666;
    line-height: 1.6;
}

/* News Section */
.news-section {
    margin: 4rem 0;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.news-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    width: 1100px;
    margin: 0 auto;
}

.news-item:hover {
    transform: translateY(-3px);
}

.news-image {
    width: 400px;
    height: 250px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-date {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #0056b3;
}

/* Page-specific top spacing - consistent across all pages */
.people-page,
.gallery-page,
.teaching-page,
.resource-page-spacing {
    padding-top: 2rem;
}


/* Reduce top margin for first section on people page */
.people-page .people-section:first-child {
    margin-top: 0;
}


.people-section {
    margin: 3rem 0;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.people-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.person-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.person-photo {
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #ddd;
    display: block;
}

.person-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.person-title {
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.person-position {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.person-contact {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.person-description {
    color: #666;
    line-height: 1.6;
    text-align: center;
    font-size: 0.95rem;
}

/* Publications Page */
.publication-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Publications page specific styles */
.publications-page {
    padding-top: 6rem;
}

.publications-page .section {
    margin-bottom: 0.5rem;
}

.publications-page .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.publications-page .section-header {
    text-align: left;
    margin-bottom: 1rem;
}

/* Resource content sections specific styles */
.resource-section {
    margin-bottom: 1rem;
}

.resource-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resource-section .section-header {
    text-align: left;
    margin-bottom: 1rem;
}

/* Reduce spacing between resource page title and first section */
.people-page .people-section + .resource-section {
    margin-top: 1rem;
}

/* Reduce top margin for first section on resource page */
.resource-page-spacing .people-section:first-child {
    margin-top: 0;
}



/* Resource list styling */
.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.3rem;
    padding: 0.3rem 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.resource-list a {
    color: #6b7280;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.resource-list a:hover {
    color: #374151;
    text-decoration: underline;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-authors {
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.publication-venue {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.publication-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.publication-status {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Teaching Page */
.course-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #333;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-level,
.course-semester {
    background: #333;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.course-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.course-topics h4 {
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.course-topics ul {
    list-style: none;
    padding: 0;
}

.course-topics li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.course-topics li:before {
    content: '•';
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.course-topics li:last-child {
    border-bottom: none;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox .close:hover {
    opacity: 0.7;
}

.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}


.btn-primary {
    background: #333;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background: #555;
}

/* Call-to-Action Section */
.cta-section {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin: 4rem 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #333;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #555;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: white;
    padding: 1.5rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background: #666;
    margin-bottom: 0.6rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Make email and map links lighter and more visible */
.footer-section a[href^="mailto:"],
.footer-section a[href*="goo.gl"] {
    color: #4a9eff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a[href^="mailto:"]:hover,
.footer-section a[href*="goo.gl"]:hover {
    color: #66b3ff !important;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 0.8rem;
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
}

/* Regular header for non-homepage */
.regular-header {
    position: sticky;
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        position: relative;
        background: #000;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-section {
        height: 70vh;
        min-height: 400px;
        background-attachment: scroll;
    }

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

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

    .hero-subtitle-section {
        padding: 2rem 0;
    }

    .hero-subtitle-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .news-item {
        flex-direction: column;
    }

    .news-item {
        width: 100%;
        max-width: 600px;
    }
    
    .news-image {
        width: 250px;
        height: auto;
        max-height: 180px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .people-grid {
        grid-template-columns: 1fr;
    }
    
    .people-grid-three {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sports-club-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .sports-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

    .hero-subtitle-section {
        padding: 1.5rem 0;
    }

    .hero-subtitle-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
} 








