/* ============================================
   Vlad Tarko - Academic Personal Website
   Modern, clean, professional styling
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #c53030;
    --accent-light: #e53e3e;
    --text: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --surface: #ffffff;
    --surface-alt: #f7fafc;
    --surface-raised: #ffffff;
    --border: #e2e8f0;
    --on-primary: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --nav-mobile-bg: #ffffff;
    --hero-bg: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    --footer-bg: #1a365d;
    --footer-text: #ffffff;
    --footer-muted: rgba(255,255,255,0.8);
    --footer-border: rgba(255,255,255,0.2);
    --abstract-bg: rgba(255, 255, 255, 0.65);
    --hover-bg: rgba(26, 54, 93, 0.02);
    --photo-border: #ffffff;
    --status-bg: #fef3c7;
    --status-text: #92400e;
    --award-bg: #fee2e2;
    --theme-select-bg: #ffffff;
    --theme-select-text: #2d3748;
    --theme-select-border: #cbd5e0;
    --control-radius: 999px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1100px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: 1.5rem;
}

.theme-picker {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.theme-picker select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.38rem 1.75rem 0.38rem 0.6rem;
    background-color: var(--theme-select-bg);
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    border: 1px solid var(--theme-select-border);
    border-radius: var(--control-radius);
    color: var(--theme-select-text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-picker select:hover {
    border-color: var(--primary);
}

.theme-picker select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background: var(--hero-bg);
    position: relative;
}

.hero-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.hero-affiliation {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link svg {
    flex-shrink: 0;
}

.social-link {
    width: 34px;
    height: 34px;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--control-radius);
    color: var(--text-light);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    transform: translateY(-1px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--on-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--on-primary);
}

.hero-image {
    flex-shrink: 0;
}

.profile-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--photo-border);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-muted);
}

.scroll-indicator a:hover {
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ============================================
   About Section
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-main h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
}

.about-main p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-main img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* ============================================
   Publications
   ============================================ */

.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn.active {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.pub-category {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
}

.pub-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.pub-item:hover {
    background: var(--hover-bg);
    margin: 0 -1rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
}

.pub-year {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
    padding-top: 0.1rem;
}

.pub-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.25rem;
}

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

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

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

.pub-title,
.pub-details {
    overflow-wrap: anywhere;
}

.pub-details {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.pub-link {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

.pub-link:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
    color: var(--on-primary);
}

.pub-abstract {
    margin-top: 0.65rem;
    max-width: 75ch;
    font-size: 0.875rem;
    color: var(--text-light);
}

.pub-abstract summary,
.talk-group summary {
    width: fit-content;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.pub-abstract summary:hover,
.talk-group summary:hover {
    color: var(--accent);
}

.pub-abstract p {
    margin-top: 0.65rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--border);
    background: var(--abstract-bg);
    line-height: 1.7;
}

.talk-group {
    margin-top: 1rem;
}

.talk-group-items {
    margin-top: 0.5rem;
}

.pub-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--status-bg);
    color: var(--status-text);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.pub-award {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--award-bg);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 0.25rem;
}

/* ============================================
   Teaching
   ============================================ */

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.teaching-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.teaching-block h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.course-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-list li:last-child {
    border-bottom: none;
}

.course-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* ============================================
   Talks
   ============================================ */

.talks-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.talk-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.talk-date {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.talk-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.talk-venue {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.talks-more {
    margin-top: 1.5rem;
    font-weight: 600;
}

.referee-lists {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referee-lists p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.referee-journals {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Book Pages
   ============================================ */

.book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: start;
}

.book-main {
    min-width: 0;
    max-width: 70ch;
}

.book-back {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.book-back a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.book-back a:hover {
    color: var(--primary);
}

.book-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0 0 2rem;
}

.book-content {
    color: var(--text-light);
    line-height: 1.75;
}

.book-content h2,
.book-content h3,
.book-content h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
    margin: 2.25rem 0 1rem;
    font-weight: 700;
}

.book-content h2 {
    font-size: 1.6rem;
}

.book-content h3 {
    font-size: 1.3rem;
}

.book-content h4 {
    font-size: 1.1rem;
}

.book-content p {
    margin: 0 0 1.15rem;
}

.book-content ul,
.book-content ol {
    margin: 0 0 1.15rem;
    padding-left: 1.5rem;
}

.book-content li {
    margin-bottom: 0.4rem;
}

.book-content a {
    color: var(--accent);
    text-decoration: none;
}

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

.book-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.75rem 0;
    border-radius: var(--radius);
}

.book-content iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    margin: 1.75rem 0;
}

.book-content blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--border);
    color: var(--text-muted);
    font-style: italic;
}

.book-sidebar {
    position: sticky;
    top: 100px;
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .book-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-sidebar {
        position: static;
    }

    .book-cover {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ============================================
   Collaborators
   ============================================ */

.collaborators-figure {
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.collaborators-figure img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.collaborators-intro {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.collaborator-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.collaborator-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.collaborator-name {
    display: block;
    font-weight: 600;
    color: var(--primary);
}

.collaborator-affiliation {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ============================================
   Awards
   ============================================ */

.awards-timeline {
    margin-top: 2rem;
}

.award-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.award-year {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.award-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   CV Section
   ============================================ */

.cv-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.cv-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.cv-year {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.cv-detail p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.affiliations-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.cv-download {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--footer-muted);
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-links a {
    color: var(--footer-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--footer-text);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--footer-muted);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-contact {
        justify-content: center;
    }

    .hero-links {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        display: block;
    }

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

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--nav-mobile-bg);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

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

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .pub-item,
    .talk-item,
    .award-item,
    .cv-entry {
        grid-template-columns: 60px 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .pub-filters {
        gap: 0.35rem;
    }

    .filter-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .pub-item,
    .talk-item,
    .award-item,
    .cv-entry {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .pub-year,
    .talk-date,
    .award-year,
    .cv-year {
        font-size: 0.75rem;
    }
}

/* ============================================
   Utility
   ============================================ */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}
