/* ===== Material Design 3 (M3) CSS Variables ===== */
:root {
    /* M3 Primary Tonal Palette */
    --md-sys-color-primary: #006A6A;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #cce8e7;
    --md-sys-color-on-primary-container: #002020;
    
    /* M3 Secondary */
    --md-sys-color-secondary: #4A6363;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #CCE8E7;
    --md-sys-color-on-secondary-container: #051F1F;
    
    /* M3 Tertiary */
    --md-sys-color-tertiary: #4B607C;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #D3E4FF;
    --md-sys-color-on-tertiary-container: #041C35;
    
    /* M3 Error */
    --md-sys-color-error: #BA1A1A;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #FFDAD6;
    --md-sys-color-on-error-container: #410002;
    
    /* M3 Surface */
    --md-sys-color-surface: #FAFDFC;
    --md-sys-color-on-surface: #191C1C;
    --md-sys-color-surface-variant: #DAE5E4;
    --md-sys-color-on-surface-variant: #3F4948;
    --md-sys-color-surface-container-lowest: #FFFFFF;
    --md-sys-color-surface-container-low: #F4F7F6;
    --md-sys-color-surface-container: #EEF1F0;
    --md-sys-color-surface-container-high: #E8EBEA;
    --md-sys-color-surface-container-highest: #E3E6E5;
    
    /* M3 Outline */
    --md-sys-color-outline: #6F7979;
    --md-sys-color-outline-variant: #BEC9C8;
    
    /* M3 Background */
    --md-sys-color-background: #FAFDFC;
    --md-sys-color-on-background: #191C1C;
    
    /* M3 Inverse */
    --md-sys-color-inverse-surface: #2D3131;
    --md-sys-color-inverse-on-surface: #EFF1F0;
    --md-sys-color-inverse-primary: #4CDADA;
    
    /* M3 Elevation (tonal) */
    --md-sys-elevation-1: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-2: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3);
    
    /* M3 Typography - Google Sans / Roboto */
    --md-sys-typescale-display-large: 400 57px/64px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-display-medium: 400 45px/52px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-display-small: 400 36px/44px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-headline-large: 400 32px/40px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-headline-medium: 400 28px/36px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-headline-small: 400 24px/32px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-title-large: 400 22px/28px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-title-medium: 500 16px/24px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-title-small: 500 14px/20px 'Google Sans', 'Roboto', sans-serif;
    --md-sys-typescale-body-large: 400 16px/24px 'Roboto', sans-serif;
    --md-sys-typescale-body-medium: 400 14px/20px 'Roboto', sans-serif;
    --md-sys-typescale-body-small: 400 12px/16px 'Roboto', sans-serif;
    --md-sys-typescale-label-large: 500 14px/20px 'Roboto', sans-serif;
    --md-sys-typescale-label-medium: 500 12px/16px 'Roboto', sans-serif;
    --md-sys-typescale-label-small: 500 11px/16px 'Roboto', sans-serif;
    
    /* M3 Shape */
    --md-sys-shape-corner-none: 0px;
    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
    --md-sys-shape-corner-full: 9999px;
    
    /* M3 State layers */
    --md-sys-state-hover-opacity: 0.08;
    --md-sys-state-focus-opacity: 0.12;
    --md-sys-state-pressed-opacity: 0.12;
    --md-sys-state-dragged-opacity: 0.16;
    
    /* Layout */
    --max-width: 1200px;
    --top-nav-height: 64px;
}

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

html {
    font-size: 16px;
}

body {
    font: var(--md-sys-typescale-body-large);
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Links - No underlines, smooth color transitions ===== */
a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

a:hover {
    color: var(--md-sys-color-on-primary-container);
    text-decoration: none;
}

/* ===== App Layout ===== */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Horizontal Top Navigation Bar ===== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-nav-height);
    background-color: var(--md-sys-color-surface);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    box-shadow: var(--md-sys-elevation-1);
}

.nav-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 32px;
    flex-shrink: 0;
}

.nav-bar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
}

.nav-bar-logo:hover {
    background-color: #006A6A;
    transform: scale(1.05);
}

.nav-bar-logo:hover .nav-logo-img {
    filter: brightness(0) invert(1);
}

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

.nav-bar-title {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    display: none;
}

.nav-bar-items {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--md-sys-shape-corner-full);
    cursor: pointer;
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-label-large);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.nav-bar-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-bar-item:hover {
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
}

