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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background-color: #2c3e50;
    color: #fff;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-name:hover {
    color: #dde4ea;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #cfd8dc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.active {
    color: #fff;
    font-weight: 600;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Profile section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem 2rem 0 2rem;
}

.profile-section .profile-photo {
    position: static;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.social-links-fixed {
    position: fixed;
    top: calc(60px + 2rem);
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    z-index: 100;
}

.social-links-fixed a {
    display: flex;
    color: #444;
    transition:
        color 0.2s,
        transform 0.2s;
}

.social-links-fixed a:hover {
    color: #0066cc;
    transform: translateY(-2px);
}

.social-links-fixed svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.social-links-fixed a[data-tooltip] {
    position: relative;
}

.social-links-fixed a[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.social-links-fixed a[data-tooltip]:hover::before {
    opacity: 1;
}

.home-main {
    justify-content: flex-start;
    padding-top: 5rem;
}

.profile-info {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    padding-top: 0.25rem;
    flex: 1;
    min-width: 0;
}

.profile-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.profile-tagline {
    margin-bottom: 0.75rem;
    font-style: italic;
    color: #444;
}

.profile-role {
    margin-bottom: 0.5rem;
}

/* Social links */
.social-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    transition:
        color 0.2s,
        transform 0.2s;
}

.social-links a:hover {
    color: #0066cc;
    transform: translateY(-2px);
}

.social-links svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

/* Publications / Presentations */
.section-heading {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 640px;
    width: 100%;
}

.carousel + .section-heading {
    margin-top: 5rem;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 640px;
    width: 100%;
}

.carousel-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
    padding: 0 0.25rem;
}

.carousel-btn:hover {
    color: #555;
}

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

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

.pub-list li {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
}

.pub-list li.active {
    display: flex;
}

.pub-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.pub-title a,
.pub-title a:visited {
    text-decoration: underline;
    color: #333;
}

.pub-authors {
    font-size: 0.9rem;
    color: #555;
}

.pub-venue {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

main a {
    color: #555;
    text-decoration: underline;
}

main a:visited {
    color: #555;
}

main a:hover,
main a:visited:hover {
    color: #0066cc;
}

/* Experience page links always shown in blue */
.exp-blurb a,
.exp-blurb a:visited,
.exp-skills a,
.exp-skills a:visited {
    color: #0066cc;
}

/* Blurb */
.blurb {
    max-width: 600px;
    text-align: center;
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

/* Profile photo */
.profile-photo {
    position: absolute;
    top: calc(60px + 2rem);
    left: 2rem;
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

/* About page */
.about-content {
    max-width: 640px;
    text-align: left;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
    margin-top: 4rem;
}

.about-content h1 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 1.25rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Left-aligned content pages */
.content-left {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2.5rem 4rem;
}

.content-left h1 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Experience */
.exp-company {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.exp-company:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-company h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.exp-location {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.25rem;
}

.exp-role {
    margin-top: 2.5rem;
    margin-left: 3rem;
}

.exp-role h4 {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.15rem;
}

.exp-date {
    color: #777;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.exp-blurb {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}

.exp-blurb::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
}

.exp-skills {
    margin-top: 0.5rem;
    margin-left: 3rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* Education */
.edu-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.edu-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-entry h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.edu-degree {
    color: #444;
    font-size: 0.95rem;
}

.edu-date {
    color: #777;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.edu-blurb {
    margin-left: 3rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.edu-detail {
    margin-left: 3rem;
    margin-top: 0.75rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.25rem 2rem;
    font-size: 0.85rem;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 480px) {
    .social-links {
        gap: 1.5rem;
    }

    .social-links svg {
        width: 28px;
        height: 28px;
    }

    .blurb,
    .about-content {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}
