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

:root {
    --primary-dark: #1a1a2e;
    --primary-blue: #0f3460;
    --accent-blue: #16213e;
    --professional-blue: #1c3a70;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #555555;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --accent-color: #00a8e8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-light);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

/* Section Styles */
.section {
    padding: 80px 20px;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--professional-blue), var(--accent-color));
    border-radius: 2px;
}

/* Philosophy Section */
.philosophy-section {
    background-color: var(--bg-white);
}

.philosophy-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e8f4f8 0%, #e0f0f7 100%);
    border: 3px solid #1a5f7a;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.philosophy-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: #1a5f7a;
    border-radius: 50%;
}

.philosophy-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 20px;
    height: 20px;
    background-color: #1a5f7a;
    border-radius: 50%;
}

.philosophy-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #1a3a3a;
    font-style: italic;
    text-align: center;
    font-weight: 500;
}

.philosophy-text strong {
    font-weight: 700;
    color: #0f3460;
}

/* Contributions Section */
.contributions-section {
    background-color: var(--bg-light);
}

.contributions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contribution-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contribution-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#research-image {
    max-width: 100%;
    height: auto;
    display: block;
    visibility: visible;
    opacity: 1;
}

.image-caption {
    color: var(--text-light);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
}

.contribution-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Team Section */
.team-section {
    background-color: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--professional-blue);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--professional-blue) 0%, var(--accent-blue) 100%);
    margin: 0 auto 20px;
    border: 4px solid var(--accent-color);
    object-fit: cover;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.member-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-name a:hover {
    color: var(--accent-color);
}

.member-role {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Publications Section */
.publications-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}

.publications-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.scroll-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--professional-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 10;
}

.scroll-arrow:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
}

.publications-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--professional-blue) #d0d0d0;
    cursor: grab;
    flex: 1;
}

.publications-scroll::-webkit-scrollbar {
    height: 8px;
}

.publications-scroll::-webkit-scrollbar-track {
    background: #d0d0d0;
    border-radius: 10px;
}

.publications-scroll::-webkit-scrollbar-thumb {
    background: var(--professional-blue);
    border-radius: 10px;
}

.publications-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.publication-card {
    min-width: 380px;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    border-left: 4px solid var(--accent-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 15px;
}

/* Venue Badge Styles - NOW AT BOTTOM */
.venue-badge {
    position: static;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.venue-badge.acl {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.venue-badge.emnlp {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.venue-badge.naacl {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.venue-badge.neurips {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.venue-badge.icml {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.venue-badge.iclr {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.venue-badge.preprint {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--professional-blue);
    line-height: 1.4;
}

.publication-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
}


/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 0;
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-btn {
        width: 100%;
    }

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

    .contributions-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .publication-card {
        min-width: 300px;
    }

    .philosophy-box {
        padding: 30px 20px;
    }

    .philosophy-text {
        font-size: 1rem;
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
    }

    .scroll-arrow svg {
        width: 20px;
        height: 20px;
    }

    .publications-wrapper {
        gap: 10px;
    }
}