.nav-bar-item:hover::before {
    opacity: 0.08;
}

.nav-bar-item.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.nav-bar-item.active:hover::before {
    opacity: 0;
}

.nav-bar-item .material-icons {
    font-size: 20px;
}

.nav-bar-item-label {
    white-space: nowrap;
}

/* Navigation Dropdown */
.nav-bar-dropdown {
    position: relative;
}

.nav-bar-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--md-sys-shape-corner-full);
    cursor: pointer;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-label-large);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-bar-dropdown-trigger:hover {
    background-color: rgba(0, 106, 106, 0.08);
    color: var(--md-sys-color-primary);
}

.nav-bar-dropdown-trigger.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.nav-bar-dropdown-trigger .dropdown-arrow {
    font-size: 18px;
    transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-bar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-bar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-medium);
    box-shadow: var(--md-sys-elevation-2);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    z-index: 200;
}

.nav-bar-dropdown.open .nav-bar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-bar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font: var(--md-sys-typescale-body-medium);
    transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-bar-dropdown-item:hover {
    background-color: rgba(0, 106, 106, 0.08);
}

.nav-bar-dropdown-item.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.nav-bar-dropdown-item .material-icons {
    font-size: 20px;
    color: var(--md-sys-color-on-surface-variant);
}

.nav-bar-dropdown-item.active .material-icons {
    color: var(--md-sys-color-on-primary-container);
}

.nav-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ===== Icon Button ===== */
.icon-button {
    width: 40px;
    height: 40px;
    border-radius: var(--md-sys-shape-corner-full);
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
    font-size: 20px;
}

.icon-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: currentColor;
    opacity: 0;
    border-radius: inherit;
    transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1);
}

.icon-button:hover {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
}

.icon-button:hover::before {
    opacity: 0.08;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-top: var(--top-nav-height);
    display: flex;
    flex-direction: column;
}

/* ===== Page Container ===== */
.page-container {
    flex: 1;
    padding: 32px 24px;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    animation: pageEnter 300ms cubic-bezier(0.2, 0, 0, 1);
}

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

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Calistoga', serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 2.5rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.page-subtitle {
    font: var(--md-sys-typescale-body-large);
    color: var(--md-sys-color-on-surface-variant);
}

/* ===== Cards (M3) ===== */
.md-card {
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-medium);
    padding: 16px;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.md-card-elevated {
    background-color: var(--md-sys-color-surface-container-low);
    box-shadow: var(--md-sys-elevation-1);
}

.md-card-elevated:hover {
    box-shadow: var(--md-sys-elevation-2);
}

.md-card-filled {
    background-color: var(--md-sys-color-surface-container-highest);
}

.md-card-outlined {
    background-color: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
}

/* ===== Chips (M3) ===== */
.md-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: var(--md-sys-shape-corner-small);
    font: var(--md-sys-typescale-label-large);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.md-chip-assist {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
}

.md-chip-filter {
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface-variant);
}

.md-chip-filter.selected {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.md-chip-suggestion {
    background-color: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
}

/* ===== Buttons (M3) ===== */
.md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 24px;
    border-radius: var(--md-sys-shape-corner-full);
    font: var(--md-sys-typescale-label-large);
    cursor: pointer;
    border: none;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.md-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1);
}

.md-button:hover {
    text-decoration: none;
}

.md-button:hover::before {
    opacity: 0.08;
}

.md-button-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.md-button-filled:hover {
    box-shadow: var(--md-sys-elevation-1);
}

.md-button-tonal {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.md-button-outlined {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}

.md-button-text {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    padding: 0 12px;
}

/* ===== Divider ===== */
.md-divider {
    height: 1px;
    background-color: var(--md-sys-color-outline-variant);
    margin: 16px 0;
}

/* ===== About Page ===== */
.about-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.about-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.about-avatar .material-icons {
    font-size: 64px;
    color: var(--md-sys-color-on-primary-container);
}

.about-info {
    flex: 1;
}

.about-name {
    font-family: 'Calistoga', serif;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 4px;
}

.about-title {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 16px;
}

.about-bio {
    font: var(--md-sys-typescale-body-large);
    color: var(--md-sys-color-on-surface);
    line-height: 1.75;
    text-align: justify;
    margin-bottom: 16px;
}

.about-bio:last-of-type {
    margin-bottom: 0;
}

/* About Quick Links - uses links-grid styles */
.about-quick-links {
    margin-top: 24px;
}

.about-quick-links.links-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 100%;
}

