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

:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --border-color: #e0e0e0;
    --bg-color: #ffffff;
    --nav-bg: #f8f9fa;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

/* .nav-item {
    /* text-transform: lowercase;
}
 */

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active {
    color: var(--link-color);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Header Section */
.header-section {
    margin-bottom: 2rem;
}

.name-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Profile Section */
.profile-section {
    margin-bottom: 2rem;
}

.profile-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bio-text {
    flex: 1;
}

.bio-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Social Links */
.social-links {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links .social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

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

.social-links .social-link:hover {
    transform: translateY(-2px);
}

.social-link i {
    display: inline-block;
    font-size: 1.5rem;
}

.social-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--primary-color);
}

/* News Section */
.news-section {
    margin: 3rem 0;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.news-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.news-table tbody tr:last-child {
    border-bottom: none;
}

.news-date {
    padding: 1rem 1rem 1rem 0;
    vertical-align: top;
    width: 120px;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.news-content {
    padding: 1rem 0;
    vertical-align: top;
}

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

/* Research Section */
.research-section {
    margin: 3rem 0;
}

.research-intro {
    margin-bottom: 2rem;
    color: #666;
    font-style: italic;
}

.research-areas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.research-area {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--link-color);
}

.research-area-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.research-area-description {
    line-height: 1.7;
    color: #555;
}

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

/* Contact Section */
.contact-section {
    margin: 2rem 0;
}

.contact-info {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

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

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

.contact-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--link-color);
}

.contact-block h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.contact-block p {
    margin-bottom: 0.75rem;
    color: #555;
}

.contact-email {
    margin-top: 0.5rem;
}

.contact-email code {
    background-color: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    display: inline-block;
}

.contact-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #555;
}

.contact-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-section .social-links {
    margin: 1rem 0;
    padding: 0;
    border: none;
    display: block;
}

.contact-section .social-links a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section .social-links a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Media Section */
.media-section {
    margin: 2rem 0;
}

.media-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 2rem 0;
    color: var(--primary-color);
}

.exhibition {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.exhibition:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.exhibition-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    gap: 1rem;
}

.exhibition-header:hover {
    color: var(--link-color);
}

.exhibition-header-content {
    flex: 1;
}

.exhibition-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.exhibition-header:hover h3 {
    color: var(--link-color);
}

.exhibition-chevron {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.exhibition-header.active .exhibition-chevron {
    transform: rotate(180deg);
}

.exhibition-header:hover .exhibition-chevron {
    color: var(--link-color);
}

.exhibition-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.exhibition-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 10000px;
    opacity: 1;
    margin-top: 1.5rem;
}

.exhibition-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.exhibition-content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.exhibition-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.exhibition-gallery img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    cursor: pointer;
}

.exhibition-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* News Articles */
.news-article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.news-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-article-header {
    margin-bottom: 1.5rem;
}

.news-article-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.news-article-meta {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.news-article-preview {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.news-article-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.news-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-article-image:hover .news-preview-image {
    transform: scale(1.05);
}

.news-article-text {
    flex: 1;
    min-width: 0;
}

.news-article-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.news-article-link {
    margin-top: 1rem;
    margin-bottom: 0;
}

.news-article-link a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-article-link a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    max-width: 80%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Blog Section */
.blog-section,
.fiction-section {
    margin: 2rem 0;
}

.blog-posts,
.fiction-pieces {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post,
.fiction-piece {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--link-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover,
.fiction-piece:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-post-title,
.fiction-piece-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-post-title a,
.fiction-piece-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover,
.fiction-piece-title a:hover {
    color: var(--link-color);
}

.blog-post-date,
.fiction-piece-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.blog-post-excerpt,
.fiction-piece-excerpt {
    color: #555;
    line-height: 1.7;
}

/* Publications Section */
.publications-section {
    margin: 2rem 0;
}

.publications-list {
    margin-top: 2rem;
}

.publication-topic-section {
    margin-bottom: 4rem;
}

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

.publication-topic-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
}

.topic-description {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    padding-left: 0.5rem;
    transition: opacity 0.3s ease;
}

.publication-topic-title:hover {
    color: var(--link-color);
}

.topic-title-text {
    flex: 1;
}

.topic-chevron {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.publication-topic-title.collapsed .topic-chevron {
    transform: rotate(-90deg);
}

.topic-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
    max-height: 10000px;
    opacity: 1;
}

.topic-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.publication-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.publication-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.publication-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
}

.publication-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.publication-details {
    flex: 1;
    min-width: 0;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.publication-authors {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.publication-venue {
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

.publication-summary {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

.publication-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.pub-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    border: none;
}

.pub-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Muted color variations for different link types */
.pub-link-arxiv {
    background-color: #8B7355; /* Muted brown */
}

.pub-link-doi {
    background-color: #6B8E9F; /* Muted blue-gray */
}

.pub-link-code {
    background-color: #7A9B7A; /* Muted green */
}

.pub-link-poster {
    background-color: #9B7A8B; /* Muted purple */
}

.pub-link-paper {
    background-color: #8B8B6B; /* Muted olive */
}

.pub-link-video {
    background-color: #7A8B9B; /* Muted blue */
}

.pub-link-slides {
    background-color: #9B8B7A; /* Muted tan */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 1px solid var(--border-color);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .name-title {
        font-size: 2rem;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .bio-text {
        text-align: left;
    }

    .news-date {
        width: 100px;
        font-size: 0.85rem;
    }

    .research-area {
        padding: 1rem;
    }

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

    .publication-image-container {
        width: 100%;
        max-width: 300px;
        height: 180px;
        margin: 0 auto;
    }

    .exhibition-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-article-preview {
        flex-direction: column;
    }

    .news-article-image {
        width: 100%;
        max-width: 100%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .name-title {
        font-size: 1.75rem;
    }

    .news-table {
        font-size: 0.9rem;
    }

    .news-date {
        width: 80px;
        padding-right: 0.5rem;
    }
}

