﻿/* ═══════════════════════════════════════════════════════════
   Academic Portfolio - Cobalt Blue Theme
   Sidebar + Main Content layout
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&display=swap');

/* ── Color Palette (Cobalt Blue Tone) ────────────────────── */
:root {
    --bg-primary: #f4f7ff;
    --bg-secondary: #e7eefc;
    --bg-card: rgba(250, 252, 255, 0.92);
    --bg-glass: rgba(244, 247, 255, 0.76);
    --bg-hover: rgba(132, 157, 215, 0.16);
    --bg-sidebar: #edf2ff;

    --text-primary: #16233b;
    --text-secondary: #4b5f82;
    --text-muted: #8091ad;

    --accent: #315da8;
    --accent-hover: #23488a;
    --accent-glow: rgba(49, 93, 168, 0.1);
    --accent-gradient: linear-gradient(135deg, #1a3363, #315da8);

    --highlight: #7c57c9;
    --success: #2d8a7a;
    --tag-bg: rgba(49, 93, 168, 0.1);
    --tag-border: rgba(49, 93, 168, 0.22);

    --border-color: rgba(128, 151, 195, 0.42);
    --border-strong: rgba(112, 136, 182, 0.72);

    --shadow-sm: 0 1px 3px rgba(22, 35, 59, 0.06);
    --shadow-md: 0 4px 20px rgba(22, 35, 59, 0.08);
    --shadow-lg: 0 8px 40px rgba(22, 35, 59, 0.1);
    --shadow-glow: 0 0 30px rgba(49, 93, 168, 0.07);

    --sidebar-width: 300px;
    --header-height: 0px;
    --radius: 10px;
    --radius-sm: 6px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ──────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary: #0e1729;
    --bg-secondary: #13203a;
    --bg-card: rgba(19, 32, 58, 0.9);
    --bg-glass: rgba(14, 23, 41, 0.74);
    --bg-hover: rgba(99, 143, 230, 0.14);
    --bg-sidebar: #101d33;

    --text-primary: #e7eeff;
    --text-secondary: #a8b8d8;
    --text-muted: #7488ae;

    --accent: #6a96e8;
    --accent-hover: #8ab1ff;
    --accent-glow: rgba(106, 150, 232, 0.16);
    --accent-gradient: linear-gradient(135deg, #6a96e8, #95bcff);

    --highlight: #b290ff;
    --success: #5bc2ad;
    --tag-bg: rgba(106, 150, 232, 0.16);
    --tag-border: rgba(106, 150, 232, 0.3);

    --border-color: rgba(109, 133, 180, 0.34);
    --border-strong: rgba(109, 133, 180, 0.56);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.38);
    --shadow-glow: 0 0 30px rgba(106, 150, 232, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Theme Toggle — matches sidebar-social a style */
.sidebar-social .theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    font-family: inherit;
}

.sidebar-social .theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-header-right .theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.mobile-header-right .theme-toggle:hover {
    color: var(--accent);
}

/* Smooth color transitions for theme switch */
body,
.sidebar,
.pub-card,
.award-pill,
.status-badge,
.filter-tab,
.back-to-top,
.mobile-header,
footer {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

::selection {
    background: var(--accent);
    color: #fff;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   Page Layout: Sidebar + Main
   ═══════════════════════════════════════════════════════════ */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 48px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    z-index: 10;
}

.sidebar-profile {
    margin-bottom: 20px;
}

.sidebar .profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: border-color var(--transition), transform var(--transition-slow);
    margin: 0 auto 16px;
}

.sidebar .profile-img:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

.sidebar-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.sidebar-title {
    font-family: 'Newsreader', serif;
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.sidebar-affiliation {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Sidebar Interests */
.sidebar-interests {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    height: 4em;
    overflow: hidden;
}

.sidebar-interests .typed-text {
    color: var(--accent);
    font-weight: 600;
    border-right: 2px solid var(--accent);
    padding-right: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Sidebar Social */
.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sidebar-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition);
}

.sidebar-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Sidebar Buttons */
.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}

.sidebar-buttons .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 8px 16px;
}

/* Sidebar Nav */
.sidebar-nav {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-bottom: 20px;
}

.sidebar-nav a {
    display: block;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-align: left;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sidebar-nav a.active {
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 9px;
}

/* Sidebar Education */
.sidebar-section {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: left;
}

.sidebar-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sidebar-edu-list {
    list-style: none;
}

.sidebar-edu-item {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-bottom: 14px;
    font-size: 0.82rem;
    line-height: 1.4;
}

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

.sidebar-edu-item i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-edu-info strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.82rem;
}

.sidebar-edu-info span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.sidebar-edu-info .edu-years {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

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

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

/* ═══════════════════════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════════════════════ */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 48px 48px 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Section Headers ────────────────────────────────────── */
.section {
    padding: 0 0 48px;
    position: relative;
}

.section:first-child {
    padding-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 16px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-header .line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}

/* ── About / Bio ────────────────────────────────────────── */
.about-section {
    padding-bottom: 40px;
}

.about-section .about-heading {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: 12px;
}

.about-text a {
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.about-text a:hover {
    border-bottom-color: var(--accent);
}

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

.about-contact {
    display: flex;
    gap: 24px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.about-contact i {
    color: var(--accent);
    margin-right: 6px;
    font-size: 0.85rem;
}

.about-contact a {
    font-weight: 500;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════════════════════
   News Section
   ═══════════════════════════════════════════════════════════ */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
    transition: background var(--transition);
}

.news-row:first-child {
    border-top: 1px solid var(--border-color);
}

.news-row:hover {
    background: var(--bg-hover);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: var(--radius-sm);
}

.news-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.news-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* ═══════════════════════════════════════════════════════════
   Publications
   ═══════════════════════════════════════════════════════════ */

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}

.filter-tab:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Publication Cards */
.pub-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    align-items: start;
}

.pub-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pub-card.hidden {
    display: none;
}

.pub-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: opacity var(--transition);
}

.pub-card:hover .pub-card-img {
    opacity: 0.85;
}

.pub-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.pub-venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.pub-venue-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--accent);
    letter-spacing: 0.03em;
}