.about-section {
    margin-top: 32px;
}

.about-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.about-section-title .material-icons {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

.expertise-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Experience Page Section ===== */
.experience-section {
    margin-bottom: 40px;
    scroll-margin-top: calc(var(--top-nav-height) + 24px);
}

.experience-section:last-child {
    margin-bottom: 0;
}

.experience-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Calistoga', serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--md-sys-color-primary-container);
}

.experience-section-title .material-icons {
    font-size: 28px;
    color: var(--md-sys-color-primary);
}

/* ===== Education Section ===== */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.education-card {
    padding: 20px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.education-degree-info {
    flex: 1;
}

.education-degree {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.education-institution {
    display: flex;
    align-items: center;
    gap: 6px;
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 4px;
}

.education-institution .material-icons {
    font-size: 18px;
    color: var(--md-sys-color-primary);
}

.education-department {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-left: 24px;
    margin-bottom: 0;
}

.education-year {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-primary-container);
    background-color: var(--md-sys-color-primary-container);
    padding: 4px 12px;
    border-radius: var(--md-sys-shape-corner-full);
    flex-shrink: 0;
}

.education-thesis {
    padding-top: 12px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
}

.education-thesis-label {
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.education-thesis-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--md-sys-color-primary);
}

.education-thesis-link .material-icons {
    font-size: 14px;
}

.education-thesis-text {
    font-style: italic;
}

/* ===== Experience Section ===== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-card {
    padding: 20px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.experience-info {
    flex: 1;
}

.experience-position {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.experience-institution,
.experience-location,
.experience-advisor {
    display: flex;
    align-items: center;
    gap: 6px;
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 4px;
}

.experience-institution .material-icons,
.experience-location .material-icons,
.experience-advisor .material-icons {
    font-size: 18px;
    color: var(--md-sys-color-secondary);
}

.experience-period {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-primary-container);
    background-color: var(--md-sys-color-primary-container);
    padding: 4px 12px;
    border-radius: var(--md-sys-shape-corner-full);
    flex-shrink: 0;
}

.experience-highlights {
    margin: 0;
    padding-left: 20px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: 16px;
}

.experience-highlights li {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
    line-height: 1.5;
}

.experience-highlights li:last-child {
    margin-bottom: 0;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.skill-category {
    padding: 16px;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.skill-category-header .material-icons {
    font-size: 22px;
    color: var(--md-sys-color-primary);
}

.skill-category-name {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border-radius: var(--md-sys-shape-corner-full);
    font: var(--md-sys-typescale-body-small);
}

/* ===== Mentoring Section ===== */
.mentoring-overview {
    padding: 20px;
    margin-bottom: 24px;
}

.mentoring-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font: var(--md-sys-typescale-body-large);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.mentoring-summary .material-icons {
    font-size: 28px;
    color: var(--md-sys-color-primary);
}

.mentoring-certifications {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
}

.certification-item .material-icons {
    font-size: 18px;
    color: var(--md-sys-color-tertiary);
}

.mentees-title {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.mentees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.mentee-card {
    padding: 14px 16px;
}

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

.mentee-name {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.mentee-year {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-primary-container);
    background-color: var(--md-sys-color-primary-container);
    padding: 2px 10px;
    border-radius: var(--md-sys-shape-corner-full);
}

.mentee-details {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.mentee-level {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-primary);
    font-weight: 500;
}

.mentee-duration {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
}

.mentee-institution {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .mentees-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Page with Year Sidebar Layout ===== */
.page-with-sidebar {
    display: flex;
    gap: 32px;
}

.page-main-content {
    flex: 1;
    min-width: 0;
}

/* ===== Year Navigation Sidebar ===== */
.year-nav-sidebar {
    width: 100px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--top-nav-height) + 32px);
    height: fit-content;
    max-height: calc(100vh - var(--top-nav-height) - 64px);
    overflow-y: auto;
}

.year-nav-sidebar-title {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 12px;
}

.year-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.year-nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--md-sys-shape-corner-small);
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    position: relative;
}

.year-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--md-sys-color-primary);
    border-radius: 2px;
    transition: height 200ms cubic-bezier(0.2, 0, 0, 1);
}

.year-nav-item:hover {
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
}

.year-nav-item:hover::before {
    height: 16px;
}

.year-nav-item.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.year-nav-item.active::before {
    height: 24px;
}

