:root {
    /* Professional Light Theme for Academic Pages */
    --bg-color: #fcfcfc;
    --card-bg: #ffffff;
    --card-border: #e1e4e8;
    --text-primary: #1f2937;
    --text-secondary: #1f2937;
    --accent-color: #0366d6;
    --accent-glow: rgba(3, 102, 214, 0.15);
    --badge-conf: #22863a;
    --badge-journal: #6f42c1;
    --badge-preprint: #b08800;
    --nav-height: 0px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --content-max-width: 1100px;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.018em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.45rem, 2.8vw, 1.8rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(252, 252, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

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

/* Sections */
.section {
    padding: 26px 2rem 60px;
    max-width: calc(var(--content-max-width) + 4rem);
    margin: 0 auto;
}

#publications.section {
    padding-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.6rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero */
.hero-wrapper {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 52px) 2rem 8px;
    background: var(--bg-color);
}

.hero-content {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    /* Centers the image vertically with the text */
    justify-content: flex-start;
    gap: 1.25rem;
}

.hero-profile-column {
    flex: 0 0 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
}

.hero-image-placeholder {
    width: 285px;
    height: 285px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    position: relative;
}

.hero-icon {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-text-column {
    flex: 1;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    padding-top: 0.9rem;
}

.hero-name {
    font-size: clamp(1.8rem, 3.6vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.022em;
    margin-bottom: 0.7rem;
    line-height: 1.08;
}

.hero-name-side {
    margin: 0.2rem 0 0.1rem;
    font-size: clamp(1.45rem, 2.8vw, 1.8rem);
    text-align: center;
}

.hero-title {
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    color: #4b5f77;
    font-weight: 500;
    margin-bottom: 1.4rem;
    letter-spacing: 0.01em;
}

.hero-bio {
    margin-bottom: 0;
}

.hero-bio p {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.62;
}

.hero-bio p:last-child {
    margin-bottom: 1rem;
}

.hero-email-line {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.62;
}

.hero-contact-info {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.hero-contact-line {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.45;
}

.hero-contact-line strong {
    font-weight: 600;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.4rem;
}

.hero-profile-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}



.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.32rem 0.65rem;
    border-radius: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.profile-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: #f5f8fc;
    transform: translateY(-1px);
}



/* Publications List */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: var(--transition);
}

.publication-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: #c7d0db;
}

