/* Simple Academic CV */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2c3e50;
    --accent: #2980b9;
    --text: #333;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #dee2e6;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--primary);
    color: #fff;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
}

.nav-brand {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; color: #fff; }

.nav-links {
    display: flex; gap: 0.25rem; list-style: none;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-link.active { color: #fff; background: rgba(255,255,255,0.15); }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: #fff; font-size: 1.25rem; cursor: pointer; padding: 0.5rem;
}

.mobile-nav {
    display: none; position: fixed; inset: 0;
    background: var(--primary); z-index: 99;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; font-size: 1.25rem; font-weight: 500; }
.mobile-nav a:hover { text-decoration: none; opacity: 0.8; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}

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

/* ---- Hero / About ---- */
.hero {
    padding: 90px 0 50px;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border);
}

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

.profile-affiliation {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1rem;
}

.profile-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.profile-links a {
    font-size: 0.85rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.research-focus {
    margin-top: 1rem;
}

.research-focus h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.keyword-list li {
    font-size: 0.78rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.2rem 0.65rem;
    border-radius: 3px;
    color: var(--text-light);
}

/* ---- Sections ---- */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

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

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* ---- Education ---- */
.edu-item {
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border);
}

.edu-item:hover { border-left-color: var(--accent); }

.edu-degree {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.edu-field {
    font-size: 0.9rem;
    color: var(--text);
}

.edu-school {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Research ---- */
.research-list {
    list-style: none;
}

.research-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

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

.research-list i {
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.research-list .r-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.research-list .r-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* ---- Publications ---- */
.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.pub-filter-btn {
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}
.pub-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.pub-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pub-list {
    list-style: none;
    counter-reset: pub-counter;
}

.pub-item {
    counter-increment: pub-counter;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.pub-item:hover { background: var(--bg-alt); }
.pub-item.hidden { display: none; }

.pub-item::before {
    content: "[" counter(pub-counter) "]";
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.pub-item h3 {
    display: inline;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.pub-authors {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.pub-venue {
    font-size: 0.82rem;
    color: var(--accent);
    font-style: italic;
}

.pub-year-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    color: var(--text-muted);
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* ---- Teaching ---- */
.course-list {
    list-style: none;
}

.course-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.course-item:last-child { border-bottom: none; }

.course-code {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(41, 128, 185, 0.08);
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.course-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.course-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-links { justify-content: center; }
    .keyword-list { justify-content: center; }
    .profile-photo img { width: 140px; height: 140px; }
}

@media (max-width: 480px) {
    .profile-info h1 { font-size: 1.4rem; }
    .section { padding: 2rem 0; }
}

@media print {
    .nav, .mobile-nav { display: none !important; }
    .hero { padding-top: 1rem; }
    body { font-size: 12pt; }
}