/* ===== Section Navigation Sidebar ===== */
.section-nav-sidebar {
    width: 140px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--top-nav-height) + 32px);
    height: fit-content;
    max-height: calc(100vh - var(--top-nav-height) - 64px);
    overflow-y: auto;
}

.section-nav-sidebar-title {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 12px;
}

.section-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--md-sys-shape-corner-small);
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    position: relative;
}

.section-nav-item .material-icons {
    font-size: 18px;
}

.section-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--md-sys-color-primary);
    border-radius: 0 2px 2px 0;
    transition: height 200ms cubic-bezier(0.2, 0, 0, 1);
}

.section-nav-item:hover {
    background-color: rgba(0, 106, 106, 0.08);
    color: var(--md-sys-color-primary);
}

.section-nav-item.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.section-nav-item.active::before {
    height: 24px;
}

@media (max-width: 900px) {
    .section-nav-sidebar {
        display: none;
    }
}

/* ===== Year Sections ===== */
.year-section {
    margin-bottom: 48px;
    scroll-margin-top: calc(var(--top-nav-height) + 24px);
}

.year-section-title {
    font-family: 'Calistoga', serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--md-sys-color-primary-container);
    display: inline-block;
}

.year-section-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Publications Page ===== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Scholar Overview Section ===== */
.scholar-overview {
    margin-bottom: 32px;
    padding: 24px;
    background-color: var(--md-sys-color-surface-container-low);
}

.scholar-overview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Calistoga', serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 4px;
}

.scholar-overview-title .material-icons {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

.scholar-overview-subtitle {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
}

.scholar-overview-subtitle a {
    color: var(--md-sys-color-primary);
    font-weight: 500;
}

.scholar-overview-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
}

/* Stats Table */
.scholar-stats-container {
    min-width: 320px;
}

.scholar-stats-table {
    width: 100%;
    border-collapse: collapse;
    font: var(--md-sys-typescale-body-medium);
}

.scholar-stats-table thead th {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--md-sys-color-primary-container);
}

.scholar-stats-table thead th:not(:first-child) {
    text-align: center;
}

.scholar-stats-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
}

.scholar-stats-table tbody td:not(:first-child) {
    text-align: center;
}

.scholar-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.scholar-stats-table .stat-value {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

/* Chart Container */
.scholar-chart-container {
    flex: 1;
    min-width: 0;
}

.scholar-chart-title {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 4px;
}

.scholar-chart-updated {
    display: flex;
    align-items: center;
    gap: 4px;
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 12px;
}

.scholar-chart-updated .material-icons {
    font-size: 14px;
}

.scholar-chart-wrapper {
    height: 200px;
    position: relative;
}

.scholar-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .scholar-overview-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .scholar-stats-container {
        min-width: auto;
    }
    
    .scholar-chart-wrapper {
        height: 180px;
    }
}

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

.publication-content {
    flex: 1;
}

.publication-title {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-title a {
    color: inherit;
    transition: color 200ms cubic-bezier(0.2, 0, 0, 1);
}

.publication-title a:hover {
    color: var(--md-sys-color-primary);
}

.publication-authors {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
}

.publication-journal {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    font-style: italic;
    margin-bottom: 12px;
}

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

.publication-actions .md-button {
    font: var(--md-sys-typescale-body-small);
    height: 32px;
    padding: 0 16px;
}

.publication-actions .md-button .material-icons {
    font-size: 12px;
}

/* ===== Filter Section ===== */
.filter-section {
    margin-bottom: 32px;
    padding: 20px;
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-medium);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 12px;
}

.filter-group-title .material-icons {
    font-size: 18px;
    color: var(--md-sys-color-primary);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--md-sys-shape-corner-full);
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    background-color: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.filter-chip:hover {
    background-color: var(--md-sys-color-surface-container-high);
    border-color: var(--md-sys-color-outline);
}

.filter-chip.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: transparent;
}

/* Filter Dropdown */
.filter-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 40px;
    padding: 0 40px 0 16px;
    border-radius: var(--md-sys-shape-corner-small);
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface);
    background-color: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
    min-width: 180px;
}

.filter-dropdown:hover {
    background-color: var(--md-sys-color-surface-container);
    border-color: var(--md-sys-color-outline);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-surface-container);
}

.filter-dropdown option {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    padding: 8px 16px;
}

.filter-dropdown-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 20px;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.active-filters-label {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
}

