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

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

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #0066cc;
}

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

/* Header Section */
.header {
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.header-text {
    flex: 1;
    max-width: 500px;
}

.header-image {
    flex-shrink: 0;
    text-align: center;
}

.header-email {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.header-email a {
    color: #0066cc;
    text-decoration: none;
}

.header-email a:hover {
    text-decoration: underline;
}

.header-image img {
    width: 380px;
    border-radius: 4px;
    object-fit: cover;
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.affiliation {
    font-size: 1rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.header-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.header-intro a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-intro a:hover {
    color: #004499;
}

.header-social-links {
    margin-top: 1rem;
}

.header-social-link {
    color: #0066cc;
    text-decoration: none;
    margin-right: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.header-social-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Header Two Columns Layout */
.header-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.header-column {
    min-width: 0;
}

.header-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.header-interest-list {
    list-style-type: disc;
    margin-left: 1.2rem;
    font-size: 0.95rem;
}

.header-interest-list li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.5;
}

.header-education-item {
    margin-bottom: 1.2rem;
}

.header-education-item:last-child {
    margin-bottom: 0;
}

.header-education-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
    gap: 1rem;
}

.header-degree {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.header-year {
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.header-institution {
    color: #666;
    font-size: 0.9rem;
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* About Section */
.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #444;
}

.subsection {
    margin-top: 2rem;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.interest-list {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.interest-list li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.education-item:last-child {
    border-bottom: none;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.degree {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.year {
    color: #888;
    font-size: 0.95rem;
}

.institution {
    color: #666;
    margin-bottom: 0.3rem;
}

.education-detail {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

/* Publications */
.publication-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.4;
}

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

.publication-venue {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-links {
    margin-top: 0.5rem;
}

.publication-link {
    color: #0066cc;
    text-decoration: none;
    margin-right: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.publication-link:hover {
    color: #004499;
    text-decoration: underline;
}

.talk-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.talk-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Talks */
.talk-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.talk-item:last-child {
    border-bottom: none;
}

.talk-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.talk-venue {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Teaching */
.teaching-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.teaching-item:last-child {
    border-bottom: none;
}

.teaching-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.course-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.teaching-role {
    color: #666;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

/* Service */
.service-list {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.service-list li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Contact */
.contact-info {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 0.8rem;
    color: #555;
}

.social-links {
    margin-top: 1.5rem;
}

.social-link {
    color: #0066cc;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    color: #888;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-text {
        max-width: 100%;
    }

    .header-image img {
        width: 220px;
    }

    .header-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .name {
        font-size: 2rem;
    }

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

    .subsection-title {
        font-size: 1.2rem;
    }

    .education-header,
    .teaching-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .year {
        margin-top: 0.2rem;
    }

    .header {
        padding: 2rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #0066cc;
    color: #fff;
}
