:root {
    --color-bg: #f9fafb;
    --color-card: rgba(255, 255, 255, 0.85);
    --color-text-main: #1f2937;
    --color-text-secondary: #4b5563;
    --color-text-muted: #9ca3af;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-border: rgba(229, 231, 235, 0.6);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", source-code-pro, Menlo, monospace;
    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-pill: 50px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
    --transition-spring: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(16px);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 1rem;
    padding-bottom: 2rem;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 32px 32px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.academic-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    transition: var(--transition-spring);
    height: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    will-change: transform, box-shadow;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.academic-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
    transform: translateY(-4px);
    z-index: 10;
}

.card-header-simple {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
}

.card-header-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header-title i {
    color: var(--color-accent);
}

.card-body-simple {
    padding: 1.75rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    position: relative;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
    overflow: hidden;
}

.stat-item:hover {
    background: #fff;
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 4rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    transition: var(--transition-spring);
    color: var(--color-text-main);
}

.stat-item:hover .stat-bg-icon {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1);
    color: var(--color-accent);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-text-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
}

.funding-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.funding-main {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-text-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.funding-sub {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-weight: 600;
}

.stat-prefix {
    font-size: 0.6em;
    opacity: 0.7;
    margin-right: 2px;
    vertical-align: middle;
}

.timeline-wrapper {
    position: relative;
    padding-left: 2rem;
    margin-left: 0.5rem;
    border-left: 2px solid rgba(229, 231, 235, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    padding: 3px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: var(--transition-spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker img, 
.timeline-marker .icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.timeline-marker .icon-placeholder {
    background: #f3f4f6;
    color: var(--color-text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--color-accent);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
    margin-left: 0.5rem;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.1);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.exp-title {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.3;
}

.exp-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-left: auto;
    white-space: nowrap;
    background: rgba(0,0,0,0.03);
    padding: 2px 6px;
    border-radius: var(--radius-btn);
}

.exp-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.2rem;
    font-weight: 500;
}

.exp-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
    opacity: 0.8;
}

.award-card {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
    height: 100%;
}

.award-card:hover {
    background: #fff;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.award-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border-radius: var(--radius-btn);
    margin-right: 0.75rem;
}

.award-content {
    flex-grow: 1;
}

.award-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.3;
}

.award-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .timeline-wrapper {
        padding-left: 1.5rem;
        margin-left: 0;
    }
    
    .timeline-marker {
        width: 32px;
        height: 32px;
        left: -1.5rem;
    }
    
    .timeline-content {
        margin-left: 0;
        padding: 0.5rem;
        background: transparent;
    }

    .exp-meta {
        position: static;
        display: inline-block;
        margin-top: 0.3rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .funding-main {
        font-size: 1.5rem;
    }
}

.navbar-wrapper {
    position: sticky;
    top: 1rem;
    z-index: 1030;
    margin-bottom: 1rem;
}

.navbar-card {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-card.nav-scrolled {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.navbar-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-text-main) !important;
    letter-spacing: -0.02em;
    padding-left: 0.25rem;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-secondary) !important;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem !important;
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
    margin: 0 0.1rem;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--color-accent) !important;
    background: rgba(59, 130, 246, 0.08);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--color-text-main);
    border-radius: var(--radius-btn);
}

.footer-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: transparent;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
}

.back-to-top:hover {
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.profile-img {
    width: 100%;
    max-width: 180px;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
}

.profile-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
    background: var(--color-card);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cv {
    background: var(--color-text-main);
    color: #fff;
    border-color: var(--color-text-main);
}

.btn-cv:hover {
    background: var(--color-accent-hover);
    color: #fff;
    border-color: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    padding-left: 2px;
}

.news-scroll::-webkit-scrollbar {
    width: 5px;
}

.news-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.news-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(209, 213, 219, 0.6);
    border-radius: var(--radius-btn);
}

.news-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.8);
}

.news-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-card);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(243, 244, 246, 0.8);
    margin-bottom: 6px;
}

.news-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-row:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.news-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 4px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-btn);
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
}

.news-row:hover .news-badge {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.news-badge-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
    opacity: 0.9;
}

.news-badge-day {
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.1;
}

.news-badge-year {
    font-size: 0.6rem;
    margin-top: 2px;
    opacity: 0.8;
    font-weight: 500;
}

.news-content {
    flex-grow: 1;
    padding-top: 4px;
}

.news-title {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    display: block;
    transition: color 0.2s;
}

.news-row:hover .news-title {
    color: var(--color-text-main);
}

.pub-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-cover {
    width: 100%;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
}

.pub-item:hover .pub-cover {
    border-color: var(--color-accent);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.pub-title {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.pub-item:hover .pub-title {
    color: var(--color-accent);
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.pub-venue {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pub-venue strong {
    color: var(--color-accent);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-btn);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid rgba(59, 130, 246, 0.1);
    font-style: normal;
}

.pub-abstract {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    background: #f3f4f6;
    padding: 1rem;
    border-radius: var(--radius-btn);
    margin: 0.8rem 0;
    line-height: 1.6;
    border-left: 3px solid var(--color-accent);
}

.btn-pub-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-btn);
    margin-right: 0.6rem;
    margin-top: 0.5rem;
    text-transform: capitalize;
    background: #fff;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-pub-link:hover {
    color: #fff;
    border-color: var(--color-accent);
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   TEAM PAGE SPECIFIC STYLES
   ========================================= */

/* Section Titles */
.team-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(229, 231, 235, 0.5);
    display: inline-block;
}

/* PI Card */
.team-pi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .team-pi-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.team-pi-img-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-bg);
    box-shadow: var(--shadow-md);
}

.team-pi-img-wrapper img,
.team-pi-img-wrapper .team-avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-pi-content {
    flex-grow: 1;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.team-member-bio {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Team Member Cards */
.team-member-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-spring);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card:hover {
    background: #fff;
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.team-avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    background: #fff;
}

.team-avatar-wrapper img,
.team-avatar-wrapper .team-avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--color-text-muted);
    font-size: 2.5rem;
}

.team-avatar-placeholder.pi-size {
    font-size: 4rem;
}

.team-member-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-social-links a {
    color: var(--color-text-muted);
    margin: 0 6px;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.team-social-links a:hover {
    color: var(--color-accent);
}

/* Projects */
.project-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-item:first-child {
    padding-top: 0;
}

.project-img-wrapper {
    width: 100%;
    border-radius: var(--radius-btn);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16/9;
}

.project-img-wrapper img,
.project-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 2rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.project-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Funding Table */
.funding-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    border-top: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
}

.funding-table td {
    vertical-align: middle;
    padding: 1rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(229, 231, 235, 0.4);
    font-size: 0.9rem;
}

.funding-table tr:last-child td {
    border-bottom: none;
}