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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bio Section */
.bio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.bio p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: white;
}

.bio a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s;
}

.bio a:hover {
    opacity: 0.8;
}

/* Hero Section */
#hero {
    padding: 2rem 0 1.5rem 0;
    background: linear-gradient(135deg, #5a6b82 0%, #27384d 100%);
    color: white;
}

.profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 0;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.profile-info .title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.profile-info .affiliation {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Sections */
section {
    padding: 1.5rem 0;
}

#education {
    background-color: #f8f9fa;
}

#work-in-progress {
    background-color: #f8f9fa;
}

#publications {
    background-color: #f8f9fa;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #333;
    border-bottom: 3px solid #4a90e2;
    display: inline-block;
    padding-bottom: 0.3rem;
}

section h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #444;
}

section p {
    margin-bottom: 0.8rem;
    color: #555;
}

/* Education */

.education-item {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background-color: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education-item-content {
    flex: 1;
    min-width: 0;
}

.education-item strong {
    color: #333;
    font-size: 1rem;
}

.education-item-content p {
    color: #666;
    margin-top: 0.2rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.education-item-content .education-period,
.work-item-content .work-period {
    margin: 0.45rem 0 0;
    color: #4a90e2;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.education-item-logo {
    flex-shrink: 0;
    margin-left: auto;
}

.education-item-logo img {
    display: block;
    width: 82px;
    height: auto;
    max-width: 100%;
}

/* Work in Progress */
.work-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background-color: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.work-item-logo {
    flex-shrink: 0;
    margin-left: auto;
}

.work-item-logo img {
    width: 82px;
    height: auto;
    display: block;
}

.work-item-content {
    flex: 1;
}

.work-item-heading {
    min-width: 0;
    margin-bottom: 0.35rem;
}

.work-item-heading h3 {
    margin: 0;
    color: #333;
}

.work-description {
    margin-bottom: 0;
    color: #555;
    font-size: 0.95rem;
}

.work-description a {
    color: #0066cc;
    text-decoration: underline;
}

/* Publications */
.publication-year {
    margin-top: 1.5rem;
}

.publication-year:first-child {
    margin-top: 0;
}

.year-heading {
    font-size: 1.3rem;
    color: #4a90e2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #e0e0e0;
}

.publication-year > .year-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.36rem;
    cursor: pointer;
    list-style: none;
    margin-top: 0;
}

.publication-year > .year-heading::-webkit-details-marker {
    display: none;
}

.publication-year > .year-heading::after {
    content: "▾";
    font-size: 1.28em;
    line-height: 1;
    color: #7a8796;
    transition: transform 0.2s ease;
}

.publication-year[open] > .year-heading::after {
    transform: rotate(180deg);
}

.publication-year > .year-heading:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 3px;
    border-radius: 4px;
}

.publication-year:not([open]) > .year-heading {
    margin-bottom: 0;
}

.publication-year-content {
    margin-top: 1rem;
}

.publication {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.publication-content {
    flex: 1;
}

.publication h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

.publication .authors strong {
    color: #0066cc;
}

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

.publication .description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.publication-abstract {
    margin-top: 0.85rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e6ebf2;
}

.publication-abstract summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: #5f6b7a;
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
    transition: color 0.2s ease;
}

.publication-abstract summary::-webkit-details-marker {
    display: none;
}

.publication-abstract summary::after {
    content: "▾";
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.publication-abstract[open] summary::after {
    transform: rotate(180deg);
}

.publication-abstract summary:hover {
    color: #3f4b59;
}

.publication-abstract summary:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 3px;
    border-radius: 4px;
}

.publication-abstract p {
    margin: 0.75rem 0 0;
    color: #4f5d6b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.paper-links {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.paper-links a {
    text-decoration: none;
    color: #0066cc;
    padding: 0.4rem 1rem;
    border: 1px solid #0066cc;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.paper-links a:hover {
    background-color: #0066cc;
    color: white;
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

footer p {
    margin: 0.2rem 0;
    color: #ccc;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 1.6rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .publication {
        flex-direction: column;
        gap: 0.8rem;
    }

    .education-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .education-item-logo {
        margin-left: 0;
    }

    .education-item-logo img {
        width: 82px;
    }

    .work-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .work-item-logo {
        margin-left: 0;
    }

    .paper-links {
        justify-content: flex-start;
    }

    section {
        padding: 1.2rem 0;
    }

    #hero {
        padding: 1.5rem 0 1.2rem 0;
    }

    .bio {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
}
