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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #000;
    line-height: 1.7;
    font-size: 18px;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 380px;
    background: linear-gradient(135deg, #75b5aa 0%, #6ba89d 50%, #7fc4b8 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.profile-section {
    margin-bottom: 10px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.name {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.lab {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.description {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 14px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* Navigation Menu */
.menu {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 10px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-link:link,
.menu-link:visited,
.menu-link:active {
    color: rgba(255, 255, 255, 0.6);
}

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.menu-link:hover .menu-icon {
    opacity: 1;
}

.menu-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-link.active:link,
.menu-link.active:visited,
.menu-link.active:active {
    color: white !important;
}

.menu-link.active .menu-icon {
    opacity: 1;
}

/* Main Content */
.content {
    flex: 1;
    margin-left: 380px;
    padding: 40px 80px;
    background-color: #ffffff;
    min-height: 100vh;
    max-width: calc(100vw - 380px);
}

.content h2 {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    color: #75b5aa;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.content p {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    max-width: 800px;
    margin-bottom: 20px;
}

.content p a {
    color: #75b5aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content p a:hover {
    color: #5a9a8f;
    text-decoration: underline;
}

/* General image and video styles - ensure all images are responsive */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content video {
    max-width: 100%;
    height: auto;
    display: block;
}

.content > h3:not(.project-title) {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    color: #75b5aa;
    font-size: 32px;
    font-weight: 400;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.content > h3:not(.project-title):first-of-type {
    margin-top: 40px;
}

.project-content-image {
    width: 70%;
    max-width: 560px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
}

.video-container {
    margin: 30px 0;
    max-width: 800px;
}

.video-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 8px;
}

.team-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
}

.team-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 12px;
    padding-left: 0;
}

.team-list li strong {
    font-weight: 600;
}

.team-list a {
    color: #75b5aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-list a:hover {
    color: #5a9a8f;
    text-decoration: underline;
}

/* Education List */
.education-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
}

.education-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 20px;
    padding-left: 0;
}

.education-list li strong {
    font-weight: 600;
    color: #75b5aa;
}

/* Supervision List */
.supervision-legend {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.supervision-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    color: #75b5aa;
    flex-shrink: 0;
}

.supervision-list,
.talks-list,
.service-list,
.outreach-list,
.awards-list,
.media-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
}

.supervision-list li,
.talks-list li,
.service-list li,
.outreach-list li,
.awards-list li,
.media-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 12px;
    padding-left: 0;
}

.supervision-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.supervision-list li .supervision-icon {
    margin-top: 4px;
    flex-shrink: 0;
    width: 16.8px;
    height: 16.8px;
}

.supervision-list li > span {
    flex: 1;
    min-width: 0;
}

.supervision-list li strong,
.talks-list li strong,
.service-list li strong,
.outreach-list li strong,
.awards-list li strong,
.media-list li strong {
    font-weight: 600;
}

.supervision-list a,
.talks-list a,
.service-list a,
.outreach-list a,
.awards-list a,
.media-list a {
    color: #75b5aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.supervision-list a:hover,
.talks-list a:hover,
.service-list a:hover,
.outreach-list a:hover,
.awards-list a:hover,
.media-list a:hover {
    color: #5a9a8f;
    text-decoration: underline;
}

/* Filter Section */
.filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #75b5aa;
    letter-spacing: 0.3px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 5px 12px;
    background-color: #f5f5f5;
    color: #000;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
}

.filter-btn.active {
    background-color: #75b5aa;
    color: white;
    border-color: #75b5aa;
}

.filter-btn.active:hover {
    background-color: #5a9a8f;
    border-color: #5a9a8f;
}

/* Projects List */
.projects-list {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 25px;
}

.project-item:last-child {
    padding-bottom: 0;
}

.project-image-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
}

.project-image-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 200px;
    height: auto;
    display: block;
}

.project-content {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin-top: 0 !important;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.project-title a {
    color: #75b5aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: #5a9a8f;
}

.project-people {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.project-description {
    font-size: 15px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 20px;
}

.project-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background-color: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #000;
    border: 1px solid #e0e0e0;
    font-weight: 400;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.contact-btn:hover {
    background-color: #75b5aa;
    color: white;
    border-color: #75b5aa;
    transform: translateY(-1px);
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Publications List */
.publications-list {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.publication-item {
    padding: 15px 0;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.publication-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

.publication-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.publication-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.publication-content {
    flex: 1;
    min-width: 0;
}

.citation {
    font-size: 15px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 20px;
}

.citation strong {
    font-weight: 800;
}

.publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.action-btn:hover {
    background-color: #75b5aa;
    color: white;
    border-color: #75b5aa;
    transform: translateY(-1px);
}

.action-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 40px 30px;
    }

    .content {
        margin-left: 0;
        padding: 50px 30px;
        max-width: 100%;
    }

    .profile-image {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px;
        min-height: 100px;
        max-width: 100px;
        max-height: 100px;
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }

    .name {
        font-size: 28px;
    }

    .content h2 {
        font-size: 36px;
    }

    .content p {
        font-size: 14px;
    }

    .menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 30px;
    }

    .menu-link {
        font-size: 16px;
        padding: 10px 16px;
        border-left: none;
        border-radius: 6px;
        gap: 8px;
    }

    .menu-icon {
        width: 18px;
        height: 18px;
    }

    .menu-link.active {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .menu-link:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .publications-list {
        margin-top: 20px;
        gap: 15px;
    }

    .publication-item {
        padding: 12px 0;
        flex-direction: column;
        gap: 20px;
    }

    .publication-thumbnail {
        width: 100px;
        height: 133px;
        align-self: flex-start;
    }

    .citation {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .action-btn {
        font-size: 14px;
        padding: 7px 14px;
        gap: 6px;
    }

    .action-icon {
        width: 14px;
        height: 14px;
    }

    .filter-section {
        margin-bottom: 25px;
        gap: 12px;
    }

    .filter-title {
        font-size: 20px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 5px 12px;
    }

    .projects-list {
        gap: 20px;
    }

    .project-item {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
    }

    .project-image-link {
        width: 100%;
        max-width: 100%;
        height: auto;
        align-self: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .project-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .project-item {
        align-items: center;
    }

    .project-title {
        font-size: 24px;
    }

    .project-people {
        font-size: 14px;
    }

    .project-description {
        font-size: 14px;
    }

    .content > h3:not(.project-title) {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .content > h3:not(.project-title):first-of-type {
        margin-top: 30px;
    }

    .project-content-image {
        max-width: 100%;
    }

    .video-container {
        margin: 20px 0;
    }

    .video-container iframe {
        height: 250px;
    }

    .contact-links {
        gap: 12px;
    }

    .contact-btn {
        font-size: 14px;
        padding: 10px 16px;
        gap: 8px;
    }

    .contact-icon {
        width: 18px;
        height: 18px;
    }

    /* Ensure ALL images never exceed screen width on mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    /* Exception: profile image must maintain square aspect ratio */
    .profile-image {
        max-width: 100px !important;
        max-height: 100px !important;
        width: 100px !important;
        height: 100px !important;
        aspect-ratio: 1 / 1;
    }

    video {
        max-width: 100% !important;
        height: auto !important;
    }

    iframe {
        max-width: 100% !important;
    }
}