/* Aileron Font */
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/aileron/Aileron-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/aileron/Aileron-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/aileron/Aileron-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/aileron/Aileron-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/aileron/Aileron-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/aileron/Aileron-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

:root {
    --primary-color: #a38f61;
    --primary-dark: #0d47a1;
    --text-dark: #2c3e50;
    --text-muted: #5a6c7d;
    --bg-light: #f8f9fa;
    --bg-section: #ffffff;
    --border-color: #e9ecef;
    --accent: #4fc3f7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Aileron', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--bg-light);
}

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

a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0 2rem;
}

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

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-brand:hover {
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero / About Section */
.hero {
    padding: 120px 1rem 60px;
    background: var(--bg-section);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-card {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0rem;
}
.profile-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-focus {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.profile-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.profile-affiliation {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0rem;
}

.profile-affiliation-secondary {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0rem;
}


.profile-affiliation-secondary:last-of-type {
    margin-bottom: 1.5rem;
}

.profile-affiliation-secondary a {
    color: var(--primary-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.profile-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bio {
    padding-top: 0.5rem;
}

.bio p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.bio mark,
.bio .highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 500;
}

.bio-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.75rem 0;
}

/* Sections */
section {
    padding: 4rem 1rem;
}

section:nth-child(even) {
    background: var(--bg-section);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Talks Section */
.talks-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 1.05rem;
}

.talk-row td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.talk-row:last-child td {
    border-bottom: none;
}

.talk-row .talk-date {
    color: var(--text-muted);
    white-space: nowrap;
    vertical-align: top;
    padding-right: 2rem;
}

.talk-content {
    color: var(--text-muted);
    text-align: justify;
    vertical-align: top;
}

.talk-content a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Publications Section */
.pub-filter {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pub-filter label {
    font-weight: 500;
    color: var(--text-dark);
}

.pub-filter select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-section);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6c7d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.pub-filter select:hover {
    border-color: var(--primary-color);
}

.pub-filter select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(163, 143, 97, 0.1);
}

.pub-filter-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pub-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-content-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pub-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 1px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pub-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.pub-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.pub-title a {
    color: inherit;
}

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

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

.pub-year {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.pub-venue {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.pub-award {
    font-style: normal;
    margin-left: 0.5rem;
}

.pub-keywords {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pub-keywords strong {
    color: var(--text-dark);
    font-weight: 500;
}

.pub-colab {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pub-colab strong {
    color: var(--text-dark);
    font-weight: 500;
}

.pub-award-section {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pub-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pub-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.pub-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.pub-toggle {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.pub-abstract {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

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

.pub-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pub-figure-caption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.pub-abstract-text {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: justify;
}

/* Services Section */
.service-category {
    margin-bottom: 1.5rem;
}

.service-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.service-items-table {
    border-collapse: collapse;
    margin-top: 0.25rem;
    font-size: 1.05rem;
}

.service-item-row td {
    padding: 0.15rem 0;
    color: var(--text-muted);
    vertical-align: top;
}

.service-col1 {
    white-space: nowrap;
    padding-right: 0.3rem;
}

.service-separator {
    color: var(--text-muted);
    padding: 0 0.3rem;
}

.service-col2 {
    color: var(--text-muted);
}

.service-col3 {
    color: var(--text-muted);
}

.service-comment-row td {
    padding-top: 0;
    padding-bottom: 0.3rem;
}

.service-item-comment {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 1rem;
}

.service-comment-bullet {
    color: var(--text-muted);
    margin-right: 0.3rem;
}

.service-item-comment a {
    color: var(--primary-color);
    text-decoration: none;
}

.service-item-comment a:hover {
    text-decoration: underline;
}

/* Awards Section */
.award-year-group {
    margin-bottom: 1.5rem;
}

.award-year-header {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
}

.awards-list {
    list-style: none;
}

.award-item-wrapper {
    padding: 0rem 0;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.award-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.award-icon-paper {
    color: #ffd700;
}

.award-icon-personal {
    color: #ffd700;
}

.award-title {
    color: var(--text-dark);
}

.award-title em {
    font-style: italic;
}

.award-comment-wrapper {
    margin-top: 0.25rem;
    padding-left: 1.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.award-comment-wrapper p {
    margin: 0.1rem 0;
    color: var(--text-muted);
}

.award-comment-wrapper ul {
    list-style: none;
    padding-left: 0;
    margin: 0.1rem 0;
}

.award-comment-wrapper ul li {
    position: relative;
    padding-left: 1rem;
    margin: 0.1rem 0;
}

.award-comment-wrapper ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.award-comment-wrapper em {
    font-style: italic;
}

.award-comment-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
}

.award-comment-wrapper a::after {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75em;
    margin-left: 0.25em;
    vertical-align: super;
}

.award-comment-wrapper a:hover {
    text-decoration: underline;
}

/* Teaching Section */
.teaching-school-group {
    margin-bottom: 1.5rem;
}

.teaching-school-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.teaching-school-logo {
    max-width: 240px;
    height: 80px;
    object-fit: contain;
}

.teaching-school-name {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.teaching-experience {
    margin-bottom: 0.5rem;
}

.teaching-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.teaching-title strong {
    font-weight: 500;
}

.teaching-items-table {
    border-collapse: collapse;
    margin-top: 0.25rem;
    font-size: 1.05rem;
}

.teaching-item-row td {
    padding: 0.15rem 0;
    color: var(--text-muted);
    vertical-align: top;
}

.teaching-col1 {
    white-space: nowrap;
    padding-right: 0.3rem;
}

.teaching-separator {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.teaching-col2 {
    white-space: nowrap;
    padding-right: 0.3rem;
}

.teaching-col3 {
    color: var(--text-muted);
}

.teaching-comment-row td {
    padding-top: 0;
    padding-bottom: 0.3rem;
}

.teaching-item-comment {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 1rem;
}

.teaching-comment-bullet {
    color: var(--text-muted);
    margin-right: 0.3rem;
}

.teaching-item-comment a {
    color: var(--primary-color);
    text-decoration: none;
}

.teaching-item-comment a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .section-title {
        font-size: 1.6rem;
    }
}
