/* CSS Variables */
:root {
    --primary-color: #003D7C;
    /* Academic Blue */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --sidebar-width: 300px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    /* Can switch to Playfair for more serif look if needed */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-alt);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.profile-section {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

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

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
}

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

.main-nav {
    flex: 1;
}

.main-nav ul li {
    margin-bottom: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(0, 61, 124, 0.1);
    /* transparent primary */
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-footer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: auto;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 4rem 6rem;
    flex: 1;
    max-width: 1000px;
}

.content-section {
    margin-bottom: 5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-alt);
    color: var(--text-color);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

strong {
    color: var(--text-color);
}

/* About Section */
.bio-text {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.interests-list {
    list-style: disc inside;
    margin-left: 1rem;
    margin-top: 1rem;
    color: var(--text-light);
}

.interest-list li {
    margin-bottom: 0.5rem;
}

.education-timeline {
    margin-top: 2rem;
}

.edu-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.edu-date {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-color);
    padding-top: 0.2rem;
}

.edu-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.gpa {
    font-size: 0.9rem;
    font-style: italic;
}

/* News Section */
.news-list li {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bg-alt);
    padding-bottom: 1rem;
}

.news-list .date {
    min-width: 100px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.news-list .content {
    color: var(--text-light);
}

/* Publications Section */
.publication-item {
    display: flex;
    margin-bottom: 2rem;
}

.pub-year {
    min-width: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-alt);
    /* Subtle year in background style if wanted, but stuck to clean for now */
    color: #cbd5e1;
    margin-right: 1.5rem;
    text-align: center;
    line-height: 1;
}

.pub-image {
    min-width: 200px;
    max-width: 200px;
    margin-right: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.pub-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.pub-image img:hover {
    transform: scale(1.02);
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.pub-authors {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.pub-venue {
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag.pending {
    background-color: #e0f2fe;
    color: #0284c7;
}

.pub-btn {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--text-color);
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

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

.bibtex-block {
    margin-top: 1rem;
    background-color: #fdf6f9;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.bibtex-block pre {
    margin: 0;
}

.bibtex-block .bib-type {
    color: #3b5998;
    font-weight: bold;
}

.bibtex-block .bib-id {
    color: #a00;
    font-weight: bold;
}

.bibtex-block .bib-key {
    color: #008080;
}

.bibtex-block .bib-val {
    color: #d14;
}

.pub-abstract {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #64748b;
    background: var(--bg-alt);
    padding: 0.8rem;
    border-radius: 6px;
}

/* Research/Projects */
.project-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.project-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-card ul {
    list-style: disc inside;
    margin-left: 0.5rem;
    margin-top: 1rem;
}

/* Honors */
.honors-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.honors-list li::before {
    content: "🏆";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

/* Mobile styles */
.mobile-header {
    display: none;
    background-color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        padding: 2rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 1.5rem;
    }

    .news-list li {
        flex-direction: column;
    }

    .news-list .date {
        margin-bottom: 0.2rem;
    }

    .edu-item {
        flex-direction: column;
    }

    .edu-date {
        margin-bottom: 0.2rem;
        font-size: 0.9rem;
    }

    .publication-item {
        flex-direction: column;
    }

    .pub-year {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .pub-image {
        max-width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Project Images */
.project-images {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.project-img {
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Project Posters */
.project-poster-container {
    margin: 1rem 0;
    text-align: center;
}

.project-poster {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-poster:hover {
    transform: scale(1.01);
}


/* Contact Info */
.contact-info {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.email-link {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-link:hover {
    color: var(--primary-color);
}


/* Education Logos */
.edu-logo {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* News Images */
.news-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-images {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.news-images img {
    height: 80px;
    /* Small thumbnail height */
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.news-images img:hover {
    transform: scale(1.05);
}

/* Language Switch */
.lang-switch {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.btn-lang:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Project Image Scroll */
.project-images-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.project-images-scroll::-webkit-scrollbar {
    height: 6px;
}

.project-images-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.project-images-scroll img {
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.project-images-scroll img:hover {
    transform: scale(1.02);
}