/* ==========================================
   CSS VARIABLES - Retro macOS Blue Night Theme
   ========================================== */
:root {
    /* Background */
    --bg-body: #0a0e1a;
    --bg-body-end: #1a1e2e;
    --bg-window: #0d1117;
    --bg-window-alpha: rgba(13, 17, 23, 0.95);
    --bg-sidebar: rgba(13, 17, 23, 0.8);
    --bg-card: rgba(22, 27, 38, 0.9);
    --bg-card-hover: rgba(30, 37, 50, 0.95);
    --bg-titlebar: linear-gradient(180deg, #2d2d2d 0%, #1f1f1f 100%);
    --bg-input: rgba(22, 27, 38, 0.8);

    /* Accent */
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --cyan-glow: rgba(0, 212, 255, 0.3);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --green: #28c840;
    --green-dim: rgba(40, 200, 64, 0.2);

    /* Traffic lights */
    --tl-red: #ff5f57;
    --tl-yellow: #febc2e;
    --tl-green: #28c840;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #9da5ad;
    --text-dim: #484f58;
    --text-accent: var(--cyan);

    /* Border */
    --border: rgba(0, 212, 255, 0.12);
    --border-strong: rgba(0, 212, 255, 0.25);

    /* Shadows */
    --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.05);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;

    /* Layout */
    --window-radius: 12px;
    --card-radius: 8px;
    --max-width: 1200px;

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-family: var(--font-body);
    color: #e6edf3;
    color: var(--text-primary);
    background-color: #0a0e1a;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1e2e 100%);
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-body-end) 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ==========================================
   WINDOW FRAME (macOS style)
   ========================================== */
.window-frame {
    max-width: 1200px;
    max-width: var(--max-width);
    margin: 2rem auto;
    border-radius: 12px;
    border-radius: var(--window-radius);
    background: #0d1117;
    background: var(--bg-window-alpha);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.05);
    box-shadow: var(--shadow-window);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.window-frame.maximized {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    overflow-y: auto;
}

.window-frame.minimized .window-body {
    display: none;
}

.window-frame.minimized {
    max-width: 600px;
}

/* Title bar */
.titlebar {
    background: linear-gradient(180deg, #2d2d2d 0%, #1f1f1f 100%);
    background: var(--bg-titlebar);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 40px;
    user-select: none;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.traffic-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border: none;
    padding: 0;
}

.traffic-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    color: rgba(0, 0, 0, 0.6);
    font-weight: 700;
    line-height: 1;
}

.traffic-lights:hover .traffic-light::after {
    opacity: 1;
}

.tl-close {
    background: var(--tl-red);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}
.tl-close::after { content: '\00d7'; font-size: 11px; }

.tl-minimize {
    background: var(--tl-yellow);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}
.tl-minimize::after { content: '\2013'; font-size: 10px; }

.tl-maximize {
    background: var(--tl-green);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}
.tl-maximize::after { content: '\002B'; font-size: 10px; }

.traffic-light:active {
    transform: scale(0.9);
}

.titlebar-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    background: rgba(13, 17, 23, 0.5);
    border-bottom: 1px solid var(--border);
    gap: 0;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.nav-link {
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    position: relative;
    transition: color var(--transition-fast);
    font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--cyan);
    border-radius: 1px;
}

.nav-separator {
    color: var(--text-dim);
    font-family: var(--font-mono);
    user-select: none;
}

.lang-toggle {
    font-family: var(--font-mono);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 1.5rem;
    transition: all var(--transition-fast);
    background: transparent;
    cursor: pointer;
}

.lang-toggle:hover {
    background: var(--cyan);
    color: var(--bg-body);
}

.lang-label { display: none; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="fr"] .lang-fr { display: inline; }
html:not([data-lang]) .lang-en { display: inline; }

/* Mobile nav toggle */
.nav-toggle-btn {
    display: none;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0.3rem;
}

/* ==========================================
   WINDOW BODY (main + sidebar layout)
   ========================================== */
.window-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: calc(100vh - 160px);
}

.main-content {
    padding: 2rem 2.5rem;
    border-right: 1px solid var(--border);
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    padding: 1.5rem;
    background: var(--bg-sidebar);
    position: sticky;
    top: 40px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cyan);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-pub {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--card-radius);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.sidebar-pub:hover {
    background: var(--bg-card);
    border-color: var(--border);
}

.sidebar-pub-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.sidebar-pub-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sidebar-profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    margin: 0 auto 0.75rem;
}

.sidebar-profile-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-profile-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sidebar-social a:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.sidebar-social svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   HOME PAGE
   ========================================== */
.hero-home {
    margin-bottom: 3rem;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.hero-greeting .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--cyan);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

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

.hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg-body);
    border-color: var(--cyan);
}

.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

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

.btn-secondary:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* Featured publication on home */
.featured-section {
    margin-bottom: 2.5rem;
}

