@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
    --color-bg: #fafbfc;
    --color-surface: #ffffff;
    --color-primary: #1a56db;
    --color-primary-dark: #1e40af;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-accent: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 48px 0 32px;
    text-align: center;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-surface);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.institution {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 4px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.links svg {
    width: 18px;
    height: 18px;
}

nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
}

nav a {
    padding: 8px 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover {
    color: var(--color-primary);
    background: rgba(26, 86, 219, 0.05);
}

nav a.active {
    color: var(--color-primary);
    background: rgba(26, 86, 219, 0.1);
}

section {
    padding: 48px 0;
}

section + section {
    border-top: 1px solid var(--color-border);
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 2px;
}

.intro-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 700px;
}

.intro-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.intro-text a:hover {
    text-decoration: underline;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.project-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.project-card .tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(26, 86, 219, 0.08);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 6px;
}

.project-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-card a:hover {
    text-decoration: underline;
}

.pub-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
}

.pub-highlight h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.pub-highlight p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.pub-highlight a {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pub-highlight a:hover {
    background: var(--color-primary-dark);
}

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

.pub-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.pub-list h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.pub-list .authors {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.pub-list .meta {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
}

.pub-list .links {
    margin-top: 8px;
    justify-content: flex-start;
}

.pub-list .links a {
    padding: 4px 10px;
    font-size: 0.8rem;
    border: none;
    background: var(--color-bg);
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

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

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    .links {
        gap: 8px;
    }
    
    .links a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    section {
        padding: 32px 0;
    }
}
