:root {
    /* Clean Girl Pastel Palette */
    --soft-pink: #FDE8E8;
    --blush: #F8D7DA;
    --sage-green: #E8F5E8;
    --mint: #D4F1F4;
    --lavender: #F0E6FF;
    --cream: #FFF8F0;
    --peach: #FFE8D6;
    --sky-blue: #E3F2FD;

    /* Accent Colors */
    --coral: #FF9B9B;
    --sage-dark: #9FB8A3;
    --mint-dark: #7AC3CC;
    --lavender-dark: #C8A8E9;

    /* Neutrals */
    --soft-white: #FEFEFE;
    --warm-gray: #F5F4F2;
    --text-gray: #6B6B6B;
    --text-dark: #4A4A4A;
    --border-light: #F0F0F0;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-large: 0 12px 40px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--soft-white) 0%, var(--warm-gray) 100%);
    font-size: 16px;
    overflow-x: hidden;
}

/* Floating background elements */
.bg-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--soft-pink) 0%, transparent 70%);
    top: 10%;
    left: 80%;
    animation: float 8s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    top: 60%;
    left: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    background: var(--soft-white);
    border-radius: 50px;
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.nav-menu li a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(135deg, var(--coral) 0%, var(--blush) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 15px;
    background: var(--soft-white);
    box-shadow: var(--shadow-soft);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--coral);
    margin: 2px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Main content */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    padding: 3rem 0;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

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

/* Home introduction */
.home-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 0;
}

.greeting {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--coral);
    margin-bottom: 1rem;
    font-weight: 600;
}

.home-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.profile-container {
    position: relative;
    display: inline-block;
    margin: 2rem 0 3rem 0;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral) 0%, var(--lavender-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-large);
    position: relative;
    overflow: hidden;
}

.profile-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mint);
    top: -10px;
    right: 10px;
    box-shadow: var(--shadow-soft);
}

.profile-decoration:nth-child(2) {
    width: 20px;
    height: 20px;
    background: var(--peach);
    top: 30px;
    right: -5px;
}

.profile-decoration:nth-child(3) {
    width: 25px;
    height: 25px;
    background: var(--lavender);
    bottom: 10px;
    left: -10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--soft-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint-dark) 100%);
    transition: left 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover svg {
    fill: white;
    position: relative;
    z-index: 1;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--text-gray);
    transition: fill 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Section styles */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint-dark) 100%);
    border-radius: 2px;
}

/* Cards with soft shadows */
.card {
    background: var(--soft-white);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--lavender-dark) 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

/* Bio section */
.bio-section {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--mint) 100%);
    padding: 3rem;
    border-radius: 30px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.bio-section::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* Research grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-card {
    background: var(--soft-white);
    padding: 2rem;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--mint-dark) 100%);
    border-radius: 25px 25px 0 0;
}

.research-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.research-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.research-card ul {
    list-style: none;
    padding: 0;
}

.research-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
    line-height: 1.6;
}

