:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #4d94ff;
    --secondary-color: #00c896;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f2f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== NAVIGATION ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo-img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    display: block;
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 200, 150, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(36px, 7vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-description {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }

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

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
}

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

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-large { padding: 14px 28px; font-size: 16px; }

/* ===================== SECTIONS ===================== */
.section {
    padding: 80px 20px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===================== ABOUT ===================== */
.about-section { background-color: var(--bg-primary); }

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
}

.about-text .lead {
    font-size: clamp(17px, 2.5vw, 20px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.about-section-block {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.about-section-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-section-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section-block h3::before {
    content: '';
    width: 4px;
    height: 22px;
    min-width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-section-block p { margin-bottom: 14px; }
.about-section-block p:last-child { margin-bottom: 0; }

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

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.inline-link:hover { border-bottom-color: var(--primary-color); }

/* ===================== PROJECTS ===================== */
.projects-section { background-color: var(--bg-primary); }

.project-featured {
    max-width: 900px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 200, 150, 0.03) 100%);
    border-radius: 12px;
    padding: 32px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.project-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.project-featured-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.project-featured-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
}

.project-featured-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-featured-description > p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-highlights {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.project-highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.highlight-icon svg { width: 20px; height: 20px; }

.project-highlight-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-highlight-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.project-impact {
    background-color: var(--bg-primary);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.project-impact h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-impact p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.project-tech-stack h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.05);
}

.projects-additional {
    max-width: 900px;
    margin: 0 auto;
}

.projects-additional-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-icon svg { width: 18px; height: 18px; }

.project-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.project-card-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-card-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card-tags span {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-color);
}

/* ===================== PUBLICATIONS ===================== */
.publications-section { background-color: var(--bg-secondary); }

.publications-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.publications-intro p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.scholar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.scholar-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.scholar-link svg { width: 18px; height: 18px; }

.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.publication-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.publication-type {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.publication-venue {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.publication-abstract {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.publication-actions { display: flex; gap: 10px; }

/* ===================== EXPERTISE ===================== */
.expertise-section { background-color: var(--bg-primary); }

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.expertise-card {
    padding: 28px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.expertise-card:hover {
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
}

.expertise-icon svg { width: 24px; height: 24px; }

.expertise-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.expertise-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================== RESUME ===================== */
.resume-section { background-color: var(--bg-secondary); }

.resume-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.resume-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.resume-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.resume-viewer {
    max-width: 800px;
    margin: 0 auto;
    display: none;
}

.resume-viewer.active {
    display: block;
}

.resume-viewer-inner {
    background-color: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.resume-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.resume-viewer-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.resume-viewer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 4px;
}

.resume-viewer-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.resume-viewer-close svg { width: 20px; height: 20px; }

.resume-viewer-body {
    padding: 16px;
    background-color: #e8e8e8;
}

.resume-page {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.resume-page:last-child { margin-bottom: 0; }

.resume-page {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.resume-page.zoomed {
    cursor: grab;
    transform: scale(2);
    position: relative;
    z-index: 10;
    transition: none;
}

.resume-page.zoomed.dragging {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .resume-page.zoomed {
        transform: scale(2.5);
    }
}

.resume-viewer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--bg-secondary);
}

/* ===================== CONTACT ===================== */
.contact-section { background-color: var(--bg-primary); }

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-opportunities {
    display: grid;
    gap: 14px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.opportunity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.opportunity-item svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--secondary-color);
    margin-top: 2px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===================== FOOTER ===================== */
.footer {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    padding: 32px 20px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===================== TABLET (max 1024px) ===================== */
@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================== MOBILE (max 768px) ===================== */
@media (max-width: 768px) {
    .nav-container { height: 56px; }

    .nav-links {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 56px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 32px 20px;
        gap: 20px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-links.active { left: 0; }
    .nav-links a { font-size: 18px; }

    .mobile-menu-toggle { display: flex; }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 80px 16px 48px;
    }

    .scroll-indicator { display: none; }

    /* Kill redundant padding - section handles it, container should not double up */
    .section { padding: 48px 16px; }
    .section .container { padding: 0; }
    .section-title { margin-bottom: 32px; }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    /* Featured project - minimal padding on mobile */
    .project-featured {
        padding: 20px 16px;
        margin-bottom: 40px;
        border-radius: 8px;
    }

    .project-featured-description > p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .project-highlights { gap: 16px; }

    .project-highlight-item {
        flex-direction: column;
        gap: 6px;
    }

    .highlight-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    .highlight-icon svg { width: 16px; height: 16px; }

    .project-highlight-item strong { font-size: 15px; }
    .project-highlight-item p { font-size: 13px; }

    /* Reduce inner padding on nested elements */
    .project-impact {
        padding: 14px;
        margin-bottom: 20px;
    }
    .project-impact h4 { font-size: 15px; margin-bottom: 8px; }
    .project-impact p { font-size: 13px; }

    .project-tech-stack h4 { font-size: 15px; margin-bottom: 10px; }
    .tech-tags { gap: 6px; }
    .tech-tag { padding: 4px 10px; font-size: 12px; }

    .projects-grid,
    .publications-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card,
    .publication-card,
    .expertise-card {
        padding: 20px 16px;
    }

    .project-card-title { font-size: 17px; }
    .project-card-description { font-size: 13px; }
    .project-card-tags span { font-size: 10px; padding: 3px 8px; }

    .publication-title { font-size: 16px; }
    .publication-venue { font-size: 13px; }
    .publication-abstract { font-size: 13px; margin-bottom: 16px; }

    .expertise-card h3 { font-size: 16px; }
    .expertise-card p { font-size: 13px; }
    .expertise-icon { width: 40px; height: 40px; }
    .expertise-icon svg { width: 20px; height: 20px; }

    /* Resume */
    .resume-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .resume-viewer-body { padding: 8px; }
    .resume-viewer-header { padding: 12px 14px; }
    .resume-viewer-header span { font-size: 13px; }
    .resume-viewer-footer { padding: 12px 14px; }

    /* Contact */
    .contact-methods {
        grid-template-columns: 1fr;
    }
    .contact-link {
        justify-content: center;
        font-size: 13px;
        padding: 12px 14px;
    }
    .contact-description { font-size: 14px; }
    .opportunity-item { font-size: 13px; }
    .opportunity-item strong { font-size: 13px; }

    /* About */
    .about-text .lead { font-size: 16px; margin-bottom: 28px; }
    .about-section-block { margin-bottom: 24px; padding-bottom: 24px; }
    .about-section-block h3 { font-size: 16px; }
    .about-section-block p { font-size: 14px; }

    .projects-additional-title { font-size: 20px; margin-bottom: 20px; }

    .publications-intro p { font-size: 14px; }
    .scholar-link { font-size: 13px; padding: 8px 16px; }
}

/* ===================== PRINT ===================== */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-cta,
    .mobile-menu-toggle,
    .resume-actions { display: none; }
    .section { padding: 40px 0; }
}
