:root {
    --primary-color: #0066cc;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --sidebar-bg: #f9f9f9; /* Optional: slight contrast for sidebar */
    --border-color: #eee;
    --max-width: 1200px;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a:hover {
    text-decoration: underline;
}

.container {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    padding: 100px 20px 40px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    text-align: center; /* Center align sidebar items like the example */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.role {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.organization {
    font-weight: 600;
    margin-bottom: 5px;
}

.location {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.social-links a {
    color: var(--text-color);
    margin: 0 5px;
}

.social-links span {
    color: #ccc;
}
.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-nav ul {
    list-style: none;
    text-align: center; /* Changed to center align */
    display: block; /* Changed to block to fill width */
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(0.85);
    text-decoration: none;
    opacity: 1;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    padding: 100px 60px 40px;
}

section {
    margin-bottom: 60px;
    scroll-margin-top: 20px; /* For anchor links */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #000;
}

/* Highlights */
.highlight-item {
    display: flex;
    margin-bottom: 15px;
}

.highlight-item .date {
    font-family: monospace;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 0.9rem;
    min-width: 100px;
}

/* Publications */
.publication-item {
    margin-bottom: 25px;
}

.pub-title {
    font-size: 1rem;
    font-weight: 700;
}

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

.pub-venue {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.badge:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Projects */
.project-item {
    margin-bottom: 40px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-note {
    color: var(--light-text);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.tech-badge {
    font-size: 0.8rem;
    background: #eee;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
}

.badge-img {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Footer */
.footer {
    margin-top: 80px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        position: static;
        height: auto;
        overflow-y: visible;
    }
    .main-content {
        padding: 30px 20px;
    }
}