.research-card li::before {
    content: '✦';
    color: var(--coral);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Experience page styles */
.experience-nav {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.experience-nav-pills {
    display: flex;
    background: var(--soft-white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    gap: 0.25rem;
}

.experience-nav-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.experience-nav-btn.active,
.experience-nav-btn:hover {
    background: linear-gradient(135deg, var(--coral) 0%, var(--blush) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.experience-section {
    display: none;
}

.experience-section.active {
    display: block;
}

/* PDF viewer styles */
.pdf-container {
    width: 100%;
    height: 85vh;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-light);
    background: var(--soft-white);
    overflow: hidden;
}

.pdf-object {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-gray);
    background: var(--warm-gray);
    padding: 2rem;
}

.pdf-fallback h3 {
    color: var(--coral);
    margin-bottom: 1rem;
}

.download-btn {
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint-dark) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Research page styles */
.research-nav {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.research-nav-pills {
    display: flex;
    background: var(--soft-white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    gap: 0.25rem;
}

.research-nav-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.research-nav-btn.active,
.research-nav-btn:hover {
    background: linear-gradient(135deg, var(--coral) 0%, var(--blush) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.research-section {
    display: none;
}

.research-section.active {
    display: block;
}

/* Project header with logo */
.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 0;
}

.project-logo {
    flex-shrink: 0;
}

.github-link {
    margin-left: auto;
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--soft-white);
    box-shadow: var(--shadow-soft);
}

.github-link:hover {
    color: var(--coral);
    transform: scale(1.1);
}

/* Paper links */
.paper-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.paper-link:hover {
    color: var(--coral);
}

/* Posters grid */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.publications-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.profile-updated {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.poster-card {
    background: var(--soft-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.poster-content {
    padding: 1.5rem;
}

.poster-preview { margin: 0; background: #f2f4f7; }
.poster-image { display: block; padding: 1.25rem; }
.poster-image img { display: block; width: 100%; height: 320px; object-fit: contain; }
.poster-preview figcaption { padding: 0 1rem 0.75rem; text-align: center; color: var(--text-gray); font-size: 0.8rem; }
.poster-content h4 { font-size: 1.1rem; line-height: 1.5; margin-bottom: 0.6rem; }
.poster-venue { color: var(--text-gray); margin-bottom: 0.8rem; }
.poster-image:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }

.poster-link {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.poster-link:hover {
    color: var(--text-dark);
}

/* Timeline with organic feel */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--coral) 0%, var(--mint-dark) 50%, var(--lavender-dark) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: var(--soft-white);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint-dark) 100%);
    box-shadow: 0 0 0 4px var(--soft-white);
}

.timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.exp-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.exp-company {
    color: var(--coral);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.exp-duration {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exp-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Handwritten annotations */
.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--coral);
    transform: rotate(-2deg);
    margin: 1rem 0;
}

/* Project cards with soft aesthetics */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--soft-white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-period {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.project-content {
    padding: 1rem 2rem 2rem;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--peach) 100%);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
}

.tech-tag:hover {
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint-dark) 100%);
    color: white;
    transform: translateY(-2px);
}

/* Academic publication and talk lists, inspired by the supplied reference. */
.research-list {
    --research-accent: #a34576;
    --research-rule: #e4dce2;
}

.research-list .section-title {
    color: var(--research-accent);
    font-size: clamp(1.65rem, 3vw, 2rem);
    margin-bottom: .65rem;
    line-height: 1.3;
}

.research-list .section-title::after { display: none; }

.research-list .publications-intro {
    text-align: left;
    margin-bottom: .45rem;
    max-width: 700px;
}

.publication-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.2rem 0 .25rem;
    color: var(--research-accent);
    font-size: 1.15rem;
    font-weight: 600;
}

.publication-group-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--research-rule);
}

.research-row {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--research-rule);
}

.publication-list .research-row:last-child { border-bottom: 0; }
.research-row-content { min-width: 0; }

.research-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    text-decoration: none;
    border-radius: 3px;
    overflow: hidden;
    background: white;
}

.research-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

.research-cover {
    aspect-ratio: 8 / 5;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    color: #78536d;
    background: #f3edf3;
    line-height: 1.3;
}

.cover-venue { font-size: .72rem; letter-spacing: .03em; }
.cover-topic { font-size: 1.15rem; font-weight: 500; }
.cover-year { font-size: .8rem; font-variant-numeric: tabular-nums; }

.pub-title, .talk-title {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 .4rem;
}

