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

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
    font-size: 15px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

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

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.header-info h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-info p {
    color: #666;
    margin-bottom: 16px;
}

.links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.links a {
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.links a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Sections */
section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

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

section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

/* Education */
.education-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.education-item h3 {
    font-size: 15px;
    font-weight: 600;
}

.education-item .details {
    color: #555;
    margin-top: 4px;
}

.education-item .date {
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

/* Experience */
.experience-item {
    margin-bottom: 24px;
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.experience-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.experience-header .date {
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

.experience-item .role {
    color: #555;
    margin-bottom: 8px;
}

.experience-item ul {
    color: #444;
    padding-left: 18px;
}

.experience-item li {
    margin-bottom: 4px;
}

/* Publications */
.publication-item {
    margin-bottom: 16px;
}

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

.publication-item .title {
    font-weight: 500;
}

.publication-item .authors {
    color: #555;
    font-size: 14px;
}

.publication-item .authors strong {
    color: #222;
}

.publication-item .venue {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.publication-item .paper-link {
    font-size: 14px;
    display: inline-block;
    margin-top: 4px;
}

/* Projects */
.year-header {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

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

.project-item {
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

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

.project-item summary {
    padding: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-item summary::-webkit-details-marker {
    display: none;
}

.project-item summary::before {
    content: '▶';
    font-size: 10px;
    color: #888;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.project-item summary .thumbnail {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.project-item summary .title {
    flex: 1;
}

.project-item[open] summary::before {
    transform: rotate(90deg);
}

.project-item .project-content {
    padding: 0 16px 16px;
}

.project-item .video {
    margin-bottom: 16px;
}

.project-item .video iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
    border-radius: 8px;
}

.project-item .project-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.project-item .image-text-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 16px 0;
}

.project-item .image-text-row img {
    width: 280px;
    flex-shrink: 0;
    border-radius: 8px;
}

.project-item .image-text-row .text-content {
    flex: 1;
}

.project-item .image-text-row .text-content p {
    margin-top: 0;
}

@media (max-width: 600px) {
    .project-item .image-text-row {
        flex-direction: column;
    }
    
    .project-item .image-text-row img {
        width: 100%;
    }
}

.project-item ul {
    color: #555;
    font-size: 14px;
    padding-left: 20px;
    margin-bottom: 8px;
}

.project-item li {
    margin-bottom: 4px;
}

.project-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin: 16px 0 8px;
}

.project-item p {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .links {
        justify-content: center;
    }

    .education-item,
    .experience-header {
        flex-direction: column;
        gap: 4px;
    }

    .education-item .date,
    .experience-header .date {
        order: -1;
    }
}
