/* ========================================
   MODERN APPLE-INSPIRED GLASS DESIGN
   Minimalist Aesthetic
   ======================================== */

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

:root {
    /* Modern Palette - Apple Inspired Light */
    --black: #1d1d1f;
    --dark-grey: #424245;
    --grey: #6e6e73;
    --light-grey: #d2d2d7;
    --lighter-grey: #e8e8ed;
    --white: #ffffff;
    --off-white: #fbfbfd;
    
    /* Accent Colors */
    --accent-blue: #6e6e73; /* use grey instead of blue */
    --accent-purple: #5856d6;
    --accent-green: #34c759;
    --accent-orange: #ff9500;
    
    /* Backgrounds - All Light */
    --desktop-bg: #ffffff;
    --sidebar-bg: rgba(248, 248, 250, 0.85);
    --topbar-bg: rgba(255, 255, 255, 0.8);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    /* Terminal */
    --terminal-bg: rgba(248, 248, 250, 0.6);
    --terminal-border: rgba(0, 0, 0, 0.06);
    --terminal-prompt: #34c759;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--desktop-bg);
    color: var(--dark-grey);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: none;
}

/* ======== UBUNTU TOP BAR ======== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--topbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    color: var(--dark-grey);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-logo {
    font-size: 16px;
    line-height: 1;
}

.app-name {
    font-weight: 500;
}

.top-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(52, 199, 89, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.status-text {
    font-size: 9px;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-info {
    font-size: 12px;
    color: #6e6e73;
    font-weight: 500;
    white-space: nowrap;
}

.time {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 10px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
}

.user-indicator {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* ======== SIDEBAR LAUNCHER ======== */
.sidebar {
    position: fixed;
    top: 24px;
    left: 0;
    width: 80px;
    height: calc(100vh - 24px);
    background: var(--sidebar-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.launcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 6px 0;
    gap: 4px;
}

.launcher-icon {
    width: 70px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--grey);
    font-size: 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    /* Better touch target */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
}

.launcher-icon i {
    font-size: 20px;
}

.launcher-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.launcher-icon::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: var(--transition);
}

.launcher-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark-grey);
}

.launcher-icon.active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--black);
}

.launcher-icon.active::before {
    width: 3px;
    height: 40px;
}

.launcher-icon:hover::before {
    width: 3px;
    height: 32px;
}

.launcher-separator {
    width: 36px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 6px 0;
}

/* ======== MAIN CONTENT ======== */
.main-content {
    background: var(--desktop-bg);
    margin-top: 24px; /* Top bar height */
    padding: 24px 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    /* Center the content while accounting for the fixed sidebar */
    padding-left: calc(80px + 48px); /* Sidebar width + desired padding */
}

/* ======== SECTIONS - WITH SPACING ======== */
.section {
    scroll-margin-top: 24px;
    margin-bottom: 16px;
}

/* ======== GLASS WINDOW STYLING ======== */
.window {
    max-width: 100%;
    margin: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.window-header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px 12px 0 0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    opacity: 1;
}

.control.close {
    background: #ff5f56;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #27c93f;
}

.control:hover {
    filter: brightness(0.95);
    transform: scale(1.1);
}