.active-filters-count {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-primary);
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 6px 12px;
    border-radius: var(--md-sys-shape-corner-full);
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-error);
    background: transparent;
    border: 1px solid var(--md-sys-color-error);
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.clear-filters-btn:hover {
    background-color: var(--md-sys-color-error-container);
}

.clear-filters-btn .material-icons {
    font-size: 16px;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
}

.no-results .material-icons {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font: var(--md-sys-typescale-body-large);
    margin-bottom: 24px;
}

/* Software card visibility for filtering */
.software-card.hidden {
    display: none;
}

.software-tag-chip {
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.software-tag-chip:hover {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: transparent;
}

/* ===== Software Page ===== */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.software-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.software-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.software-name {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
}

.software-langs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.software-lang {
    width: 24px;
    height: 24px;
    background-color: var(--md-sys-color-tertiary-container);
    color: #3f4948;
    border-radius: var(--md-sys-shape-corner-small);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
}

.software-lang .mdi {
    font-size: 16px;
}

.software-description {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    flex: 1;
    margin-bottom: 16px;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.software-tags .md-chip {
    height: 24px;
    padding: 0 10px;
    font: var(--md-sys-typescale-label-small);
}

.software-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.software-actions .md-button {
    height: 28px;
    padding: 0 12px;
    font: var(--md-sys-typescale-label-small);
    gap: 4px;
}

.software-actions .md-button .material-icons {
    font-size: 16px;
}

/* ===== Teaching Page ===== */
.teaching-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.teaching-card {
    padding: 20px;
}

.teaching-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.teaching-title {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
}

.teaching-period {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-primary);
}

.teaching-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 12px;
}

.teaching-institution,
.teaching-participants {
    display: flex;
    align-items: center;
    gap: 6px;
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.teaching-institution .material-icons,
.teaching-participants .material-icons {
    font-size: 18px;
    color: var(--md-sys-color-primary);
}

.teaching-description {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
}

/* ===== Links Page ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.link-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.link-card:hover {
    text-decoration: none;
}

.link-icon-container {
    width: 48px;
    height: 48px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.link-card:hover .link-icon-container {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.link-content {
    flex: 1;
}

.link-label {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 4px;
}

.link-description {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.link-arrow {
    color: var(--md-sys-color-on-surface-variant);
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--md-sys-color-primary);
}

/* ===== Presentations Page ===== */
.presentations-by-year {
    display: flex;
    flex-direction: column;
}

.presentations-subsection {
    margin-bottom: 24px;
}

.presentations-subsection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 12px;
}

.presentations-subsection-title .material-icons {
    font-size: 18px;
    color: var(--md-sys-color-secondary);
}

.count-badge {
    font: var(--md-sys-typescale-label-small);
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    padding: 2px 8px;
    border-radius: var(--md-sys-shape-corner-full);
    margin-left: 4px;
}

.presentation-card {
    padding: 16px 20px;
}

.presentation-content {
    flex: 1;
}

.presentation-title {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    line-height: 1.4;
}

.presentation-authors {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
}

.presentation-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-primary);
    margin: 0;
}

.presentation-venue .material-icons {
    font-size: 16px;
}

/* ===== Loading State ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 24px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--md-sys-color-surface-container-highest);
    border-top-color: var(--md-sys-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font: var(--md-sys-typescale-body-large);
    color: var(--md-sys-color-on-surface-variant);
}

/* ===== Mobile Bottom Navigation ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--md-sys-color-surface-container);
    z-index: 100;
    padding: 12px 8px 16px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    min-width: 48px;
}

.bottom-nav-item:hover {
    text-decoration: none;
}

.bottom-nav-item-icon {
    width: 56px;
    height: 32px;
    border-radius: var(--md-sys-shape-corner-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
}

.bottom-nav-item.active .bottom-nav-item-icon {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.bottom-nav-item.active {
    color: var(--md-sys-color-on-surface);
}

.bottom-nav-item-label {
    font: var(--md-sys-typescale-label-small);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .nav-bar-item-label {
        display: none;
    }
    
    .nav-bar-item {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
        padding-bottom: 80px;
    }
    
    .bottom-nav {
        display: block;
    }
    
    .page-container {
        padding: 24px 16px;
    }
    
    .about-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .software-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .teaching-header {
        flex-direction: column;
    }
    
    .education-header,
    .experience-header {
        flex-direction: column;
    }
    
    .education-year {
        font: var(--md-sys-typescale-label-medium);
    }
    
    .year-nav-sidebar {
        display: none;
    }
    
    .page-with-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }
}
