/* Pages CSS - For multi-page site structure */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: radial-gradient(ellipse at top, #e0f2fe 0%, #ffffff 40%, #f0f9ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Subtle floating orbs on content pages */
body::before {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: -1;
    animation: gentleFloat 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -175px;
    left: -175px;
    z-index: -1;
    animation: gentleFloat 25s ease-in-out infinite reverse;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .site-title {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    z-index: 1001;
}

header .site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #0099ff, #00d4ff);
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 153, 255, 0.3);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
header nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
}

header nav ul li {
    margin: 0;
}

header nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0099ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav a:hover::after,
header nav a.active::after {
    width: 100%;
}

header nav a:hover,
header nav a.active {
    color: #0099ff;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
}

/* Main Content */
main.page-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 3rem 5rem;
    width: 100%;
}

main.page-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
}

main.page-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

main.page-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

main.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

main.page-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.6rem;
}

main.page-content a {
    color: #0099ff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #00d4ff 0%, #0099ff 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

main.page-content a:hover {
    color: #00d4ff;
    background-size: 100% 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Research Page Intro */
.research-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Research Themes */
.research-theme {
    margin-bottom: 4rem;
    padding: 0;
}

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

.research-theme-reverse .research-theme-content {
    direction: ltr;
}

.research-theme-reverse .research-theme-text {
    direction: ltr;
}

.research-theme-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.research-theme-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.research-theme-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.research-theme-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.research-theme-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.research-details {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.1);
    transition: all 0.3s ease;
}

.research-details:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.2);
    border-left-color: #0099ff;
}

.research-details p {
    margin-bottom: 0.75rem;
}

.research-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.research-details li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.research-details li a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.research-details li a:hover {
    text-decoration: underline;
    color: #004999;
}

.research-details em {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Research Grid (Legacy - keeping for compatibility) */
.research-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
}

.research-item {
    padding: 1.5rem 0;
    border-top: 1px solid #e8e8e8;
}

.research-item:first-child {
    border-top: none;
    padding-top: 0;
}

.research-item h3 {
    margin-top: 0;
}

/* Contact Info */
.contact-info .email {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #666;
}

/* Map Container */
.map-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.map-container iframe {
    display: block;
}

/* Students Showcase */
.students-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.student-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.student-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #00d4ff, #0099ff, #00bfff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.student-card:hover::before {
    opacity: 1;
}

.student-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.2), 0 5px 15px rgba(0, 212, 255, 0.1);
}

.student-photo-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.student-card:hover .student-photo {
    transform: scale(1.05);
}

.student-details {
    padding: 1.5rem;
}

.student-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #1a1a1a;
    font-weight: 600;
}

.student-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.student-research {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Alumni Section */
.alumni-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.alumni-section h3 {
    margin-top: 0;
}

.alumni-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.alumni-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e8e8e8;
    color: #444;
}

.alumni-list li:last-child {
    border-bottom: none;
}

.alumni-list strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Person Profile Pages */
.person-profile {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.profile-image-large {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #1a1a1a;
}

.profile-info .title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.profile-info .affiliation {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-links {
    font-size: 0.9rem;
}

.contact-links a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 0.5rem;
}

.contact-links a:first-child {
    margin-left: 0;
}

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

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #1a1a1a;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
}

.social-icons a:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-content section {
    margin-bottom: 2.5rem;
}

.profile-content section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #1a1a1a;
}

/* Make student names clickable */
.student-details h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.student-details h4 a:hover {
    color: #3498db;
}

