/* ============================================
   Theme CSS Variables - Dark (Default)
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-tertiary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.8);
    --bg-card-hover: rgba(25, 25, 35, 0.9);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.5);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --container-max: 1000px;
    --section-padding: 28px;
    --nav-height: 60px;

    /* Navigation background for dark theme */
    --nav-bg: rgba(10, 10, 15, 0.8);
    --nav-bg-scrolled: rgba(10, 10, 15, 0.95);

    /* Hero title gradient for dark theme */
    --hero-title-gradient: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
}

/* ============================================
   Light Theme Variables
   ============================================ */
[data-theme="light"] {
    /* Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f1f3f8;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(248, 249, 252, 0.95);

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.75);
    --text-tertiary: rgba(26, 26, 46, 0.6);
    --text-muted: rgba(26, 26, 46, 0.45);

    /* Accent Colors - slightly adjusted for light mode */
    --accent-primary: #5558e3;
    --accent-secondary: #7c5ce0;
    --accent-gradient: linear-gradient(135deg, #5558e3 0%, #7c5ce0 50%, #9747d8 100%);
    --accent-glow: rgba(85, 88, 227, 0.3);

    /* Borders */
    --border-color: rgba(26, 26, 46, 0.1);
    --border-hover: rgba(26, 26, 46, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.12);
    --shadow-glow: 0 0 60px rgba(85, 88, 227, 0.1);

    /* Navigation background for light theme */
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);

    /* Hero title gradient for light theme */
    --hero-title-gradient: linear-gradient(135deg, #1a1a2e 0%, rgba(26,26,46,0.85) 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

/* Smooth transitions for theme changes */
.nav,
.section,
.section-alt,
.research-card,
.pub-card,
.info-card,
.contact-card,
.footer,
.btn-secondary,
.btn-outline {
    transition: background-color var(--transition-slow),
                border-color var(--transition-slow),
                color var(--transition-slow),
                box-shadow var(--transition-slow);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Background Effects
   ============================================ */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(168, 85, 247, 0.08), transparent);
    pointer-events: none;
    z-index: -2;
    transition: var(--transition-slow);
}

[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(85, 88, 227, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 92, 224, 0.06), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(151, 71, 216, 0.04), transparent);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    transition: var(--transition-slow);
}

[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(26, 26, 46, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 46, 0.03) 1px, transparent 1px);
}

.bg-glow {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
    transition: var(--transition-slow);
}

[data-theme="light"] .bg-glow {
    background: radial-gradient(circle, rgba(85, 88, 227, 0.06) 0%, transparent 70%);
}

/* Light theme specific adjustments */
[data-theme="light"] .hero-avatar-img,
[data-theme="light"] .profile-image,
[data-theme="light"] .nav-avatar {
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .hero-avatar-img:hover,
[data-theme="light"] .profile-image:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

[data-theme="light"] .pub-venue-tag {
    box-shadow: 0 2px 8px rgba(85, 88, 227, 0.2);
}

[data-theme="light"] .venue {
    background: rgba(85, 88, 227, 0.08);
    border-color: rgba(85, 88, 227, 0.2);
}

[data-theme="light"] .research-tags span {
    background: rgba(85, 88, 227, 0.08);
}

[data-theme="light"] .pub-tag {
    background: rgba(85, 88, 227, 0.06);
    border-color: rgba(85, 88, 227, 0.15);
}


@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.nav-avatar:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-normal);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}


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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--nav-height) + 2.5rem) 2rem 2rem;
    position: relative;
}

.hero-container {
    max-width: var(--container-max);
    width: 100%;
    padding: 0 2rem;
    text-align: center;
}

/* Merged Hero Layout */
.hero-merged {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.hero-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease both;
}

.hero-image {
    position: relative;
}

.profile-image-hero {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.2);
    transition: var(--transition-normal);
}

.profile-image-hero:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), 0 0 80px rgba(99, 102, 241, 0.35);
    transform: scale(1.03);
}

.hero-info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.hero-info-item:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.hero-info-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.hero-right {
    flex: 1;
}

.venue-inline {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

/* Hero with Avatar Layout */
.hero-with-avatar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.hero-avatar-side {
    flex-shrink: 0;
    width: 200px;
    order: -1;
    animation: fadeInUp 0.6s ease both;
}

.hero-avatar-wrapper {
    position: relative;
}

.hero-avatar-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99, 102, 241, 0.25);
    transition: var(--transition-normal);
}

