/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: normal;
    line-height: 1.2;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
}

/* Lists */
ul {
    margin-bottom: 0.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Header and Navigation */
header {
    border-bottom: 1px solid #ccc;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #2c3e50;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: #3498db;
    border-bottom-color: #3498db;
    text-decoration: none;
}

/* Main content */
main {
    min-height: calc(100vh - 180px);
}

/* Experience and Education items */
.experience-item,
.education-item {
    margin-bottom: 1.5rem;
}

.experience-header,
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.company,
.school {
    font-weight: bold;
    font-size: 1.1rem;
}

.position,
.degree {
    font-style: italic;
}

.location,
.date {
    color: #555;
    font-size: 0.9rem;
    text-align: right;
    flex-shrink: 0;
    margin-left: 1rem;
}

.experience-item ul {
    margin-top: 0.5rem;
    padding-left: 2rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

/* Publications */
.publication-item {
    margin-bottom: 1.5rem;
}

.publication-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.publication-authors {
    font-style: italic;
    margin-bottom: 0.25rem;
}

.publication-venue {
    color: #555;
    font-size: 0.9rem;
}

.doi-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* Awards */
.awards-section ul {
    list-style: none;
    padding: 0;
}

.awards-section li {
    margin-bottom: 1rem;
}

.award-name {
    font-weight: bold;
}

.award-org {
    color: #555;
    font-size: 0.9rem;
}

/* Contact info */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid #ccc;
    color: #555;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .location,
    .date {
        text-align: left;
        margin-left: 0;
    }
}