html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at center, #f7fbff 0%, #dcecff 100%);
    color: #0a1a2f;
    line-height: 1.6;
    margin: 0;
    padding: 4rem 1rem 2rem;
}

header {
    text-align: center;
    padding: 4rem 1rem 2rem;
}

.affiliations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: fit-content;
}

.navbar a {
    color: #0a1a2f;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.affiliations a {
    border-bottom: none;
}

.affiliation-logo {
    height: 60px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.affiliation-logo:hover {
    opacity: 1;
}

@font-face {
    font-family: 'TAN-Angleton';
    src: url('static/fonts/TAN-Angleton-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('static/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

h1 {
    font-size: 3rem;
    margin: 1rem 0;
    font-weight: 500;
    font-family: 'TAN-Angleton', serif;
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 3rem;
    font-family: 'TAN-Angleton', serif;
}

h3 {
    font-family: 'TAN-Angleton', serif;
}

.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.project {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project-description {
    text-align: justify;
}

.project-description ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.project-description li {
    margin-bottom: 0.5rem;
}

.project h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

p,
li {
    font-family: 'Montserrat';
}

a {
    color: #0a1a2f;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 26, 47, 0.4);
    font-family: 'Montserrat';
}

a:hover {
    border-bottom-color: #0a1a2f;
    font-family: 'Montserrat';
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-card {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.contact-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-icons a {
    border-bottom: none;
    color: #0a1a2f;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-bottom: none;
}

.icon {
    width: 32px;
    height: 32px;
}

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

.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #0a1a2f;
    border: 1px solid #0a1a2f;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #172a45;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-color: #172a45;
    color: #fff;
}

/* Publications Styles */
.publications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scholar-stats {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(10, 26, 47, 0.1);
}

.stat-label {
    font-weight: 600;
    color: #0a1a2f;
}

.stat-value {
    font-weight: 400;
}

.stat-divider {
    color: rgba(10, 26, 47, 0.3);
}

.scholar-link {
    color: #0a1a2f;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(10, 26, 47, 0.2);
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.scholar-link:hover {
    border-bottom-color: #0a1a2f;
}

.paper-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.paper-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(10, 26, 47, 0.05);
    transition: transform 0.2s ease;
}

.paper-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.8);
}

.paper-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0a1a2f;
    text-decoration: none;
    margin-bottom: 0.3rem;
}

.paper-title:hover {
    text-decoration: underline;
}

.paper-meta {
    font-size: 0.9rem;
    color: rgba(10, 26, 47, 0.8);
    margin-bottom: 0.5rem;
}

.paper-year {
    font-weight: 500;
}

.paper-citations {
    font-size: 0.85rem;
    color: rgba(10, 26, 47, 0.6);
    font-style: italic;
}

.loading-text {
    color: rgba(10, 26, 47, 0.5);
    font-style: italic;
}

.author-toggle {
    color: #0a1a2f;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.3rem;
    opacity: 0.7;
}

.author-toggle:hover {
    text-decoration: underline;
    opacity: 1;
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    transition: opacity 0.2s ease;
}

.collapsible-header:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

/* Talks Styles */
.talk-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.talk-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(10, 26, 47, 0.05);
    transition: transform 0.2s ease;
}

.talk-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.8);
}

.talk-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a1a2f;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.talk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(10, 26, 47, 0.8);
    align-items: center;
}

.talk-venue {
    font-weight: 500;
}

.talk-location {
    color: rgba(10, 26, 47, 0.7);
}

.talk-location::before {
    content: "•";
    margin: 0 0.5rem;
    color: rgba(10, 26, 47, 0.4);
}

.talk-year {
    font-weight: 500;
    color: rgba(10, 26, 47, 0.9);
}

.talk-year::before {
    content: "•";
    margin: 0 0.5rem;
    color: rgba(10, 26, 47, 0.4);
}

.talk-recording {
    margin-top: 0.75rem;
}

.recording-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0a1a2f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(10, 26, 47, 0.3);
    transition: all 0.2s ease;
}

.recording-link:hover {
    border-bottom-color: #0a1a2f;
    opacity: 0.8;
}

/* CV */
.cv-card {
    text-align: center;
}

.cv-embed {
    width: 100%;
    height: 900px;
    margin-top: 1.25rem;
    border: 1px solid rgba(10, 26, 47, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
}

.cv-note {
    margin-top: 0.75rem;
    opacity: 0.8;
}

@media (max-width: 700px) {
    .cv-embed {
        height: 70vh;
    }
}