.hero-avatar-img:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), 0 0 100px rgba(99, 102, 241, 0.4);
    transform: scale(1.03);
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.hero-location svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.hero-content-side {
    flex: 1;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    min-height: 1.2em;
    line-height: 1.2;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent-primary);
    margin-left: 4px;
    animation: blink-cursor 0.8s ease-in-out infinite;
    vertical-align: text-bottom;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.title-line {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.title-name {
    display: block;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin: 0 0 0.75rem 0;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

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

/* ============================================
   Hero - Latest News
   ============================================ */
.hero-news {
    width: 100%;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-news-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-news-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.hero-news-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
}

.hero-news-scroll::-webkit-scrollbar {
    width: 4px;
}

.hero-news-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.hero-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

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

.news-item.important .news-text strong {
    color: var(--accent-primary);
}

.news-date {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    min-width: 80px;
}

.news-text {
    flex: 1;
}

.news-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 2rem;
    align-items: start;
}

.section-container > *:not(.section-header) {
    grid-column: 2;
}

.section-header {
    grid-column: 1;
    text-align: left;
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.section-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.section-footer {
    text-align: center;
    margin-top: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

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

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
    transition: var(--transition-normal);
}

.profile-image:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), 0 0 60px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
    max-width: 800px;
}

.about-lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-lead strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.about-text strong {
    color: var(--text-primary);
}

