body {
    background-color: whitesmoke;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.content {
    width: 500px;
    margin: auto;
    padding: 25px 50px;
    border: thick dashed pink;
}

h1 {
    color: black;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h2 {
    color: black;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h5 {
    color: black;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navigation Header */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 500;
}

.nav-brand a {
    text-decoration: none;
    color: black;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}



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

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #333;
}

.nav-links .active {
    color: #333;
    font-weight: 600;
}

/* Simple main page layout */
.simple-main {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.simple-main h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.simple-main p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Profile section layout (kept for other potential uses) */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 350px;
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
}

.profile-content {
    flex: 1;
    padding-top: 2rem;
    max-width: calc(100% - 350px - 6rem);
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.bio {
    margin-top: 1.5rem;
}

.bio h1.title {
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 2rem;
    font-weight: 600;
    text-align: left;
}

.bio p.subtitle {
    margin: 0 0 1.5rem 0;
    padding: 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
}

.bio p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #444;
}

.bio p:last-child {
    margin-bottom: 0;
}

.bio a {
    color: #4a9eff;
    text-decoration: none;
}

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

/* Dark theme bio links */
body[data-theme="dark"] .bio a {
    color: #66b3ff;
}

/* Social links styling */
.social-links {
    width: 100%;
    max-width: 350px;
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    text-decoration: none;
    cursor: pointer;
}

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

.social-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5f41;
    transition: color 0.2s;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-item:hover .social-icon {
    color: #1a3d2e;
}

/* Brand icons using actual logos */
.brand-icon img {
    width: 100%;
    height: 100%;
    filter: none;
    transition: opacity 0.2s, filter 0.2s;
    pointer-events: none;
}

.social-item:hover .brand-icon img {
    opacity: 0.8;
}

/* Dark mode for brand icons */
body[data-theme="dark"] .brand-icon img {
    filter: brightness(0) saturate(100%) invert(73%) sepia(52%) saturate(352%) hue-rotate(86deg) brightness(95%) contrast(89%);
}

body[data-theme="dark"] .social-item:hover .brand-icon img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(28%) saturate(469%) hue-rotate(86deg) brightness(107%) contrast(96%);
    opacity: 1;
}

body[data-theme="dark"] .bio p {
    color: #ccc;
}

/* List styling to match the rest of the content */
ul, ol, li {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Dark mode list styling */
body[data-theme="dark"] ul,
body[data-theme="dark"] ol,
body[data-theme="dark"] li {
    color: #ccc;
}





/* Tablet design */
@media (max-width: 1024px) {
    .profile-section {
        gap: 4rem;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .profile-left {
        width: 300px;
    }
    
    .profile-image img {
        width: 300px;
        height: 300px;
    }
}

/* Mobile design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        max-width: 100%;
    }
    
    .profile-left {
        width: 100%;
        text-align: center;
    }
    
    .profile-image img {
        width: 280px;
        height: 280px;
    }
    
    .profile-content {
        max-width: 100%;
        text-align: left;
    }
    
    .bio h1.title {
        text-align: center;
    }
    
    .bio p.subtitle {
        text-align: center;
    }
    
    .updates {
        text-align: left;
    }
    
    .updates h2 {
        text-align: center;
    }
    
    .social-grid {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .social-item a {
        font-size: 0.8rem;
    }
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: #f0f0f0;
}

/* Dark mode styles */
body[data-theme="dark"] {
    background-color: #030b07 !important;
    color: #e0e0e0;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3 {
    color: #fff;
}

body[data-theme="dark"] a {
    color: #66b3ff;
}

body[data-theme="dark"] nav {
    border-bottom-color: #333;
}

body[data-theme="dark"] .nav-brand a {
    color: #90ee90;
}

body[data-theme="dark"] .nav-links a {
    color: #90ee90;
}

body[data-theme="dark"] .nav-links a:hover {
    color: #98fb98;
}

body[data-theme="dark"] .nav-links .active {
    color: #98fb98;
}

body[data-theme="dark"] .profile-image img {
    border-color: #444;
}



body[data-theme="dark"] .social-icon {
    color: #90ee90;
}

body[data-theme="dark"] .social-item:hover .social-icon {
    color: #98fb98;
}



body[data-theme="dark"] h2 {
    border-bottom-color: #333;
}

body[data-theme="dark"] .theme-toggle:hover {
    background-color: #333;
}

/* Hide/show sun/moon */
.sun { display: inline; }
.moon { display: none; }

body[data-theme="dark"] .sun { display: none; }
body[data-theme="dark"] .moon { display: inline; }

/* Dark theme for simple main page */
body[data-theme="dark"] .simple-main h1 {
    color: #e0e0e0;
}

body[data-theme="dark"] .simple-main p {
    color: #aaa;
}

/* Footer styles */
.site-footer {
    margin-top: auto;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    width: 100%;
    text-align: center;
    padding: 0 2rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    display: inline-block;
}

/* Dark theme footer */
body[data-theme="dark"] .site-footer {
    border-top-color: #333;
    background-color: #1a1a1a;
}

body[data-theme="dark"] .footer-content p {
    color: #aaa;
}

/* Updates section styling */
.updates {
    margin-top: 2rem;
}

.updates h2 {
    margin: 0 0 1.5rem 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.update-item {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.update-date {
    flex-shrink: 0;
    width: 100px;
    font-weight: 500;
    color: #666;
}

.update-content {
    flex: 1;
    line-height: 1.6;
}

.update-content a {
    color: #4a9eff;
    text-decoration: none;
}

.update-content a:hover {
    text-decoration: underline;
}

/* Dark theme updates */
body[data-theme="dark"] .update-date {
    color: #aaa;
}

body[data-theme="dark"] .update-content a {
    color: #66b3ff;
}

body[data-theme="dark"] .bio p.subtitle {
    color: #aaa;
}

/* Interests section styling */
.interests {
    margin-top: 2rem;
}

.interests h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.interests p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #444;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.interests p:last-child {
    margin-bottom: 0;
}

/* Dark theme interests */
body[data-theme="dark"] .interests h3 {
    color: #fff;
}

body[data-theme="dark"] .interests p {
    color: #ccc;
}

/* Publications page styling */
.publications-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.publications-header {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.publications-header h1 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    text-align: left;
    color: #333;
}

.publications-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.year-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.year-header {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ccc;
    flex-shrink: 0;
    width: 60px;
    margin-top: 0.5rem;
}

.year-publications {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.publication-item {
    width: 100%;
}

.publication-content {
    width: 100%;
}

.publication-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.8rem;
}

.publication-badge.preprint {
    background-color: #4a9eff;
}

.publication-badge.neurips {
    background-color: #2563eb;
}

.publication-badge.cogsci {
    background-color: #4a9eff;
}

.publication-badge.emnlp {
    background-color: #4a9eff;
}

.publication-badge.conll {
    background-color: #4a9eff;
}

.paper-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
    color: #333;
}

.authors {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    color: #444;
}

.author-more {
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.venue {
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    color: #444;
}

.publication-buttons {
    margin-bottom: 1rem;
}

.abs-btn, .arxiv-btn, .pdf-btn {
    padding: 0.4rem 1rem;
    border: 1px solid #ccc;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
}

.abs-btn:hover, .arxiv-btn:hover, .pdf-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.arxiv-btn {
    color: #b31b1b;
    border-color: #b31b1b;
}

.arxiv-btn:hover {
    background-color: #b31b1b;
    color: white;
}

.pdf-btn {
    color: #d63384;
    border-color: #d63384;
}

.pdf-btn:hover {
    background-color: #d63384;
    color: white;
}

.abstract-content {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.abstract-content p {
    margin: 0;
}



/* Dark theme publications */
body[data-theme="dark"] .publications-header h1 {
    color: #e0e0e0;
}

body[data-theme="dark"] .publications-subtitle {
    color: #aaa;
}

body[data-theme="dark"] .paper-title {
    color: #e0e0e0;
}

body[data-theme="dark"] .authors {
    color: #ccc;
}

body[data-theme="dark"] .venue {
    color: #ccc;
}

body[data-theme="dark"] .abs-btn {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body[data-theme="dark"] .abs-btn:hover {
    background-color: #444;
    border-color: #777;
}

body[data-theme="dark"] .arxiv-btn {
    background: #333;
    color: #ff6b6b;
    border-color: #ff6b6b;
}

body[data-theme="dark"] .arxiv-btn:hover {
    background-color: #ff6b6b;
    color: #333;
}

body[data-theme="dark"] .pdf-btn {
    background: #333;
    color: #ff69b4;
    border-color: #ff69b4;
}

body[data-theme="dark"] .pdf-btn:hover {
    background-color: #ff69b4;
    color: #333;
}

body[data-theme="dark"] .abstract-content {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ccc;
}

body[data-theme="dark"] .year-header {
    color: #555;
}

/* Mobile responsiveness for publications */
@media (max-width: 768px) {
    .publications-main {
        padding: 1rem;
    }
    
    .year-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .year-header {
        width: auto;
        margin-top: 0;
        font-size: 1.3rem;
    }
    
    .publications-header h1 {
        font-size: 2.5rem;
    }
}

/* Other page styling */
.other-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.other-header {
    margin-bottom: 3rem;
    text-align: center;
}

.other-header h1 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #333;
}

.other-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.other-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.section-description {
    font-size: 1rem;
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    text-align: center;
}

/* Gallery styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Poems styling */
.poems-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.poem-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.poem-item:hover {
    border-color: #4a9eff;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

.poem-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.poem-date {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.poem-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
    font-style: italic;
}

.poem-text {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    border-top: 3px solid #4a9eff;
}

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

.poem-text p:last-child {
    margin-bottom: 0;
}

/* Dark theme for Other page */
body[data-theme="dark"] .other-header h1 {
    color: #e0e0e0;
}

body[data-theme="dark"] .other-subtitle {
    color: #aaa;
}

body[data-theme="dark"] .section-title {
    color: #e0e0e0;
}

body[data-theme="dark"] .section-description {
    color: #aaa;
}

body[data-theme="dark"] .poem-item {
    background-color: #2a2a2a;
    border-color: #444;
}

body[data-theme="dark"] .poem-item:hover {
    border-color: #66b3ff;
    box-shadow: 0 4px 12px rgba(102, 179, 255, 0.1);
}

body[data-theme="dark"] .poem-title {
    color: #e0e0e0;
}

body[data-theme="dark"] .poem-date {
    color: #aaa;
}

body[data-theme="dark"] .poem-excerpt {
    color: #ccc;
}

body[data-theme="dark"] .poem-text {
    background-color: #2a2a2a;
    border-color: #444;
    border-top-color: #66b3ff;
}

body[data-theme="dark"] .poem-text p {
    color: #ccc;
}

/* Mobile responsiveness for Other page */
@media (max-width: 768px) {
    .other-main {
        padding: 1rem;
    }
    
    .other-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .poem-item {
        padding: 1rem;
    }
}

/* GWWC styling */
.gwwc-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gwwc-text p {
    margin-bottom: 1rem;
    text-align: left;
}

/* Remove underline from GWWC section links */
.other-section .section-description a,
.gwwc-text a {
    text-decoration: none;
}

.other-section .section-description a:hover,
.gwwc-text a:hover {
    text-decoration: underline;
}

/* GWWC Images styling */
.gwwc-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.gwwc-image {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.gwwc-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for GWWC images */
@media (max-width: 768px) {
    .gwwc-image {
        max-width: 100%;
    }
}
