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

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #2c5aa0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.name {
    font-size: 1.5rem;
    font-weight: 400;
}

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

.nav-links a {
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ddd;
    text-decoration: none;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 400;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
}

/* About Section */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.headshot {
    width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-info p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Research Section */
.paper {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.authors {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}

.journal {
    color: #555;
    margin-bottom: 0.5rem;
}

.abstract {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #2c5aa0;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #1a3a6a;
    text-decoration: none;
}

/* Teaching Section */
.course-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

.course-list p {
    margin-top: 0.5rem;
    color: #555;
}

/* CV Section */
.cv-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.cv-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.cv-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-size: 1.2rem;
}

/* Contact Section */
#contact p {
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .about-content {
        flex-direction: column;
    }

    .headshot {
        width: 200px;
        align-self: center;
    }

    .paper-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .name {
        font-size: 1.1rem;
    }
}