/* Footer */
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem 3rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #999;
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    main.page-content {
        padding: 6rem 2rem 4rem;
    }

    .students-showcase {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Research Themes Responsive */
    .research-intro {
        font-size: 1rem;
    }

    .research-theme {
        margin-bottom: 3rem;
    }

    .research-theme-image {
        max-width: 500px;
    }

    /* Profile Header Responsive */
    .profile-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-image-large {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }

    header nav {
        padding: 1rem 2rem;
    }

    /* Hide navigation by default on mobile */
    header nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    /* Show menu when active */
    header nav ul.active {
        right: 0;
    }

    header nav ul li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #e8e8e8;
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav a {
        padding: 1rem 0;
        font-size: 1rem;
        width: 100%;
    }

    header .site-title {
        font-size: 1rem;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

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

    /* Prevent scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    header nav {
        padding: 1rem 1.5rem;
    }

    header nav ul {
        width: 260px;
    }

    main.page-content {
        padding: 5rem 1.5rem 3rem;
    }

    .students-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .student-photo-container {
        height: 250px;
    }

    .research-theme-text h3 {
        font-size: 1.3rem;
    }

    .research-theme-text p {
        font-size: 0.95rem;
    }

    .research-details {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .research-theme-image {
        max-width: 100%;
    }

    footer {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   PUBLICATIONS PAGE STYLES
   ============================================ */

/* Publications Controls */
.publications-controls {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-bar {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    background: #f8fcff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-bar:focus {
    outline: none;
    border-color: #00bfff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.filter-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e0f2fe;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-select:hover {
    border-color: #00d4ff;
}

.filter-select:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.filter-reset-btn {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

/* Publications List */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

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

.publication-venue {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.publication-type-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.4rem;
    width: fit-content;
}

.type-journal {
    background: linear-gradient(135deg, #e0f2fe, #cfe9ff);
    color: #0066cc;
}

.type-conference {
    background: linear-gradient(135deg, #d4f1f4, #b8e8ed);
    color: #006d77;
}

.type-preprint {
    background: linear-gradient(135deg, #fff4e6, #ffe4c4);
    color: #d97706;
}

.type-workshop {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

.publication-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.tag {
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-llm-theory-of-mind {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #0066cc;
}

.tag-chemical-ai {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.tag-game-theory {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.tag-training-dynamics {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.tag-deep-learning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d90670;
}

.tag-mean-field-theory{
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #06d9b6;
}


.publication-abstract {
    margin: 1.2rem 0;
    padding: 1rem;
    background: #f8fcff;
    border-left: 3px solid #00d4ff;
    border-radius: 0 6px 6px 0;
}

.publication-abstract p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

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

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pub-link svg {
    width: 16px;
    height: 16px;
}

.pub-link-pdf {
    background: linear-gradient(135deg, #00d4ff, #00bfff);
    color: #ffffff;
}

.pub-link-pdf:hover {
    background: linear-gradient(135deg, #00bfff, #0099ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.pub-link-code {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.pub-link-code:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pub-link-project {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
}

.pub-link-project:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pub-link-bibtex {
    background: #f0f9ff;
    color: #0066cc;
    border: 2px solid #e0f2fe;
}

.pub-link-bibtex:hover {
    background: #e0f2fe;
    border-color: #00d4ff;
    transform: translateY(-2px);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fcff;
    border-radius: 12px;
    border: 2px dashed #e0f2fe;
}

.no-results p {
    font-size: 1.1rem;
    color: #777;
}

/* BibTeX Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #00d4ff;
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.bibtex-display {
    background: #f8fcff;
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.copy-btn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #00bfff, #007acc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ============================================
   NEWS PAGE STYLES
   ============================================ */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.news-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-publication {
    background: linear-gradient(135deg, #e0f2fe, #cfe9ff);
    color: #0066cc;
}

.category-award {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.category-talk {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

.category-event {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.category-hiring {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.news-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #0099ff;
    gap: 0.8rem;
}

/* ============================================
   RESPONSIVE UPDATES FOR NEW COMPONENTS
   ============================================ */

@media (max-width: 768px) {
    .publications-controls {
        padding: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .publication-card {
        padding: 1.5rem;
    }

    .publication-title {
        font-size: 1.1rem;
    }

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

    .pub-link {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 10% 5%;
        padding: 1.5rem;
    }

    .bibtex-display {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066cc, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section ul {
    margin: 1rem 0 1rem 1.5rem;
}

.about-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.philosophy-list li,
.culture-list li,
.impact-list li {
    position: relative;
    padding-left: 0.5rem;
}

.philosophy-list li::before,
.culture-list li::before,
.impact-list li::before {
    content: '→';
    position: absolute;
    left: -1.2rem;
    color: #00d4ff;
    font-weight: bold;
}

/* ============================================
   RESOURCES PAGE STYLES
   ============================================ */

.resources-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8fcff;
    border-left: 4px solid #00d4ff;
    border-radius: 0 8px 8px 0;
}

.resources-section {
    margin-bottom: 3rem;
}

.resources-section h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
}

.resources-section h3 svg {
    color: #00d4ff;
}

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

.resource-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.resource-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.resource-card-header h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.resource-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-benchmark {
    background: linear-gradient(135deg, #e0f2fe, #cfe9ff);
    color: #0066cc;
}

.badge-organization {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.badge-tool {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

.badge-codebase {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #ed903a;
}

.badge-dataset {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.resource-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.resource-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.resource-lang {
    padding: 0.3rem 0.8rem;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.resource-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #00d4ff, #00bfff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: linear-gradient(135deg, #00bfff, #0099ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.resource-link svg {
    width: 16px;
    height: 16px;
}

.getting-started-list {
    margin: 1.5rem 0 1.5rem 2rem;
}

.getting-started-list li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.commitment-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.commitment-section ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.commitment-section li {
    margin-bottom: 1rem;
    padding-left: 0;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   TEACHING PAGE STYLES
   ============================================ */

.teaching-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 3rem;
}

.teaching-section {
    margin-bottom: 3rem;
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.15);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.course-header h4 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.course-level {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #e0f2fe, #cfe9ff);
    color: #0066cc;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.course-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.2rem;
}

.course-topics {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.topic-tag {
    padding: 0.4rem 0.9rem;
    background: #f8fcff;
    border: 1px solid #e0f2fe;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #0066cc;
    font-weight: 500;
}

.philosophy-points {
    margin: 1.5rem 0 1.5rem 2rem;
}

.philosophy-points li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.news-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.news-filters {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-filters label {
    font-weight: 500;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}
