:root {
    --bg-colour: #0a0f18;
    --surface-colour: #141c2b;
    --primary-colour: #3b82f6;
    --primary-hover: #60a5fa;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-colour: #10b981;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-colour);
    color: var(--text-main);
    line-height: 1.7;
}

a {
    color: var(--primary-colour);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-hover);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 24, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-icon {
    display: none;
}

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

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

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-colour);
}

.menu-toggle {
    display: none;
}

.menu-close {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 4rem 2rem;
}

section {
    padding-top: 80px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-colour);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.hero {
    display: flex;
    align-items: flex-start; 
    gap: 2.5rem;
    min-height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem; 
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: 0.95rem; 
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

.hero-image-container {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--surface-colour);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    margin-top: 0.5rem; 
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-colour);
    color: var(--text-main);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--primary-colour);
    transform: translateY(-5px);
}

/* News Section */
.news-list {
    list-style: none;
    background: var(--surface-colour);
    padding: 2rem;
    border-radius: 12px;
}

.news-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.news-date {
    color: var(--primary-colour);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

/* Research Section - Horizontal Layout */
.research-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.paper-card {
    background: var(--surface-colour);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: row;
}

.paper-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.paper-img {
    flex: 0 0 300px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-img img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain; 
    transition: transform var(--transition-speed);
    border-radius: 8px; 
}

.paper-card:hover .paper-img img {
    transform: scale(1.03);
}

.paper-content {
    padding: 1rem 1.5rem; 
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paper-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    line-height: 1.3;
}

.paper-authors {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.paper-venue {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent-colour);
    margin-bottom: 0.75rem;
}

.paper-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-colour);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary-colour);
    transition: all var(--transition-speed);
}

.btn:hover {
    background: var(--primary-colour);
    color: #fff;
}

.hidden-item {
    display: none !important;
}

.paper-card.is-visible {
    display: flex !important;
    animation: fadeIn 0.5s ease-in-out;
}

.news-list li.is-visible {
    display: list-item !important;
    animation: fadeIn 0.5s ease-in-out;
}

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

.toggle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-toggle {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-colour);
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-toggle:hover {
    background: var(--primary-colour);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

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

.editorial-row {
    display: flex;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editorial-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.editorial-heading {
    flex: 0 0 300px;
    padding-right: 2rem;
}

.editorial-heading h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    position: sticky;
    top: 100px; 
}

.editorial-content {
    flex: 1;
}

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

.editorial-list li {
    margin-bottom: 2rem;
}

.editorial-list li:last-child {
    margin-bottom: 0;
}

.item-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.item-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: block;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-colour);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.role-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    display: block;
}

@media (max-width: 900px) {
    nav {
        background: rgba(10, 15, 24, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-container {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 3000;
        transition: 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-links a {
        font-size: 1.5rem; 
        font-weight: 800;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 30px;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 3rem;
        cursor: pointer;
    }

    .container {
        padding: 100px 1.5rem 3rem 1.5rem;
    }

    .hero { 
        flex-direction: column-reverse; 
        text-align: center;
        align-items: center; 
    }

    .hero-content p { 
        text-align: justify; 
        word-wrap: break-word;
    }

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

    .hero-image-container {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .paper-card { flex-direction: column; }
    .paper-img { flex: none; width: 100%; height: 180px; }
    
    .editorial-row { flex-direction: column; padding: 2rem 0; }
    
    .editorial-heading { 
        flex: none; 
        padding-right: 0;
        width: 100%; 
        margin-bottom: 1rem; 
    }

    .editorial-heading h3 { position: static; }
}