@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(134deg, #00425e 0%, #001a3f 43%, #421438 77%);
    color: white;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.header-left img {
    height: 50px;
    width: auto;
}

.header-left a {
    text-decoration: none;
    display: inline-block;
    color: white;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
}

.main-title {
    font-weight: 700;
    font-size: 24px;
    color: white;
}

.sub-title {
    font-weight: 400;
    font-size: 14px;
    color: #f8d774;
}

.header-right {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.header-right img {
    height: 70px;
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.logo-separator {
    height: 60px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.section-heading {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #f8d774;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

nav.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

nav.tabs button {
    flex: 1;
    padding: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

nav.tabs button.active {
    background: rgba(255, 255, 255, 0.3);
    color: #f8d774;
    border-bottom: 3px solid #f8d774;
}

nav.tabs button:hover {
    background: rgba(255, 255, 255, 0.3);
}

main.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content {
    font-size: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 20px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    line-height: 1.6;
}

.tab-content {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-content:not(.hidden) {
    opacity: 1;
}

.tab-content h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

.tab-content p {
    font-size: 12px;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: justify;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.project-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 14px;
    text-align: justify;
}

.project-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f8d774;
}

.project-box p {
    color: #e0e0e0;
    font-size: 14px;
}

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.publication-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align:  justify;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
}

.publication-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0 8px 0;
    color: #f8d774;
    display: flex;
    align-items: center;
    gap: 5px;
}

.publication-card .authors {
    font-size: 12px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.publication-card .abstract {
    font-size: 12px;
    color: #e0e0e0;
    text-align: justify;
    margin-bottom: 8px;
}

.publication-links {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.publication-links a {
    font-size: 12px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

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


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.postdoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.phd-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.member {
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.member h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    color: #f8d774;
}

.member p {
    font-size: 12px;
    margin: 5px 0;
    color: #e0e0e0;
    text-align: center;
}

.member a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

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

.member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    width: 100%;
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.github-repo {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.github-repo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 14px;
}

.github-repo a:hover {
    color: #f8d774;
}

.hidden {
    display: none;
}

/* Key Events Layout */
.timeline {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #f8d774;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-icon {
    position: absolute;
    left: -28px;
    top: 0;
    font-size: 18px;
    color: #f8d774;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
}

.timeline-content {
    font-size: 13px;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    line-height: 1.6;
}

.timeline-content a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

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

.year-toggle {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    color: #f8d774;
    font-weight: bold;
    text-align: left;
    padding: 10px 15px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.year-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.year-group {
    margin-left: 10px;
}

.timeline-icon.with-person {
    display: flex;
    align-items: center;
    gap: 6px;
}

.person-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f8d774;
}


/*Role Badges*/
.role-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 1;
    text-transform: uppercase;
    pointer-events: auto;
}

.role-lead {
    background-color: #f8d774;
    color: #1a1a1a;
    font-weight: 600;
}

.role-former {
    background-color: #888888;
    color: white;
}

.member {
    position: relative;
}

.role-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    top: 120%;
    right: 50%;
    transform: translateX(50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.role-badge:hover::after {
    opacity: 1;
}

@media (max-width: 600px) {
    .role-badge {
        top: 8px;
        right: 8px;
        font-size: 9px;
        padding: 3px 6px;
    }

    .role-badge::after {
        font-size: 9px;
        padding: 3px 5px;
        top: 110%;
    }
}

.role-badge.role-former-postdoc {
    background-color: #a0aec0;
    color: white;
}

.role-badge.role-current-postdoc {
    background-color: #38b2ac;
    color: white;
}

.role-badge.role-ci {
    background-color: #5a67d8;
    color: white;
}

.role-badge.role-phd {
    background-color: #9f7aea;
    color: white;
}