.window-title {
    font-weight: 500;
    font-size: 13px;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.window-title i {
    font-size: 13px;
    color: var(--accent-blue);
}

.window-content {
    background: transparent;
    padding: 24px 32px;
}

/* ======== TERMINAL HOME SECTION ======== */
.terminal-content {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2d2d2d;
    padding: 24px;
    border-radius: 0 0 12px 12px;
}

.terminal-output {
    max-width: 100%;
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.terminal-line .prompt {
    color: #007aff;
    font-weight: 600;
}

.terminal-line .colon {
    color: #2d2d2d;
}

.terminal-line .path {
    color: #5856d6;
    font-weight: 600;
}

.terminal-line .dollar {
    color: #2d2d2d;
    margin: 0 6px;
}

.terminal-line .command {
    color: #ff9500;
    font-weight: 500;
}

.terminal-response {
    margin: 12px 0 20px 0;
    padding-left: 0;
    color: #2d2d2d;
}

/* Profile Header in Terminal - Large */
.profile-header-large {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    padding: 0;
}

.terminal-avatar-large {
    width: 180px;     
    height: 180px;  
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    overflow: hidden;
}

.terminal-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
    transform: translateY(15%) scale(2);
}


.profile-info-large h1 {
    font-size: 36px;
    color: #1d1d1f;
    margin: 0 0 10px 0;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.profile-info-large .role {
    font-size: 17px;
    color: #6e6e73;
    margin: 0 0 14px 0;
    font-weight: 400;
}

.badges-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-terminal {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #6e6e73;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-link {
    text-decoration: none;
    transition: var(--transition);
}

.badge-link:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #2d2d2d;
}

/* Badge logo image with flexible sizing */
.badge-logo-img {
    height: 16px;
    width: auto;
    display: block;
    object-fit: contain;
}

.badge-text {
    line-height: 1;
}

.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-links a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}

.contact-links a:hover {
    color: #2d2d2d;
}

.bio-content {
    margin-top: 0;
}

.bio-content p {
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 15px;
    color: #2d2d2d;
}

.contact-links i {
    font-size: 14px;
}

.terminal-response p {
    margin-bottom: 14px;
    color: #2d2d2d;
    line-height: 1.7;
    font-size: 15px;
}

.terminal-response strong {
    color: #1d1d1f;
    font-weight: 600;
}

.terminal-response a {
    color: #6e6e73;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.terminal-response a:hover {
    color: #2d2d2d;
    border-bottom-color: #2d2d2d;
}

.section-label {
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 16px;
    line-height: 1.6;
}

.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0;
    padding-left: 20px;
}

.research-list li {
    padding: 8px 0;
    margin-bottom: 0;
    color: #2d2d2d;
    line-height: 1.7;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    position: relative;
}

.research-list li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: #2d2d2d;
}

/* ======== HOME PAGE LAYOUT ======== */
.home-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.profile-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: fit-content;
    box-shadow: var(--shadow);
}

.profile-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.profile-card h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.role {
    font-size: 16px;
    color: var(--grey);
    margin-bottom: 20px;
    font-weight: 400;
}

.badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: var(--accent-blue);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info p {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.contact-info a {
    color: var(--accent-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* About Content */
.about-content {
    font-size: 16px;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--dark-grey);
}

.about-content strong {
    color: var(--black);
    font-weight: 600;
}


/* ======== SECTION HEADERS ======== */
h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 19px;
    font-weight: 600;
    color: var(--black);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.01em;
}

/* ======== NEWS ======== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Make News section scroll internally when content is long */
#news .window {
    display: flex;
    flex-direction: column;
    max-height: 75vh; /* keep window compact within viewport */
}

#news .window-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain; /* prevent bouncing into page scroll */
}

.news-item {
    padding: 0 0 0 12px;
    background: transparent;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    line-height: 1.6;
    transition: var(--transition);
}

.news-item.highlight {
    border-left-color: var(--accent-orange);
    border-left-width: 3px;
    padding-left: 11px;
}

.news-item.highlight .date {
    color: var(--accent-orange);
}

.date {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 12px;
    color: var(--grey);
    font-weight: 600;
    display: inline;
    margin-right: 8px;
}

.news-item p {
    display: inline;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-grey);
}

.news-item em {
    font-style: italic;
    color: var(--black);
    font-weight: 500;
}

.news-item strong {
    font-weight: 600;
    color: var(--black);
}

.news-item a {
    color: #6e6e73;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.news-item a:hover {
    color: #2d2d2d;
    border-bottom-color: #2d2d2d;
}