.pub-venue-tag.highlight {
    background: rgba(247, 129, 102, 0.12);
    border-color: rgba(247, 129, 102, 0.3);
    color: var(--highlight);
}

.pub-authors {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.pub-authors .me {
    color: var(--text-primary);
    font-weight: 600;
}

.pub-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 0;
    border-bottom: 1px solid transparent;
}

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

/* ═══════════════════════════════════════════════════════════
   Experience Timeline
   ═══════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border-strong);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    z-index: 1;
    transition: background var(--transition);
}

.timeline-item:hover::before {
    background: var(--accent);
}

.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.timeline-org {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.timeline-detail a {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.timeline-detail a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   Academic Service
   ═══════════════════════════════════════════════════════════ */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-category {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-table {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
}

.service-row:first-child {
    border-top: 1px solid var(--border-color);
}

.service-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.service-years {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   Awards
   ═══════════════════════════════════════════════════════════ */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.award-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.82rem;
    transition: all var(--transition);
}

.award-pill:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.award-pill .award-name {
    font-weight: 600;
    color: var(--text-primary);
}

.award-pill .award-detail {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

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

.footer-contact {
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-contact a {
    font-weight: 600;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    z-index: 100;
    font-size: 0.95rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 999;
    transition: width 0.1s linear;
    width: 0%;
}

/* ═══════════════════════════════════════════════════════════
   Scroll Animations
   ═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger.visible > *:nth-child(1)  { transition-delay: 0.03s; }
.stagger.visible > *:nth-child(2)  { transition-delay: 0.06s; }
.stagger.visible > *:nth-child(3)  { transition-delay: 0.09s; }
.stagger.visible > *:nth-child(4)  { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(5)  { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(6)  { transition-delay: 0.18s; }
.stagger.visible > *:nth-child(7)  { transition-delay: 0.21s; }
.stagger.visible > *:nth-child(8)  { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(9)  { transition-delay: 0.27s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(11) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(12) { transition-delay: 0.36s; }

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   Mobile
   ═══════════════════════════════════════════════════════════ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px 32px 24px;
    }

    .pub-card {
        grid-template-columns: 180px 1fr;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        padding: 32px 24px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar .profile-img {
        width: 140px;
        height: 140px;
    }

    .sidebar-name {
        font-size: 1.3rem;
    }

    .sidebar-nav {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        padding-top: 72px;
    }

    .hamburger {
        display: flex;
    }

    .main-content {
        padding: 32px 20px 24px;
    }

    .pub-card {
        grid-template-columns: 1fr;
    }

    .pub-card-img {
        aspect-ratio: 2/1;
        max-height: 220px;
    }

    .about-section .about-heading {
        font-size: 1.7rem;
    }

    .section {
        padding-bottom: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-contact {
        text-align: left;
    }

    .about-contact {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .about-section .about-heading {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 1.15rem;
    }

    .sidebar .profile-img {
        width: 120px;
        height: 120px;
    }

    .pub-card {
        padding: 12px;
    }

    .pub-card-img {
        aspect-ratio: 16/9;
        max-height: 180px;
    }
}



