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

:root {
    --color-bg: #fafafa;
    --color-text: #333;
    --color-accent: #2563eb;
    --color-light: #f3f4f6;
    --max-width: 800px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

section:last-child {
    border-bottom: none;
}

#hero {
    padding-top: 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    text-align: left;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
}

.location {
    color: #888;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.subsection {
    margin-bottom: 2rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

/* Skills List */
.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 0.5rem;
}

/* Job Listings */
.job {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.job:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-title {
    font-weight: 600;
}

.job-date {
    color: #666;
    font-size: 0.9rem;
}

.job-company {
    color: #666;
    margin-bottom: 0.5rem;
}

.job ul {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.job li {
    margin-bottom: 0.25rem;
}

/* Education */
.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-school {
    font-weight: 600;
}

.edu-date {
    color: #666;
    font-size: 0.9rem;
}

.edu-details {
    color: #555;
}

/* Publications */
.publications-list {
    margin-top: 1rem;
    margin-left: 1.25rem;
}

.publications-list li {
    margin-bottom: 1rem;
}

.publications-list a {
    color: var(--color-accent);
    text-decoration: none;
    word-break: break-all;
}

.publications-list a:hover {
    text-decoration: underline;
}

/* Resume Download Link */
.download-link {
    margin-bottom: 2rem;
}

.download-link a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.download-link a:hover {
    text-decoration: underline;
}

/* Contact */
.contact-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.contact-links a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.85rem;
}

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

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

    #hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}
