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

:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --light-text: #555555;
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 22px;
    padding-top: 90px;
    padding-bottom: 60px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
    padding: 25px 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

.cv-button {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cv-button:hover {
    background-color: var(--link-color);
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Section */
.header-section {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

.profile-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
}

/* Profile Photo */
.profile-photo {
    width: 300px;
    height: 300px;
    margin: 0 0 30px 0;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name */
.name {
    font-size: 44px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--light-text);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-color);
}

.social-links a svg {
    width: 34px;
    height: 34px;
}

/* Section */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.section-title {
    display: inline-block;
}

.section-hint {
    opacity: 1;
    margin-left: 15px;
    font-size: 25px;
    font-weight: 400;
    color: #ff69b4;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.section h2:hover .section-hint {
    opacity: 1;
}

.section-intro {
    font-size: 20px;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 30px;
}

/* Intro Text */
.intro-text {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

.intro-text a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.intro-text a:hover {
    color: var(--link-hover);
}

/* Timeline Items (for Education and Positions) */
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.timeline-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

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

.timeline-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 6px;
    display: block;
}

.timeline-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    display: block;
}

.timeline-detail {
    font-size: 21px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.6;
}

.timeline-description {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 19px;
    color: #6ba3f0;
    margin-top: 8px;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

.timeline-item:hover .timeline-description {
    opacity: 1;
    max-height: 100px;
    margin-top: 8px;
}

/* Award Items (no logos) */
.award-item {
    margin-bottom: 30px;
}

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

.award-item .timeline-date,
.award-item .timeline-title,
.award-item .timeline-detail {
    display: block;
}

.award-item .timeline-date {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 6px;
}

.award-item .timeline-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.award-item .timeline-detail {
    font-size: 21px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.6;
}

/* Publication Items */
.publication-item {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.publication-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

.publication-item:last-child {
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.publication-main {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
}

.publication-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pub-tag {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #3b82f6;
    background-color: transparent;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
}

.publication-info {
    flex: 1;
}

.publication-authors {
    font-size: 17px;
    color: var(--light-text);
    margin-top: 6px;
    line-height: 1.5;
}

.publication-authors strong {
    color: var(--text-color);
    font-weight: 600;
}

.publication-date {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 8px;
    display: block;
}

.publication-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.5;
    display: block;
}

.publication-venue {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 22px;
    color: #16a34a;
    font-weight: 400;
    line-height: 1.4;
    flex-shrink: 0;
    width: 200px;
    margin: 0;
}

.venue-box {
    display: inline-block;
    text-align: left;
}

.publication-description {
    font-size: 19px;
    color: #ff8c42;
    line-height: 1.6;
    margin-top: 8px;
    font-style: italic;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

.publication-item:hover .publication-description {
    opacity: 1;
    max-height: 100px;
    margin-top: 8px;
}

.publication-figure {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease, margin-top 0.3s ease;
}

.publication-item:hover .publication-figure {
    opacity: 1;
    max-height: 2000px;
    margin-top: 16px;
}

.publication-figure.figure-90 {
    width: 90%;
}

.publication-figure.figure-85 {
    width: 85%;
}

.publication-figure.figure-95 {
    width: 95%;
}

.publication-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.pub-button {
    font-size: 16px;
    color: #ffffff;
    background-color: var(--link-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    font-weight: 500;
    min-width: 100px;
}

.pub-button:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
}

.pub-button.pdf {
    background-color: #808080;
}

.pub-button.pdf:hover {
    background-color: #666666;
}

.pub-button.github {
    background-color: #ff8c42;
}

.pub-button.github:hover {
    background-color: #ff7829;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(45, 45, 45, 0.1);
    text-align: left;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

footer p {
    color: var(--light-text);
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .nav-content {
        padding: 0 30px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .cv-button {
        font-size: 13px;
        padding: 7px 14px;
    }

    .container {
        padding: 0 30px;
    }

    footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .name {
        font-size: 28px;
    }

    .profile-photo {
        width: 220px;
        height: 220px;
    }

    .publication-main {
        flex-direction: column;
        gap: 6px;
    }

    .publication-venue {
        width: auto;
        text-align: left;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 140px;
        padding-bottom: 30px;
    }

    .nav-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 12px;
    }

    .cv-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .container {
        padding: 0 20px;
    }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .name {
        font-size: 24px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .section h2 {
        font-size: 18px;
    }
}
