/* ===========================
   Modern Academic Website CSS
   =========================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --bg-color: #ffffff;
    --section-bg: #fafafa;
    --border-color: #e0e0e0;
    --link-color: #3498db;
    --link-hover: #2980b9;
    --max-width: 900px;
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.nav-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-name:hover {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

/* Main Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

/* Section Styling */
.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Profile Header */
.profile-header {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
}

.profile-info h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-info .title {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.profile-info .affiliation {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.profile-info .email {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.profile-info .email a {
    color: var(--link-color);
    text-decoration: none;
}

.profile-info .email a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

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

/* Bio Section */
.bio p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.bio a {
    color: var(--link-color);
    text-decoration: none;
}

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

/* News Section */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 1rem;
    padding-left: 0;
    display: flex;
    gap: 1.5rem;
}

.news-date {
    font-weight: 500;
    color: var(--secondary-color);
    min-width: 80px;
    flex-shrink: 0;
}

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

/* Education Section */
.education-item {
    margin-bottom: 2rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.edu-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.edu-degree {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.edu-advisor {
    color: var(--light-text);
    font-size: 0.95rem;
}

.edu-advisor a {
    color: var(--link-color);
    text-decoration: none;
}

.edu-advisor a:hover {
    text-decoration: underline;
}

.edu-date {
    color: var(--secondary-color);
    font-weight: 500;
    white-space: nowrap;
}

/* Publications Section */
.publication {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.publication:last-child {
    border-bottom: none;
}

.pub-title {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.pub-title a:hover {
    color: var(--secondary-color);
}

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

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

/* Teaching Section */
.teaching-item {
    margin-bottom: 2rem;
}

.teach-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.teach-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.teach-date {
    color: var(--secondary-color);
    font-weight: 500;
    white-space: nowrap;
}

.teach-role {
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.teach-desc {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Service Section */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.6;
}

.service-list strong {
    color: var(--primary-color);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--lighter-text);
    font-size: 0.9rem;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

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

    .profile-info h1 {
        font-size: 1.75rem;
    }

    .social-links {
        justify-content: center;
    }

    .edu-header,
    .teach-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .edu-date,
    .teach-date {
        align-self: flex-start;
    }

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

    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
}
