:root {
    --bg-color: #fcfcfc;
    --text-main: #222222;
    --text-muted: #555555;
    --border-color: #eaeaea;
    --link-color: #0366d6;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header */
.header {
    margin-bottom: 3rem;
}

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

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.name {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.social-links a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.about-text p {
    color: var(--text-main);
    text-align: justify;
    word-break: keep-all;
}

/* Sections */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Lists */
.interest-list,
.compact-list,
.timeline-list {
    list-style: none;
}

.interest-list li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.interest-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

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

.pub-title {
    font-weight: 500;
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.timeline-list .date {
    min-width: 120px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
    padding-top: 0.2rem;
}

.timeline-list .details strong {
    font-weight: 600;
}

.timeline-list .details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.hobbies-gallery {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hobbies-gallery::-webkit-scrollbar {
    height: 6px;
}

.hobbies-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.hobby-img {
    flex: 1;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.hobbies-text {
    word-break: keep-all;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .timeline-list li {
        flex-direction: column;
        gap: 0.3rem;
    }

    .timeline-list .date {
        min-width: auto;
    }
}