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

body {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.6;
    color: #111111;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #111111;
}

h1 { font-size: 1.4rem; font-weight: 600; }
h2 { font-size: 1.1rem; font-weight: 500; }
h3 { font-size: 1rem; font-weight: 500; }

p {
    margin-bottom: 0.75rem;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.9rem;
    color: #666666;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111111;
}

/* Main content */
.main-content {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 1rem 1.5rem;
}

.section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 80px;
    min-height: calc(100vh - 60px);
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #111111;
    font-weight: 600;
}

.section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: #111111;
    font-weight: bold;
    font-style: italic;
}

/* Hero section */
.hero-content {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #111111;
}

.hero-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.hero-contact {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
}

.separator {
    margin: 0 0.5rem;
    color: #cccccc;
}

/* Timeline items */
.timeline-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.timeline-group .timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
}

.timeline-item h3 {
    margin-bottom: 0.3rem;
    color: #111111;
}

.timeline-item .meta {
    color: #666666;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

/* Skills */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.6rem 0;
}

.skill-tag {
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    color: #666666;
    white-space: nowrap;
}

/* Projects */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-media img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    object-fit: cover;
    max-width: 120px;
    max-height: 120px;
}

.project-info h3 {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 500;
    color: #111;
}

.project-info .project-description {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
}

.project-links {
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #666666;
    font-size: 0.8rem;
    margin-top: 2rem;
}

.footer-content {
    padding: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1.25rem 1rem;
        max-width: none;
    }

    .nav-container {
        max-width: none;
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .separator {
        display: none;
    }

    .hero-contact a,
    .hero-contact span {
        display: inline-block;
        margin-right: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .tags {
        gap: 0.4rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .project-item {
        grid-template-columns: 1fr;
    }
}
