/* Global Styles */
:root {
    --primary-color: #0056b3; /* Academic Blue */
    --text-color: #333;
    --bg-color: #fff;
    --sidebar-bg: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #6c757d;
    --highlight-bg: #eef6fc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

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

a:hover {
    text-decoration: underline;
    color: #003d82;
}

/* Layout */
.container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 40px 30px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    text-align: center;
    position: sticky;
    top: 0;
    height: 100vh;
    /* overflow-y: auto; Removed to prevent scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Fix horizontal centering */
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #000;
}

.sidebar .subtitle {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.nav-menu {
    list-style: none;
    padding: 4px;
    margin: 30px auto;
    background-color: #e9ecef;
    border-radius: 50px;
    display: flex;
    width: fit-content;
    position: relative;
}

.nav-menu li {
    margin-bottom: 0;
}

.nav-menu a {
    display: block;
    padding: 8px 20px;
    border-radius: 50px;
    color: #666;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #333;
    text-decoration: none;
}

.nav-menu a.current {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* Removed star emoji as per request */

.contact-info {
    font-size: 0.9rem;
    text-align: left;
    margin-top: 25px;
    color: #24292f; /* GitHub text color */
    line-height: 1.5;
}

.contact-item {
    display: flex;
    align-items: center; /* Center align for single line, start for multi-line */
    margin-bottom: 6px;
    gap: 10px;
}

.contact-icon {
    color: #57606a; /* GitHub icon color */
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 1.1em;
}

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

.social-links a {
    font-size: 0.85rem;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
}

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

.page-views {
    margin-top: 50px;
    opacity: 0.35;
    width: 200px;
    height: 160px;
    position: relative;
}

.page-views > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.last-updated {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #ccc;
    text-align: center;
}

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

h2 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #000;
}

h3 {
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
    font-weight: 600;
}

/* Research Highlights */
.research-highlight {
    background-color: var(--highlight-bg);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.research-highlight strong {
    color: var(--primary-color);
}

/* Lists */
ul.clean-list {
    list-style: none;
    padding: 0;
}

ul.clean-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

ul.clean-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Publication List */
.pub-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid transparent;
    transition: border-left-color 0.2s;
}

.pub-item:hover {
    border-left-color: var(--primary-color);
}

.pub-title {
    font-weight: 600;
    color: #000;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

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

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

/* Honors List */
.honor-category {
    margin-bottom: 25px;
}

.honor-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 4px;
}

.honor-name {
    font-weight: 500;
}

.honor-year {
    color: var(--accent-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 15px;
}

/* Education List Compact */
.edu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 8px;
}

.edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.edu-main {
    flex-grow: 1;
}

.edu-degree {
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    display: block;
}

.edu-school {
    color: #444; /* Darker, less bright */
    font-weight: 500;
    font-size: 0.95rem;
}

.edu-meta {
    text-align: right;
    min-width: 140px;
}

.edu-year {
    color: #6c757d; /* Gray for years */
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2px;
}

.edu-rank {
    font-size: 0.85rem;
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 500;
}

/* Life Page Specifics */
.hobby-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* More compact gap */
    margin-top: 10px;
}

.hobby-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px; /* More compact padding */
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hobby-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 5px;
}

.hobby-content {
    flex-grow: 1;
}

.hobby-title {
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 6px;
    display: block;
    color: var(--primary-color);
}

.hobby-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}

.fun-facts li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.fun-facts strong {
    color: var(--primary-color);
}

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