.venue {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.card-content h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.card-content p {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ============================================
   Experience Section
   ============================================ */
.experience-timeline {
    position: relative;
    max-width: none;
    margin: 0;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.experience-item {
    position: relative;
    padding-bottom: 1rem;
}

.experience-item:last-child {
    padding-bottom: 0;
}

.experience-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-primary);
    z-index: 1;
    transform: translateX(calc(-50% + 7px));
}

.experience-date {
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.experience-card {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.experience-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.experience-role {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-org {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ============================================
   Research Section
   ============================================ */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.research-card {
    position: relative;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.research-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.research-card:hover .card-glow {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.research-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.research-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    color: var(--accent-primary);
}

.research-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.research-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-tags span {
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.research-card[data-filter-tag] {
    cursor: pointer;
}

.research-card.filter-active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Representative Works in Research Cards */
.research-cite {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.research-cite:hover {
    text-decoration: underline;
}

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

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: none;
    margin: 0;
}

.pub-card {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.pub-card.filtered-out {
    display: none;
}

.pub-card.highlight {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.pub-card:hover {
    background: var(--bg-card-hover);
    border-color: #3b82f6;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
    transform: translateX(8px);
}

.pub-year-section {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.pub-year {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pub-citations {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    transition: var(--transition-fast);
}

.pub-citations svg {
    opacity: 0.7;
}

.pub-citations:hover {
    color: var(--accent-primary);
}

.pub-citations .citation-count {
    min-width: 20px;
}

.pub-citations.loading .citation-count {
    animation: pulse-opacity 1s ease-in-out infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.pub-content {
    flex: 1;
}

.pub-venue-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-gradient);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.pub-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pub-title a {
    color: #3b82f6;
    text-decoration: none;
    transition: var(--transition-fast);
}

.pub-title a:hover {
    text-decoration: underline;
}

.pub-authors {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pub-authors strong {
    color: var(--accent-primary);
}

/* Publication Tag Badges */
.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.pub-tag {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    cursor: default;
}

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

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    max-width: none;
    margin: 0;
    text-align: left;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-normal);
    position: relative;
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    color: var(--accent-primary);
}

.contact-info {
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition-normal);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-bottom {
    text-align: center;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 24px;
        --nav-height: 64px;
    }

    .section-container {
        display: block;
    }

    .section-header {
        position: static;
        text-align: left;
        margin-bottom: 1rem;
    }

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

    /* Mobile navigation container */
    .nav {
        height: var(--nav-height);
    }

    .nav-container {
        height: 100%;
    }

    /* Mobile menu overlay backdrop */
    .nav-overlay {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 8px; /* 留出滚动条空间，避免遮挡 */
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu - slide from right */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: 8px; /* 留出滚动条空间，避免遮挡 */
        bottom: auto;
        left: auto;
        width: 280px;
        max-width: calc(85vw - 8px);
        height: auto;
        max-height: calc(100vh - var(--nav-height));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 0 0 16px 16px; /* 两侧都有圆角 */
        box-shadow: var(--shadow-lg);
        transform: translateX(calc(100% + 8px));
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.35s ease,
                    visibility 0.35s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        font-size: 1rem;
        font-weight: 500;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
        transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }

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

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: var(--bg-card-hover);
        padding-left: 2rem;
        color: var(--accent-primary);
    }

    .nav-actions {
        display: flex;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .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);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero {
        padding: calc(var(--nav-height) + 1.5rem) 1.5rem 1.5rem;
    }

    .hero-with-avatar {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-avatar-side {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-avatar-img {
        width: 160px;
        height: 160px;
    }

    .hero-content-side {
        text-align: center;
    }

    .typing-text {
        display: block;
    }

    .hero-subtitle,
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .hero-news-scroll {
        max-height: 160px;
    }

    .news-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .news-date {
        min-width: auto;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    .pub-card {
        flex-direction: column;
        gap: 1rem;
    }

    .pub-year-section {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .pub-year {
        width: auto;
    }

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

    .info-card {
        flex-direction: row;
        text-align: left;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 1rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-lead {
        font-size: 1.125rem;
    }

    .research-card {
        padding: 1.25rem;
    }

    .pub-card {
        padding: 1.25rem;
    }

    .contact-card {
        padding: 1.25rem;
    }
}

/* ============================================
   Animations for Scroll
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CV Page Styles
   ============================================ */
.cv-page {
    padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.cv-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease both;
}

.cv-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
    margin-bottom: 1.5rem;
}

.cv-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.cv-title {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cv-contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.cv-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.cv-contact-item:hover {
    color: var(--accent-primary);
}

.cv-contact-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* CV Sections */
.cv-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease both;
}

.cv-section:nth-child(2) { animation-delay: 0.1s; }
.cv-section:nth-child(3) { animation-delay: 0.15s; }
.cv-section:nth-child(4) { animation-delay: 0.2s; }
.cv-section:nth-child(5) { animation-delay: 0.25s; }
.cv-section:nth-child(6) { animation-delay: 0.3s; }

.cv-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid transparent;
    border-image: var(--accent-gradient) 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cv-section-title svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Experience & Education Items */
.cv-item {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.cv-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.cv-item:last-child {
    margin-bottom: 0;
}

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

.cv-item-role {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cv-item-date {
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-item-org {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.cv-item-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    line-height: 1.7;
}

.cv-sub-items {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.cv-sub-item {
    padding: 0.625rem 0 0.625rem 0.75rem;
}

.cv-sub-item + .cv-sub-item {
    border-top: 1px solid var(--border-color);
}

.cv-sub-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cv-sub-item-role {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cv-sub-item-date {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-sub-item-desc {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 0.375rem;
    line-height: 1.7;
}

/* Research Interests */
.cv-interests-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Publications List */
.cv-pub-item {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: var(--transition-normal);
}

.cv-pub-item:hover {
    border-color: var(--border-hover);
}

.cv-pub-item:last-child {
    margin-bottom: 0;
}

.cv-pub-venue {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--accent-gradient);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.cv-pub-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

.cv-pub-authors {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.cv-pub-authors strong {
    color: var(--accent-primary);
}

/* Print / Download button */
.cv-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.05s both;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-cv-print {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-cv-print:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-cv-back {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-cv-back:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* CV Publications Footer */
.cv-pub-footer {
    text-align: center;
    margin-top: 1rem;
}

.cv-pub-footer .btn-cv {
    display: inline-flex;
}

/* CV Sidebar Navigation */
.cv-sidebar-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cv-sidebar-nav.visible {
    opacity: 1;
    visibility: visible;
}

.cv-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0.25rem 0;
    font-size: 0;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Horizontal indicator line */
.cv-sidebar-link::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-tertiary);
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0.5;
}

/* Hover: show title text */
.cv-sidebar-link:hover {
    font-size: 0.7rem;
    color: var(--text-secondary);
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cv-sidebar-link:hover::after {
    width: 12px;
    background: var(--text-secondary);
    opacity: 1;
}

/* Active section indicator */
.cv-sidebar-link.active::after {
    width: 28px;
    height: 3px;
    background: var(--accent-primary);
    opacity: 1;
}

.cv-sidebar-link.active:hover {
    color: var(--accent-primary);
    font-weight: 600;
}

/* CV Responsive */
@media (max-width: 1280px) {
    .cv-sidebar-nav {
        right: 0.75rem;
    }

    .cv-sidebar-link::after {
        width: 16px;
    }

    .cv-sidebar-link.active::after {
        width: 22px;
    }
}

@media (max-width: 768px) {
    .cv-page {
        padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
    }

    .cv-name {
        font-size: 1.875rem;
    }

    .cv-item-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .cv-contact-row {
        gap: 0.75rem;
    }

    .cv-sidebar-nav {
        display: none;
    }
}

/* CV Print Styles */
@media print {
    @page {
        margin: 12mm 14mm;
        size: A4;
    }

    .nav, .bg-gradient, .bg-grid, .bg-glow, .cv-actions, .footer, .cv-sidebar-nav {
        display: none !important;
    }

    .cv-page {
        padding: 0;
        max-width: 100%;
    }

    body {
        background: white;
        color: #1a1a2e;
        font-size: 9.5pt;
    }

    /* Compact header */
    .cv-header {
        margin-bottom: 0.6rem;
    }

    .cv-name {
        background: none;
        -webkit-text-fill-color: #1a1a2e;
        color: #1a1a2e;
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .cv-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .cv-contact-row {
        gap: 0.75rem;
        margin-top: 0.3rem;
    }

    .cv-contact-item {
        font-size: 0.75rem;
    }

    /* Compact sections */
    .cv-section {
        margin-bottom: 0.8rem;
        animation: none;
    }

    .cv-section-title {
        font-size: 0.9rem;
        padding-bottom: 0.3rem;
        margin-bottom: 0.5rem;
        border-image: none;
        border-bottom-color: #6366f1;
    }

    .cv-section-title svg {
        display: none;
    }

    /* Experience & Education items */
    .cv-item {
        background: transparent;
        border-color: #e5e7eb;
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.35rem;
        border-radius: 4px;
        page-break-inside: avoid;
        transition: none;
    }

    .cv-item:hover {
        transform: none;
    }

    .cv-item-header {
        margin-bottom: 0.1rem;
        gap: 0.5rem;
    }

    .cv-item-role {
        font-size: 0.8rem;
    }

    .cv-item-date {
        font-size: 0.7rem;
    }

    .cv-item-org {
        font-size: 0.75rem;
    }

    .cv-item-desc {
        font-size: 0.7rem;
        margin-top: 0.2rem;
        line-height: 1.5;
    }

    /* Sub-items */
    .cv-sub-items {
        border-left-color: #e5e7eb;
        margin-top: 0.3rem;
        padding-left: 0.6rem;
    }

    .cv-sub-item {
        padding: 0.2rem 0 0.2rem 0.5rem;
    }

    .cv-sub-item + .cv-sub-item {
        border-top-color: #e5e7eb;
    }

    .cv-sub-item-header {
        gap: 0.5rem;
    }

    .cv-sub-item-role {
        color: #1a1a2e;
        font-size: 0.78rem;
    }

    .cv-sub-item-date {
        color: #6366f1;
        font-size: 0.68rem;
    }

    .cv-sub-item-desc {
        color: #4a4a6a;
        font-size: 0.68rem;
        margin-top: 0.1rem;
        line-height: 1.4;
    }

    /* Research interests */
    .cv-interests-text {
        color: #1a1a2e;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .cv-interests-text strong {
        color: #1a1a2e;
    }

    /* Publications */
    .cv-pub-item {
        background: transparent;
        border-color: #e5e7eb;
        padding: 0.35rem 0.6rem;
        margin-bottom: 0.3rem;
        border-radius: 4px;
        page-break-inside: avoid;
        transition: none;
    }

    .cv-pub-venue {
        background: #6366f1;
        font-size: 0.6rem;
        padding: 0.05rem 0.35rem;
        margin-bottom: 0.25rem;
    }

    .cv-pub-title {
        font-size: 0.78rem;
        margin-bottom: 0.15rem;
    }

    .cv-pub-authors {
        font-size: 0.68rem;
        line-height: 1.4;
    }

    .cv-pub-footer {
        display: none;
    }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

[data-theme="light"]::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="light"]::-webkit-scrollbar-thumb {
    background: rgba(26, 26, 46, 0.2);
}

[data-theme="light"]::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 26, 46, 0.35);
}
