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

:root {
    --primary-color: #2563eb;
    --text-color: #e5e5e5;
    --text-light: #999;
    --bg-color: #111;
    --border-color: #333;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Profile Header */
.profile-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.profile-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.affiliation {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.research-interest {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Main Content */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section > p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.8;
}

.section ul {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.section ul li {
    margin-bottom: 0.25rem;
}

/* Publications & Projects List */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.pub-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

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

.pub-title a:hover {
    text-decoration: underline;
}

.pub-authors {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.pub-author-self {
    color: var(--text-color);
}

.pub-authors a {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pub-authors a:hover {
    color: var(--text-color);
}

.pub-venue {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.pub-links {
    margin-top: 0.25rem;
}

.pub-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.pub-links a:hover {
    text-decoration: underline;
}

.pub-item > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

.project-tags-inline {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Visitor Map */
#visitor-map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.visitor-count-text {
    color: var(--text-light);
    font-size: 1rem;
}

.visitor-count-text span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .profile-header {
        padding: 2rem 1rem 1.5rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .content {
        padding: 0 1rem 2rem;
    }
}