.research-list .paper-link { color: #383038; text-decoration: none; }
.research-list .paper-link:hover { color: var(--research-accent); text-decoration: underline; text-underline-offset: 3px; }

.pub-authors { color: var(--text-gray); font-size: .95rem; margin-bottom: .35rem; }
.pub-authors strong { color: #383038; font-weight: 600; }
.pub-venue, .talk-venue { color: var(--text-gray); font-size: .95rem; margin-bottom: .3rem; }
.pub-venue cite { font-style: italic; }
.pub-status { color: var(--research-accent); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.pub-status::before { content: ' · '; }

.research-resources { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.research-link { color: var(--research-accent); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.research-link::before { content: '['; }
.research-link::after { content: ']'; }
.research-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.talk-kind { color: var(--research-accent); font-size: .78rem; font-weight: 600; margin-bottom: .25rem; }
.talk-date { color: var(--text-gray); font-size: .9rem; margin-bottom: .35rem; }
.talk-abstract { margin-top: .6rem; color: var(--text-gray); font-size: .9rem; }
.talk-abstract summary { cursor: pointer; width: fit-content; }
.talk-abstract summary:hover { color: var(--research-accent); }
.talk-abstract p { margin-top: .6rem; }

@media (max-width: 800px) {
    .research-row { grid-template-columns: 190px minmax(0, 1fr); gap: 1.3rem; }
    .cover-topic { font-size: 1rem; }
}

@media (max-width: 600px) {
    .research-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; }
    .research-media { max-width: 280px; }
    .research-cover { max-width: 220px; aspect-ratio: 2 / 1; }
    .cover-topic { margin: .35rem 0; }
    .pub-title, .talk-title { font-size: 1.08rem; }
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--sky-blue) 100%);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--coral);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--soft-white);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-menu li a {
        padding: 1rem;
        border-radius: 15px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-content {
        padding: 0 1rem;
    }

    .home-content {
        padding: 3rem 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

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

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

    .pdf-container {
        height: 60vh;
    }
}

/* Fade in animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--coral) 0%, var(--mint-dark) 50%, var(--lavender-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease;
    z-index: 1001;
}

/* Both language versions render their content without JavaScript. */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 130px; }
.page { display: block; animation: none; }
.page + .page { border-top: 1px solid var(--border-light); }
.research-section { display: block; margin-top: 3rem; }
.experience-section { display: block; }
.fade-in { opacity: 1; transform: none; }
.nav-container { max-width: 1240px; gap: 1rem; }
.nav-menu { gap: 0; }
.nav-menu li a { padding: .75rem 1rem; }
.language-switch { display: flex; gap: .3rem; flex-shrink: 0; }
.language-switch a { padding: .5rem .75rem; border-radius: 15px; color: var(--text-dark); text-decoration: none; }
.language-switch a[aria-current="page"] { background: var(--lavender); font-weight: 600; }
.home-content { max-width: 820px; padding: 2rem 0; }
.home-subtitle { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 500; margin-bottom: 1.25rem; }
.home-summary { max-width: 720px; margin: 0 auto 1rem; font-size: 1.12rem; }
.home-affiliation { color: var(--text-gray); }
.name-variant { font-size: .95rem; color: var(--text-gray); margin: -.5rem 0 1rem; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem 1.1rem; margin-top: 1.5rem; }
.profile-links a, .section-content a { color: #785d76; text-underline-offset: 3px; }
.section-content p + p { margin-top: 1.2rem; }
.research-nav-pills { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
.research-nav-btn { display: inline-block; text-decoration: none; text-align: center; }
.cv-link { margin: 0 0 1.5rem; }
.project-kicker { color: var(--text-gray); margin-top: .5rem; }
.site-footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--text-gray); }
.site-footer a { color: inherit; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .75rem; background: white; z-index: 2000; }
.skip-link:focus { top: .5rem; }
a:focus-visible { outline: 3px solid #785d76; outline-offset: 4px; }
@media (max-width: 950px) {
    .nav-container { padding: .75rem 1rem; flex-direction: column-reverse; gap: .5rem; }
    .nav-menu { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: .5rem; border-radius: 20px; }
    .nav-menu li { width: auto; flex: 0 0 auto; margin: 0; }
    .nav-menu li a { padding: .65rem .85rem; font-size: .9rem; }
    .language-switch a { padding: .25rem .7rem; }
    .home-content { padding: 1rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