.section-heading {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ==========================================
   PUBLICATION CARDS
   ========================================== */
.pub-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.pub-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.pub-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.pub-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.pub-tag.journal {
    background: var(--blue-dim);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pub-tag.conference {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(40, 200, 64, 0.3);
}

.pub-tag.workshop {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.pub-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.pub-status.published {
    background: var(--green-dim);
    color: var(--green);
}

.pub-status.review {
    background: rgba(254, 188, 46, 0.15);
    color: var(--tl-yellow);
}

.pub-status.accepted {
    background: var(--blue-dim);
    color: var(--blue);
}

.pub-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

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

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

.pub-authors .highlight {
    color: var(--cyan);
    font-weight: 600;
}

.pub-venue {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

.pub-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.pub-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.pub-presentation {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: var(--cyan-dim);
    color: var(--cyan);
    border-radius: 3px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.pub-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    transition: all var(--transition-fast);
}

.pub-link:hover {
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* ==========================================
   RESEARCH PAGE
   ========================================== */
.research-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.25rem;
}

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

/* Search & Filters */
.research-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: border-color var(--transition-fast);
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.search-bar svg {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    width: 16px;
    height: 16px;
}

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

.filters select {
    padding: 0.65rem 2rem 0.65rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

.filters select:focus {
    outline: none;
    border-color: var(--cyan);
}

.filters select option {
    background: var(--bg-window);
    color: var(--text-primary);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-intro {
    margin-bottom: 2.5rem;
}

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

.about-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-category h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}

.skill-category ul li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.skill-category ul li:last-child {
    border-bottom: none;
}

/* Education */
.education-section {
    margin-bottom: 2.5rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-dot {
    position: absolute;
    left: -1.85rem;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-content .institution {
    font-weight: 600;
    color: var(--cyan);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Experience */
.experience-section {
    margin-bottom: 2.5rem;
}

.exp-item {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.exp-item:hover {
    border-color: var(--border-strong);
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.35rem;
}

.exp-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.exp-item h4 {
    font-size: 0.9rem;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.exp-item ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.exp-item ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--cyan-dim);
    color: var(--cyan);
    border-radius: 3px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.leadership-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    transition: all var(--transition-fast);
}

.leadership-card:hover {
    border-color: var(--border-strong);
}

.leadership-card.featured {
    border-color: var(--cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(59, 130, 246, 0.05));
}

.leadership-card .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.leadership-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.leadership-card h4 {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.leadership-card .date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.6rem;
}

.leadership-card ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.leadership-card ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* Awards */
.awards-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.total-funding {
    display: inline-flex;
    flex-direction: column;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--cyan-dim), var(--blue-dim));
    border: 1px solid var(--border-strong);
    border-radius: var(--card-radius);
}

.funding-amount {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
}

.funding-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.award-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    transition: all var(--transition-fast);
}

.award-card:hover {
    border-color: var(--border-strong);
}

.award-card.featured {
    border-color: var(--cyan);
}

.award-card.competition {
    border-color: var(--blue);
}

.award-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    background: var(--cyan-dim);
    color: var(--cyan);
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.award-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.award-org {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.award-amount {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
    display: block;
    margin-top: 0.5rem;
}

.award-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 0.35rem;
}

/* Affiliations */
.affiliations {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.affiliation-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.affiliation-item {
    padding: 1rem;
    background: var(--bg-card);
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

.affiliation-item h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.affiliation-item span {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ==========================================
   CONTACT (on About page)
   ========================================== */
.contact-section {
    margin-top: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
}

.contact-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--cyan);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--cyan);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    padding: 0.65rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================
   FOOTER
   ========================================== */
.window-footer {
    padding: 1rem 2rem;
    background: rgba(13, 17, 23, 0.5);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-left {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-center {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-center a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

.footer-center a:hover {
    color: var(--cyan);
}

.footer-center svg {
    width: 14px;
    height: 14px;
}

.footer-right {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ==========================================
   CLOSED MESSAGE (fun Easter egg)
   ========================================== */
.closed-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    font-family: var(--font-mono);
}

.closed-message.visible {
    display: block;
}

.closed-message h2 {
    font-size: 1.5rem;
    color: var(--tl-red);
    margin-bottom: 1rem;
}

.closed-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.closed-message button {
    font-family: var(--font-mono);
    padding: 0.5rem 1.5rem;
    background: var(--cyan);
    color: var(--bg-body);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.closed-message button:hover {
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .window-frame {
        margin: 0.5rem;
        border-radius: 10px;
    }

    .window-body {
        grid-template-columns: 1fr;
    }

    /* Move sidebar above main content on mobile */
    .sidebar {
        order: -1;
        position: static;
        max-height: none;
        border-top: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
    }

    .main-content {
        border-right: none;
        padding: 1.5rem;
    }

    /* Hide non-essential sidebar sections on mobile, keep profile */
    .sidebar .sidebar-section {
        display: none;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .affiliation-list {
        grid-template-columns: 1fr;
    }

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

    .research-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .research-controls {
        flex-direction: column;
    }

    .search-bar {
        min-width: 100%;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    /* Collapsible sections on About page */
    .about-section-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .window-frame {
        margin: 0.5rem;
        border-radius: 10px;
        border: 1px solid var(--border-strong);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.08);
    }

    .titlebar {
        border-radius: 10px 10px 0 0;
        padding: 0.5rem 0.75rem;
        min-height: 32px;
    }

    .main-content {
        padding: 1rem;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle-btn {
        display: block;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-separator {
        display: none;
    }

    .lang-toggle {
        margin: 0.5rem auto;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        text-align: center;
    }

    .funding-amount {
        font-size: 1.8rem;
    }

    .total-funding {
        padding: 1rem 2rem;
    }

    .titlebar-title {
        font-size: 0.75rem;
    }

    .sidebar {
        border-radius: 0;
    }

    .footer {
        border-radius: 0 0 10px 10px;
    }
}

/* ==========================================
   COLLAPSIBLE SECTIONS (About page mobile)
   ========================================== */
.about-section-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    gap: 0.5rem;
}

.about-section-toggle .section-heading {
    margin-bottom: 0;
    pointer-events: none;
}

.about-section-toggle .toggle-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--cyan);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.about-section-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.collapsible-content {
    overflow: hidden;
}

@media (max-width: 900px) {
    .about-section-toggle[aria-expanded="false"] + .collapsible-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .about-section-toggle[aria-expanded="true"] + .collapsible-content {
        opacity: 1;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }
}

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

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

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

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

/* ==========================================
   SELECTION
   ========================================== */
::selection {
    background: var(--cyan);
    color: var(--bg-body);
}
