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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

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

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #35424a;
    z-index: 1000;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.nav-brand {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero */
#hero {
    background: #35424a;
    color: #fff;
    text-align: center;
    padding: 140px 20px 80px;
}

#hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Sections */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background: #fff;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #35424a;
    border-bottom: 2px solid #35424a;
    display: inline-block;
    padding-bottom: 4px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid #35424a;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #35424a;
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: #35424a;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tags span {
    background: #35424a;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Education Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background: #35424a;
    color: #fff;
}

th, td {
    padding: 10px 14px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: #eaeaea;
}

tbody tr:nth-child(odd) {
    background: #fff;
}

/* Papers */
.papers-list {
    list-style: none;
}

.papers-list li {
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.papers-list li:last-child {
    border-bottom: none;
}

.papers-list strong {
    display: block;
    font-size: 0.85rem;
    color: #35424a;
    margin-bottom: 2px;
}

.papers-list em {
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
}

.citation-badge {
    display: inline-block;
    background: #35424a;
    color: #fff;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    margin-left: 6px;
    vertical-align: middle;
}

/* Thesis */
.thesis-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.thesis-item {
    background: #fff;
    border-left: 3px solid #35424a;
    padding: 16px 20px;
    border-radius: 0 4px 4px 0;
}

section:nth-child(even) .thesis-item {
    background: #f4f4f4;
}

.thesis-item h3 {
    font-size: 1rem;
    color: #35424a;
    margin-bottom: 6px;
}

.thesis-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #35424a;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.social-links a {
    color: #ccc;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

footer p {
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 640px) {
    .nav-links {
        gap: 16px;
    }

    #hero {
        padding: 120px 20px 60px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 40px 0;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 8px 8px;
    }
}