/* Ensure linked <em> papers share the same color as non-linked */
.news-item em a {
    color: var(--black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.news-item em a:hover {
    color: var(--black);
    border-bottom-color: var(--black);
}

/* Keep workshop/venue links in black */
.news-item strong a {
    color: var(--black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.news-item strong a:hover {
    color: var(--black);
    border-bottom-color: var(--black);
}

/* ======== PAPERS ======== */
.papers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-note {
    margin: -6px 0 12px;
    font-size: 12px;
    color: #6e6e73;
}

.paper-item {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.paper-item:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.paper-image {
    width: 450px;
    max-width: 45%;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--lighter-grey);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.paper-info {
    flex: 1;
}

.paper-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.paper-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.authors {
    font-size: 14px;
    color: var(--grey);
    font-style: italic;
}

.venue {
    font-size: 14px;
    color: var(--dark-grey);
    font-weight: 500;
}

.award {
    color: #ff3b30;
    font-weight: 600;
}

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

.paper-link-disabled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
}

.paper-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #2d2d2d; /* text stays dark grey/black */
    text-decoration: none;
    transition: var(--transition);
    /* Better touch target */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
}

.paper-links a:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.25);
    color: #2d2d2d;
    transform: translateY(-1px);
}

/* Color only the icons inside active links (distinct per type) */
.paper-links a i.icon-paper { color: #ff3b30; }   /* red for PDF */
.paper-links a i.icon-code { color: #34c759; }    /* green for code */
.paper-links a i.icon-project { color: #5856d6; } /* purple for project */
.paper-links a i.icon-video { color: #ff9500; }   /* orange for video */
.paper-links a i.icon-demo { color: #007aff; }    /* blue for demo */

/* Keep 'Coming soon' grey */
.paper-link-disabled i { color: #8e8e93; }

/* Media reports section */
.paper-media {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: #6e6e73;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paper-media i {
    color: #ee9ff5; /* orange for media/news */
    font-size: 14px;
}

.paper-media a {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.paper-media a:hover {
    color: #ee9ff5;
    text-decoration: underline;
}

/* ======== SIMPLE LISTS (Earlier Publications) ======== */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.simple-list li {
    padding: 0;
    margin: 0;
    background: transparent;
    line-height: 1.5;
}

.early-pub-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    line-height: 1.5;
}

.early-pub-authors {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 3px;
    line-height: 1.5;
    font-style: italic;
}

.early-pub-authors strong {
    font-weight: 600;
    color: #1d1d1f;
}

.early-pub-venue {
    font-size: 13px;
    color: #2d2d2d;
    line-height: 1.5;
    font-weight: 400;
}

.early-pub-venue .award {
    color: #ff3b30;
    font-weight: 600;
}

.early-pub-venue a {
    color: #6e6e73;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.early-pub-venue a:hover {
    color: #2d2d2d;
    border-bottom-color: #2d2d2d;
}

.early-pub-venue em {
    font-style: normal;
    font-weight: 500;
}

/* ======== PEOPLE PAGE - GLASS BOXES ======== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.people-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.people-box h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.01em;
}

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

.people-list li {
    padding: 6px 0;
    border-bottom: none;
    font-size: 15px;
    color: var(--dark-grey);
}

.tag {
    color: var(--grey);
    font-size: 13px;
    margin-left: 8px;
}

.people-list a {
    color: #2d2d2d;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.people-list a:hover {
    color: #2d2d2d;
    border-bottom-color: #2d2d2d;
}

.names-list {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-grey);
    margin: 0;
}

.names-list a {
    color: #2d2d2d;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.names-list a:hover {
    color: #2d2d2d;
    border-bottom-color: #2d2d2d;
}

.people-box p {
    margin-bottom: 10px;
}

.people-box p:last-child {
    margin-bottom: 0;
}

.people-box p a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.people-box p a:hover {
    text-decoration: underline;
}

/* ======== VISITOR ANALYTICS FOOTER ======== */
.visitor-footer {
    margin-top: 32px;
    padding: 32px 0;
    background: rgba(248, 248, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.visitor-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(80px + 48px) 0 calc(80px + 48px);
}

.visitor-inline {
    display: flex;
    align-items: center;
    gap: 48px;
    justify-content: center;
}

/* Stats Side Panel */
.visitor-stats-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 140px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-mini-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-mini-label {
    font-size: 11px;
    color: var(--grey);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map Inline */
.visitor-map-inline {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.visitor-map-inline img,
.visitor-map-inline canvas,
.visitor-map-inline iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ======== RESPONSIVE ======== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 28px;
    }
    
    .profile-image-wrapper {
        margin: 0;
        width: 160px;
        height: 160px;
    }
    
    .badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
    }

    .paper-image {
        width: 400px;
        max-width: 40%;
    }
}

/* Tablets and large phones */
@media (max-width: 768px) {
    .top-bar {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .top-bar-center {
        position: static;
        transform: none;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .location-info {
        font-size: 11px;
    }

    .status-badge {
        padding: 2px 6px;
    }

    .status-text {
        font-size: 8px;
    }

    .sidebar {
        width: 70px;
    }

    .launcher-icon {
        width: 62px;
        padding: 8px 4px;
        font-size: 18px;
    }
    
    .launcher-icon i {
        font-size: 20px;
    }
    
    .launcher-text {
        font-size: 10px;
    }
    
    .main-content {
        margin-top: 28px;
        padding: 20px 24px;
        padding-left: calc(70px + 24px);
    }

    .window-content {
        padding: 20px 24px;
    }

    .terminal-content {
        padding: 20px;
    }

    .profile-header-large {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .terminal-avatar-large {
        width: 140px;
        height: 140px;
    }

    .profile-info-large h1 {
        font-size: 28px;
    }

    .profile-info-large .role {
        font-size: 15px;
    }

    .paper-item {
        flex-direction: column;
        padding: 14px;
        gap: 14px;
    }

    .paper-image {
        width: 100%;
        max-width: 100%;
        min-height: 180px;
    }

    .paper-info h3 {
        font-size: 16px;
    }

    .paper-links {
        gap: 8px;
    }

    .paper-links a {
        padding: 6px 12px;
        font-size: 12px;
    }

    h2 {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    /* Visitor footer tablet */
    .visitor-footer {
        padding: 28px 0;
    }

    .visitor-inline {
        flex-direction: column;
        gap: 24px;
    }

    .visitor-stats-side {
        flex-direction: row;
        gap: 48px;
        min-width: auto;
    }

    .visitor-map-inline {
        max-width: 100%;
    }
}

/* Mobile devices - sidebar still visible */
@media (max-width: 640px) {
    .top-bar-center .location-info {
        display: none;
    }

    .status-info {
        gap: 8px;
}

    .sidebar {
        width: 60px;
    }

    .launcher-icon {
        width: 52px;
        padding: 6px 4px;
    }
    
    .launcher-icon i {
        font-size: 18px;
    }
    
    .launcher-text {
        font-size: 9px;
    }
    
    .main-content {
        padding: 16px 20px;
        padding-left: calc(60px + 16px);
    }

    .window-content {
        padding: 16px 20px;
    }

    .terminal-content {
        padding: 16px;
    }

    .terminal-avatar-large {
        width: 120px;
        height: 120px;
    }

    .profile-info-large h1 {
        font-size: 24px;
    }

    .badges-inline {
        justify-content: center;
    }

    .contact-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .people-box {
        padding: 16px 20px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .section-subtitle {
        font-size: 16px;
        margin: 24px 0 12px;
    }

    /* Visitor footer mobile */
    .visitor-footer-content {
        padding: 0 calc(60px + 16px);
    }

    .visitor-footer {
        padding: 24px 0;
    }

    .visitor-stats-side {
        gap: 40px;
    }

    .stat-mini-value {
        font-size: 26px;
    }

    .stat-mini-label {
        font-size: 10px;
    }
}

/* Small mobile devices - convert sidebar to bottom nav */
@media (max-width: 480px) {
    /* Improve touch scrolling */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    a, button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .top-bar {
        height: 32px;
        padding: 0 12px;
    }

    .top-bar-center {
        display: none; /* Hide status info on very small screens */
    }

    .app-name {
        font-size: 12px;
    }

    .time {
        font-size: 11px;
    }

    /* Move sidebar to bottom */
    .sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1000;
        /* Prevent iOS Safari bottom bar interference */
        padding-bottom: env(safe-area-inset-bottom);
    }

    .launcher {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        gap: 0;
        height: 100%;
    }

    .launcher-icon {
        width: auto;
        flex: 1;
        padding: 8px 12px;
        gap: 4px;
        max-width: none;
        /* Ensure adequate touch target size (minimum 44x44 for iOS) */
        min-height: 44px;
    }

    .launcher-icon i {
        font-size: 20px;
    }

    .launcher-text {
        font-size: 10px;
    }

    .launcher-icon::before {
        left: 50%;
        top: auto;
        bottom: -1px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
    }

    .launcher-icon.active::before {
        width: 50%;
        height: 3px;
    }
    
    .launcher-icon:hover::before {
        width: 40%;
        height: 3px;
    }

    /* Adjust main content for bottom nav */
    .main-content {
        margin-top: 32px;
        margin-bottom: calc(64px + env(safe-area-inset-bottom)); /* Space for bottom nav + safe area */
        padding: 12px 16px;
        padding-left: 16px; /* Remove sidebar offset */
        max-width: 100%;
    }

    .section {
        scroll-margin-top: 32px;
        margin-bottom: 12px;
    }

    .window {
        border-radius: 10px;
    }

    .window-header {
        padding: 6px 12px;
        height: 36px;
        border-radius: 10px 10px 0 0;
    }

    .window-title {
        font-size: 12px;
    }

    .window-title i {
        font-size: 12px;
    }

    .window-content {
        padding: 14px 16px;
    }

    .terminal-content {
        padding: 14px;
        font-size: 13px;
    }

    .profile-header-large {
        gap: 16px;
    }

    .terminal-avatar-large {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .profile-info-large h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .profile-info-large .role {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .badges-inline {
        gap: 6px;
    }

    .badge-terminal {
        padding: 4px 8px;
        font-size: 11px;
        gap: 6px;
    }

    .badge-logo-img {
        height: 14px;
    }

    .contact-links {
        padding: 12px 0;
        margin-bottom: 16px;
    }

    .contact-links a {
        font-size: 13px;
        gap: 6px;
    }

    .bio-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .section-label {
        font-size: 15px;
        padding-top: 16px;
        margin-bottom: 10px;
    }

    .research-list {
        padding-left: 18px;
    }

    .research-list li {
        font-size: 14px;
        padding: 6px 0;
    }

    .research-list li::before {
        left: -18px;
    }

    h2 {
        font-size: 17px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .section-subtitle {
        font-size: 15px;
        margin: 20px 0 10px;
        padding-bottom: 6px;
    }

    .news-item {
        padding-left: 10px;
    }

    .news-item p {
        font-size: 13px;
    }

    .date {
        font-size: 11px;
        display: block;
        margin-bottom: 4px;
    }

    .paper-item {
        padding: 12px;
        gap: 12px;
    }

    .paper-image {
        min-height: 150px;
        border-radius: 8px;
    }

    .paper-info h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .paper-meta {
        gap: 2px;
        margin-bottom: 10px;
    }

    .authors, .venue {
        font-size: 12px;
    }

    .paper-links {
        gap: 6px;
    }

    .paper-links a, .paper-link-disabled {
        padding: 8px 12px; /* Larger touch target */
        font-size: 11px;
        gap: 4px;
        min-height: 36px; /* Ensure adequate touch target */
    }

    .simple-list {
        gap: 12px;
    }

    /* Visitor footer responsive */
    .visitor-footer-content {
        padding: 0 calc(70px + 24px);
    }

    .visitor-inline {
        gap: 36px;
    }

    .visitor-stats-side {
        gap: 20px;
        min-width: 120px;
    }

    .stat-mini-value {
        font-size: 28px;
    }

    .early-pub-title {
        font-size: 13px;
    }

    .early-pub-authors, .early-pub-venue {
        font-size: 12px;
    }

    .people-box {
        padding: 14px 16px;
    }

    .people-box h2 {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .people-list li {
        font-size: 14px;
        padding: 5px 0;
    }

    .names-list {
        font-size: 14px;
        line-height: 1.7;
    }

    .tag {
        font-size: 12px;
        margin-left: 6px;
    }

    .control {
        width: 10px;
        height: 10px;
    }

    .window-controls {
        gap: 6px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .top-bar {
        height: 30px;
        padding: 0 8px;
    }

    .app-name {
        font-size: 11px;
    }

    .time {
        font-size: 10px;
    }

    .sidebar {
        height: 60px;
    }

    .launcher-icon {
        padding: 6px 8px;
    }

    .launcher-icon i {
        font-size: 18px;
    }

    .launcher-text {
        font-size: 9px;
    }

    .main-content {
        margin-top: 30px;
        margin-bottom: 60px;
        padding: 10px 12px;
    }

    .window-content {
        padding: 12px 14px;
    }

    .terminal-content {
        padding: 12px;
        font-size: 12px;
    }

    .terminal-avatar-large {
        width: 90px;
        height: 90px;
    }

    .profile-info-large h1 {
        font-size: 18px;
    }

    .profile-info-large .role {
        font-size: 12px;
    }

    .badge-terminal {
        font-size: 10px;
        padding: 3px 6px;
    }

    .bio-content p {
        font-size: 13px;
    }

    h2 {
        font-size: 16px;
    }

    .paper-info h3 {
        font-size: 14px;
    }

    .paper-links a, .paper-link-disabled {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Visitor footer small mobile - with bottom nav */
    .visitor-footer {
        margin-bottom: calc(64px + env(safe-area-inset-bottom));
        padding: 20px 0;
    }

    .visitor-footer-content {
        padding: 0 16px;
    }

    .visitor-inline {
        gap: 20px;
    }

    .visitor-stats-side {
        gap: 32px;
    }

    .stat-mini-value {
        font-size: 24px;
    }

    .stat-mini-label {
        font-size: 10px;
    }

    .visitor-map-inline img,
    .visitor-map-inline canvas,
    .visitor-map-inline iframe {
        border-radius: 6px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .top-bar {
        height: 30px;
        padding: 0 8px;
    }

    .app-name {
        font-size: 11px;
    }

    .time {
        font-size: 10px;
    }

    .sidebar {
        height: 60px;
    }

    .launcher-icon {
        padding: 6px 8px;
    }

    .launcher-icon i {
        font-size: 18px;
    }

    .launcher-text {
        font-size: 9px;
    }

    .main-content {
        margin-top: 30px;
        margin-bottom: 60px;
        padding: 10px 12px;
    }

    .window-content {
        padding: 12px 14px;
    }

    .terminal-content {
        padding: 12px;
        font-size: 12px;
    }

    .terminal-avatar-large {
        width: 90px;
        height: 90px;
    }

    .profile-info-large h1 {
        font-size: 18px;
    }

    .profile-info-large .role {
        font-size: 12px;
    }

    .badge-terminal {
        font-size: 10px;
        padding: 3px 6px;
    }

    .bio-content p {
        font-size: 13px;
    }

    h2 {
        font-size: 16px;
    }

    .paper-info h3 {
        font-size: 14px;
    }

    .paper-links a, .paper-link-disabled {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Visitor footer extra small */
    .visitor-footer {
        margin-bottom: calc(60px + env(safe-area-inset-bottom));
        padding: 16px 0;
    }

    .visitor-footer-content {
        padding: 0 12px;
    }

    .stat-mini-value {
        font-size: 22px;
    }

    .stat-mini-label {
        font-size: 9px;
    }

    .visitor-stats-side {
        gap: 24px;
    }
}

/* ======== SCROLLBAR ======== */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 3px solid var(--desktop-bg);
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
