/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
}

/* Main container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Bio section */
.bio-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.bio-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #555;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.bio-photo {
    display: flex;
    justify-content: center;
}

.headshot {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Research section */
.research-section {
    margin-top: 2rem;
}

.research-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.research-section h2:first-child {
    margin-top: 0;
}

/* Paper items */
.paper-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f5f5f5;
}

.paper-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.paper-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.paper-title-link {
    color: #333;
    text-decoration: none;
}

.paper-title-link:hover {
    color: #666;
    text-decoration: underline;
}

.abstract-container {
    margin-bottom: 1rem;
}

.abstract-toggle {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.abstract-toggle:hover {
    background-color: #f8f8f8;
    border-color: #bbb;
}

.abstract-hidden {
    display: none;
}

.paper-coauthors {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.paper-journal {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.paper-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.paper-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.paper-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.paper-link:hover {
    background-color: #f8f8f8;
    border-color: #bbb;
}

.coauthor-link {
    color: #333;
    text-decoration: none;
}

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

.paper-coverage {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.coverage-link {
    color: #666;
    text-decoration: none;
}

.coverage-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .bio-text h1 {
        font-size: 2rem;
    }
    
    .bio-description {
        font-size: 1rem;
    }
    
    .headshot {
        width: 180px;
        height: 225px;
    }
    
    .research-section h2 {
        font-size: 1.5rem;
    }
    
    .paper-title {
        font-size: 1.2rem;
    }
    
    .paper-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .bio-text h1 {
        font-size: 1.75rem;
    }
    
    .headshot {
        width: 160px;
        height: 200px;
    }
    
    .paper-links {
        justify-content: center;
    }
}

/* CV styles */
.cv-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.cv-download {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cv-institution {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cv-details {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.cv-publication {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.cv-presentation {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.cv-award {
    font-size: 1rem;
    color: #555;
}

.cv-service {
    font-size: 1rem;
    color: #555;
}

/* Print styles */
@media print {
    .navbar {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .paper-links {
        display: none;
    }
}