.publication-item:hover::before {
    background: linear-gradient(180deg, var(--accent-color), #b392f0);
}

.pub-media {
    flex: 0 0 285px;
    display: flex;
    align-items: center;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

.pub-media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgba(22, 27, 34, 0.8);
    border: 1px dashed var(--card-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.pub-media img,
.pub-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    transition: none;
}

.publication-item:hover .pub-media-placeholder {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.publication-item:hover .pub-media img,
.publication-item:hover .pub-media video {
    box-shadow: none;
}

.pub-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pub-badges {
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-conf {
    background-color: #eef2f7;
    color: #1f3a5f;
    border: 1px solid #c9d4e3;
}

.badge-journal {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d6d9df;
}

.badge-preprint {
    background-color: #f7f3eb;
    color: #5b4630;
    border: 1px solid #ded2bf;
}

.pub-title {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pub-authors strong {
    color: var(--text-primary);
}

.pub-note {
    margin: -0.25rem 0 0.8rem;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 600;
}

.pub-abstract {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.pub-links {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.34rem 0.78rem;
    border: 1px solid #c5ceda;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: #1f314a;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 1.8c1.7 0 3.2.6 4.5 1.6h-2.2a12 12 0 0 0-1.2-1.6h-1.1zm-3.4 1.6h-2a8.2 8.2 0 0 1 4.3-1.6 10.8 10.8 0 0 0-1.2 1.6zM5.2 12c0-.7.1-1.4.3-2h3.1a16 16 0 0 0 0 4H5.5c-.2-.6-.3-1.3-.3-2zm1.4 3.8h2.2c.3.6.7 1.1 1.1 1.6a8.2 8.2 0 0 1-3.3-1.6zM9.7 12c0-.7.1-1.4.3-2h3.9c.2.6.3 1.3.3 2s-.1 1.4-.3 2h-3.9a7.7 7.7 0 0 1-.3-2zm2.3 5.4c-.7-.5-1.3-1-1.7-1.6h3.3c-.4.6-1 1.1-1.6 1.6zm2.1 0c.4-.5.8-1 1.1-1.6h2.2a8.2 8.2 0 0 1-3.3 1.6zm1.6-3.4a16 16 0 0 0 0-4h3.1c.2.6.3 1.3.3 2s-.1 1.4-.3 2h-3.1zM15.3 8c-.3-.6-.7-1.1-1.1-1.6h2.2A8.2 8.2 0 0 1 19 8h-3.7z'/%3E%3C/svg%3E");
}

.pub-link:hover {
    color: #0d2b53;
    border-color: #95aac4;
    background: linear-gradient(180deg, #ffffff 0%, #edf2f8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 3px 8px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.pub-link:focus-visible {
    outline: 2px solid #9ab4d4;
    outline-offset: 1px;
}

.pub-link::before {
    content: "";
    width: 0.82rem;
    height: 0.82rem;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: var(--icon-mask) center / contain no-repeat;
    mask: var(--icon-mask) center / contain no-repeat;
    opacity: 0.9;
}

.pub-link svg {
    display: none;
}

.pub-link[href*="arxiv.org"],
.pub-link[href*="openaccess.thecvf.com"],
.pub-link[href*="ieeexplore.ieee.org"] {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.8V8h4.2L14 3.8zM8 11h8v1.8H8V11zm0 4h8v1.8H8V15z'/%3E%3C/svg%3E");
}

.pub-link[href*="github.com"] {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 .5a12 12 0 0 0-3.79 23.4c.6.11.82-.26.82-.58v-2.2c-3.34.73-4.04-1.41-4.04-1.41-.54-1.38-1.33-1.75-1.33-1.75-1.08-.74.08-.72.08-.72 1.2.08 1.83 1.23 1.83 1.23 1.06 1.82 2.79 1.3 3.47 1 .11-.77.42-1.3.76-1.6-2.66-.3-5.46-1.33-5.46-5.92 0-1.31.47-2.37 1.23-3.2-.12-.3-.53-1.52.12-3.16 0 0 1-.32 3.3 1.22a11.5 11.5 0 0 1 6 0c2.3-1.54 3.3-1.22 3.3-1.22.66 1.64.25 2.86.12 3.16.77.83 1.23 1.89 1.23 3.2 0 4.6-2.8 5.61-5.48 5.91.43.37.82 1.1.82 2.22v3.29c0 .32.22.7.83.58A12 12 0 0 0 12 .5z'/%3E%3C/svg%3E");
}

.pub-link.pub-link-project {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 1.8c1.7 0 3.2.6 4.5 1.6h-2.2a12 12 0 0 0-1.2-1.6h-1.1zm-3.4 1.6h-2a8.2 8.2 0 0 1 4.3-1.6 10.8 10.8 0 0 0-1.2 1.6zM5.2 12c0-.7.1-1.4.3-2h3.1a16 16 0 0 0 0 4H5.5c-.2-.6-.3-1.3-.3-2zm1.4 3.8h2.2c.3.6.7 1.1 1.1 1.6a8.2 8.2 0 0 1-3.3-1.6zM9.7 12c0-.7.1-1.4.3-2h3.9c.2.6.3 1.3.3 2s-.1 1.4-.3 2h-3.9a7.7 7.7 0 0 1-.3-2zm2.3 5.4c-.7-.5-1.3-1-1.7-1.6h3.3c-.4.6-1 1.1-1.6 1.6zm2.1 0c.4-.5.8-1 1.1-1.6h2.2a8.2 8.2 0 0 1-3.3 1.6zm1.6-3.4a16 16 0 0 0 0-4h3.1c.2.6.3 1.3.3 2s-.1 1.4-.3 2h-3.1zM15.3 8c-.3-.6-.7-1.1-1.1-1.6h2.2A8.2 8.2 0 0 1 19 8h-3.7z'/%3E%3C/svg%3E");
}

.pub-link.pub-link-video,
.pub-link[href*="youtube.com"],
.pub-link[href*="youtu.be"] {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.7a9.3 9.3 0 1 0 0 18.6 9.3 9.3 0 0 0 0-18.6zm-2.1 5.4 6 3.9-6 3.9V8.1z'/%3E%3C/svg%3E");
}

.pub-link[href*="twitter.com"],
.pub-link[href*="x.com"] {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

.pub-link[href*="/poster."],
.pub-link[href$="poster.pdf"] {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 3v5h12V6H6zm0 7v5h5v-5H6zm7 0v1.8h5V13h-5zm0 3v2h5v-2h-5z'/%3E%3C/svg%3E");
}

.pub-link[href*="slides."],
.pub-link[href$=".ppt"],
.pub-link[href$=".pptx"] {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h11l5 5v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm10 1.8V8h3.2L14 4.8zM6.5 12h4.2a2.3 2.3 0 1 1 0 4.6H8.3V19H6.5v-7zm1.8 1.7v1.2h2.3a.6.6 0 1 0 0-1.2H8.3zm6-1.7h3v1.5h-3V12zm0 2.7h3v1.5h-3v-1.5z'/%3E%3C/svg%3E");
}



/* Footer */
.footer {
    padding: 0 2rem 2rem;
    text-align: center;
    border-top: none;
    margin-top: 0;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .publication-item {
        gap: 1rem;
    }

    .hero-wrapper {
        padding-top: calc(var(--nav-height) + 16px);
    }

    .hero-content {
        flex-direction: row;
        align-items: stretch;
        gap: 0.9rem;
    }

    .hero-text-column {
        align-items: flex-start;
    }

    .hero-profile-column {
        flex: 0 0 clamp(120px, 34vw, 190px);
    }

    .hero-image-placeholder {
        width: clamp(105px, 30vw, 175px);
        height: clamp(105px, 30vw, 175px);
    }

    .hero-name-side {
        font-size: clamp(1.45rem, 2.8vw, 1.8rem);
        text-align: center;
        width: 100%;
    }

    .hero-actions-row {
        justify-content: flex-start;
    }

    .hero-contact-info {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        display: none;
        /* In a real app, add a hamburger menu */
    }
}
