/* ====================================
   CSS Variables for Theme Management
   ==================================== */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --accent-primary: #2563eb;
    --accent-secondary: #1e40af;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --sidebar-hover: #334155;
    
    /* Spacing */
    --sidebar-width: 280px;
    --content-max-width: 1000px;
    --section-spacing: 80px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif Pro', Georgia, serif;
    
    /* Consistent Font Sizes */
    --font-heading: 1.1rem;
    --font-content: 0.9rem;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-hover: #2563eb;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --sidebar-bg: #0a0f1e;
    --sidebar-text: #e2e8f0;
    --sidebar-hover: #1e293b;
}

/* ====================================
   Global Styles & Reset
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ====================================
   Sidebar Navigation
   ==================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.profile-title {
    font-size: var(--font-content);
    color: var(--accent-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.profile-affiliation {
    font-size: var(--font-content);
    color: var(--sidebar-text);
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    margin-top: 2rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text);
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.theme-toggle i {
    margin-right: 0.5rem;
}

/* ====================================
   Main Content Area
   ==================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 3rem 4rem;
    max-width: calc(var(--content-max-width) + var(--sidebar-width) + 8rem);
}

.content-section {
    margin-bottom: var(--section-spacing);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* ====================================
   About Section
   ==================================== */
#about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-content {
    flex: 1;
}

.about-image {
    flex-shrink: 0;
    text-align: center;
}

.profile-picture {
    width: 300px;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

.profile-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 8px;
}

.profile-group {
    font-size: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

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

.profile-group a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.profile-affiliation {
    font-size: var(--font-content);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-office {
    font-size: var(--font-content);
    color: var(--text-secondary);
    margin: 0;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.research-interests {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-primary-rgb), 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    box-shadow: var(--shadow-sm);
}

.research-interests h3 {
    font-size: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.research-interests h3 i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.interest-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.interest-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), rgba(var(--accent-primary-rgb), 0.7));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interest-icon i {
    color: var(--text-primary);
    font-size: var(--font-content);
}

.interest-item span {
    color: var(--text-primary);
    font-size: var(--font-content);
    font-weight: 500;
}

.interests-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.interests-list li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: var(--font-content);
}

.interests-list i {
    color: var(--accent-primary);
    margin-right: 0.75rem;
}

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

.publication-item {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.publication-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.pub-image-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pub-image {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
}

.pub-image::after {
    content: '\f065';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pub-image:hover::after {
    opacity: 1;
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pub-image:hover img {
    transform: scale(1.05);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pub-title {
    font-size: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.pub-status {
    padding: 0.4rem 0.8rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    min-width: 120px;
}

.pub-status.in-prep {
    background: #f59e0b;
}

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

.pub-venue {
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: var(--font-content);
}

.pub-abstract {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

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

.pub-link {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.pub-link-text {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-style: italic;
}

/* ====================================
   Experience Section
   ==================================== */
.experience-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.experience-item {
    position: relative;
}

.exp-timeline-marker {
    display: none;
}

.exp-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    border-top: 3px solid var(--accent-primary);
    height: 100%;
}

.exp-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.exp-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 0.4rem;
    box-shadow: var(--shadow-sm);
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.exp-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exp-logo i {
    color: var(--accent-primary);
}

.exp-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding-right: 70px;
    gap: 0.25rem;
}

.exp-title {
    font-size: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.exp-duration {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: var(--font-content);
}

.exp-organization {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-size: var(--font-content);
}

.exp-organization i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.exp-location {
    color: var(--text-tertiary);
    font-size: var(--font-content);
    margin-bottom: 0.5rem;
}

.exp-location i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.75rem;
}

.exp-group,
.exp-advisor {
    color: var(--text-tertiary);
    font-size: var(--font-content);
    margin-bottom: 0.4rem;
}

.exp-highlights {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.exp-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: var(--font-content);
}

/* ====================================
   Education Section
   ==================================== */
.education-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.education-item {
    position: relative;
}

.edu-timeline-marker {
    display: none;
}

.edu-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-primary);
    height: 100%;
}

.edu-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.edu-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
}

.edu-title {
    font-size: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.edu-duration {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: var(--font-content);
}

.edu-organization {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-size: var(--font-content);
}

.edu-organization i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.edu-location {
    color: var(--text-tertiary);
    font-size: var(--font-content);
    margin-bottom: 0.75rem;
}

.edu-location i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.75rem;
}

.edu-details {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.edu-details li {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: var(--font-content);
}

/* ====================================
   Projects Section
   ==================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.project-badge {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: var(--font-content);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: var(--font-content);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: var(--font-content);
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: var(--font-content);
    font-weight: 500;
}

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

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-content);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

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

/* ====================================
   CV Section
   ==================================== */
.cv-content {
    max-width: 900px;
    text-align: center;
}

.cv-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cv-download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.85rem;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .main-content {
        padding: 2.5rem 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --section-spacing: 60px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .about-content-wrapper {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .profile-picture {
        width: 180px;
        height: 240px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-list {
        grid-template-columns: 1fr;
    }
    
    .pub-image-wrapper {
        display: none;
    }
    
    .exp-logo {
        position: static;
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .exp-header {
        padding-right: 0;
    }
    
    /* Mobile Menu Toggle */
    body::before {
        content: '\2630';
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        width: 50px;
        height: 50px;
        background: var(--accent-primary);
        color: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .pub-header {
        flex-direction: column;
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ====================================
   Accessibility & Print Styles
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

@media print {
    .sidebar,
    .theme-toggle,
    .social-links {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--accent-primary);
    color: white;
}

::-moz-selection {
    background: var(--accent-primary);
    color: white;
}
