:root {
    --udem-blue: #0057A4;
    --udem-blue-dark: #003d73;
    --udem-blue-light: #e8f4fc;
    --udem-red: #C8102E;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --primary: var(--udem-blue);
    --primary-dark: var(--udem-blue-dark);
    --primary-light: var(--udem-blue-light);
    --accent: var(--udem-red);
    --text: var(--gray-800);
    --border: var(--gray-200);
    --nav-height: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
    --primary-light: rgba(0, 87, 164, 0.2);
    --text: #f1f5f9;
    --border: #334155;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; background: var(--white); color: var(--text); line-height: 1.6; min-height: 100vh; overflow-x: hidden; transition: background 0.3s ease, color 0.3s ease; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 1000; transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-container { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.nav-logo span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 0.5rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); padding: 0.6rem 1rem; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-lang { display: flex; gap: 0.25rem; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.lang-btn { font-family: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.7rem; border: 1px solid var(--border); background: transparent; color: var(--gray-500); border-radius: 6px; cursor: pointer; transition: var(--transition); }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Nav Buttons - FR, EN, Theme */
.nav-buttons { display: flex; gap: 0.25rem; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.nav-btn { 
    font-family: inherit; 
    font-size: 0.8rem; 
    font-weight: 600; 
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border); 
    background: transparent; 
    color: var(--gray-500); 
    border-radius: 6px; 
    cursor: pointer; 
    transition: var(--transition); 
}
.nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.nav-btn svg { width: 14px; height: 14px; }

/* Theme Toggle - Single button */
.theme-btn .icon-light { display: none; }
.theme-btn .icon-dark { display: flex; }

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-btn .icon-light { display: flex; }
[data-theme="dark"] .theme-btn .icon-dark { display: none; }
[data-theme="dark"] .theme-btn { background: var(--primary); border-color: var(--primary); color: white; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem; gap: 0.5rem; border-bottom: 1px solid var(--border); transform: translateY(-100%); opacity: 0; pointer-events: none; transition: var(--transition); }
    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-lang { margin-left: 0; padding-left: 0; border-left: none; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); justify-content: center; }
}

.hero { min-height: auto; padding: calc(var(--nav-height) + 4rem) 2rem 4rem; display: flex; align-items: center; background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--primary-light) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(circle, rgba(0,87,164,0.05) 0%, transparent 70%); pointer-events: none; }
.hero-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 0.5rem 1rem; border-radius: 50px; margin-bottom: 1.5rem; }
.hero-tag svg { width: 16px; height: 16px; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--gray-900); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.25rem; font-weight: 500; color: var(--primary); margin-bottom: 1.5rem; }
.hero-description { font-size: 1.1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.9rem 1.75rem; border-radius: 10px; border: none; cursor: pointer; transition: var(--transition); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,87,164,0.3); }
.btn-secondary { background: white; color: var(--gray-700); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hero-image { position: relative; }
.hero-image img { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.15); }
.hero-image::before { content: ''; position: absolute; top: -20px; left: -20px; right: 20px; bottom: 20px; border: 3px solid var(--primary); border-radius: 20px; opacity: 0.3; z-index: -1; }

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 350px; margin: 0 auto; order: -1; }
    .hero-title { font-size: 2.5rem; }
}

.page-header { padding: calc(var(--nav-height) + 4rem) 2rem 4rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; text-align: center; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }

.section { padding: 5rem 2rem; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; color: var(--gray-500); }
.container { max-width: 1280px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }

.card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: var(--transition); }
.card:hover { border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.card-icon { width: 50px; height: 50px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.card h3 { font-size: 1.15rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--gray-300)); }
.timeline-category { margin-bottom: 3rem; }
.timeline-category h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.5rem; padding-left: 1rem; }
.timeline-category h3 svg { width: 24px; height: 24px; color: var(--primary); }
.timeline-item { position: relative; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; margin-left: 1.5rem; transition: var(--transition); }
.timeline-item::before { content: ''; position: absolute; left: -2.15rem; top: 1.25rem; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item:hover { border-color: var(--primary); transform: translateX(8px); }
.timeline-item h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.timeline-item .org { font-size: 0.9rem; font-weight: 500; color: var(--primary); margin-bottom: 0.25rem; }
.timeline-item .date { font-size: 0.85rem; color: var(--gray-400); }
.timeline-date { font-size: 0.85rem; color: var(--gray-400); font-weight: 500; display: block; margin-top: 0.5rem; }
.timeline-icon { position: absolute; left: -3rem; top: 1rem; width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.timeline-icon svg { width: 18px; height: 18px; color: white; }
.timeline-content { padding-left: 0.5rem; }

.pub-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: var(--transition); position: relative; overflow: hidden; }
.pub-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); transform: scaleY(0); transition: var(--transition); }
.pub-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.pub-card:hover::before { transform: scaleY(1); }
.pub-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.65rem; background: var(--primary-light); color: var(--primary); border-radius: 4px; text-transform: uppercase; margin-bottom: 0.75rem; }
.pub-badge svg { width: 12px; height: 12px; }
.pub-badge.book { background: rgba(0,128,0,0.1); color: #0a6c0a; }
.pub-badge.chapter { background: rgba(200,16,46,0.1); color: var(--accent); }
.pub-year { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.pub-card h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin-bottom: 0.5rem; }
.pub-authors { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 0.25rem; }
.pub-journal { font-size: 0.85rem; color: var(--gray-500); font-style: italic; }

.tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn { font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.75rem 1.5rem; background: white; border: 1px solid var(--border); border-radius: 8px; color: var(--gray-600); cursor: pointer; transition: var(--transition); }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.tab-panel { display: none; animation: fadeIn 0.4s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.media-card { display: flex; gap: 1.5rem; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: var(--transition); }
.media-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.media-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.media-icon svg { width: 26px; height: 26px; color: var(--primary); }
.media-content h4 { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.media-content .outlet { font-size: 0.9rem; font-weight: 500; color: var(--primary); margin-bottom: 0.5rem; }
.media-content p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

.cause-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; transition: var(--transition); }
.cause-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.cause-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cause-icon svg { width: 32px; height: 32px; color: var(--primary); }
.cause-card h4 { font-size: 1.15rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.75rem; }
.cause-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

.bio-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: var(--transition); }
.bio-card:hover { border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.bio-card h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.15rem; font-weight: 600; color: var(--gray-900); margin-bottom: 1rem; }
.bio-card h3 svg { width: 22px; height: 22px; color: var(--primary); }
.bio-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.9; }

.keywords { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2.5rem; }
.keyword { font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1rem; background: white; border: 1px solid var(--border); border-radius: 50px; color: var(--gray-600); transition: var(--transition); }
.keyword:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.footer { background: var(--gray-900); color: white; padding: 3rem 2rem; }
.footer-content { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-size: 1.2rem; font-weight: 700; }
.footer-logo span { color: var(--primary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--gray-400); transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.85rem; color: var(--gray-500); }
@media (max-width: 768px) { .footer-content { flex-direction: column; text-align: center; } .media-card { flex-direction: column; text-align: center; } .media-icon { margin: 0 auto; } }

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

/* Base animation states */
.animate { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate.visible { opacity: 1; transform: translateY(0); }

.animate-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-left.visible { opacity: 1; transform: translateX(0); }

.animate-right { opacity: 0; transform: translateX(60px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-right.visible { opacity: 1; transform: translateX(0); }

.animate-scale { opacity: 0; transform: scale(0.8); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-scale.visible { opacity: 1; transform: scale(1); }

/* Collapsible sections */
.collapsible-header { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.collapsible-header .chevron-toggle { transition: transform 0.3s ease; width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; }
.collapsible-header:hover .chevron-toggle { color: var(--primary); }
.collapsible-header.collapsed .chevron-toggle { transform: rotate(-90deg); }
.collapsible-body { overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 1; }
.collapsible-body.collapsed { max-height: 0 !important; opacity: 0; margin-bottom: 0 !important; }

.animate-rotate { opacity: 0; transform: rotate(-10deg) translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-rotate.visible { opacity: 1; transform: rotate(0) translateY(0); }

/* ===================================
   BIO - EDITORIAL STYLE
   =================================== */

/* Left-aligned section header */
.section-header-left {
    text-align: left;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.about-tag svg {
    width: 14px;
    height: 14px;
}

.bio-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.bio-editorial {
    margin-bottom: 3rem;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-main {
    padding-right: 2rem;
    border-right: 1px solid var(--gray-200);
}

.bio-lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bio-body {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.85;
}

/* Awards sidebar */
.bio-awards {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
}

.bio-awards-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.bio-awards-header svg {
    width: 16px;
    height: 16px;
}

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

.bio-awards-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-50);
}

.bio-awards-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.award-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.award-name {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .bio-main {
        padding-right: 0;
        border-right: none;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--gray-200);
    }
    .bio-lead {
        font-size: 1.15rem;
    }
}

/* ===================================
   STATS SECTION - NEW LAYOUT
   =================================== */

.stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Quote Card */
.stats-right {
    display: flex;
    align-items: stretch;
}

.quote-card {
    background: linear-gradient(135deg, var(--primary) 0%, #003d73 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.quote-icon {
    width: 32px;
    height: 32px;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.quote-card cite {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: normal;
}

.quote-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.quote-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(4px);
}

.quote-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .stats-layout {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PROFILES SECTION - NEW LAYOUT
   =================================== */

.profiles-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

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

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.profile-card:hover .profile-arrow {
    opacity: 1;
    transform: translateX(0);
}

.profile-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.profile-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.profile-arrow {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

/* Contact Card */
.profiles-right {
    display: flex;
    align-items: stretch;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px dashed var(--gray-200);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    border-style: solid;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #003d73;
    transform: translateY(-2px);
}

.contact-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .profiles-layout {
        grid-template-columns: 1fr;
    }
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FEATURED PUBLICATIONS
   =================================== */

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

.pub-featured {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
}

.pub-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.pub-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-cover-placeholder {
    width: 80px;
    height: 100px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-cover-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.pub-details {
    padding: 1.25rem;
}

.pub-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.pub-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.pub-publisher {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-style: italic;
}

.pub-type {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   NEWS / ACTUALITÉS
   =================================== */

.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    background: var(--primary-light);
    border-radius: 8px;
}

.news-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.news-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.news-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.news-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* PhD CTA Card */
.news-right {
    display: flex;
    align-items: stretch;
}

.cta-phd {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.cta-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.cta-phd h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-phd p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cta-phd .contact-btn {
    background: rgba(255,255,255,0.15);
    width: fit-content;
}

.cta-phd .contact-btn:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PARTNER LOGOS
   =================================== */

.partners-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-logo:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.partner-logo span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

.partner-logo:hover span {
    color: var(--primary);
}

/* Expertise Tags */
.expertise-tag {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-700);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease, opacity 0.7s var(--ease), transform 0.7s var(--ease);
    cursor: default;
}

.expertise-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.05) !important;
}

/* Staggered animation delays for expertise tags */
.expertise-tags .expertise-tag:nth-child(1) { transition-delay: 0ms; }
.expertise-tags .expertise-tag:nth-child(2) { transition-delay: 80ms; }
.expertise-tags .expertise-tag:nth-child(3) { transition-delay: 160ms; }
.expertise-tags .expertise-tag:nth-child(4) { transition-delay: 240ms; }
.expertise-tags .expertise-tag:nth-child(5) { transition-delay: 320ms; }
.expertise-tags .expertise-tag:nth-child(6) { transition-delay: 400ms; }
.expertise-tags .expertise-tag:nth-child(7) { transition-delay: 480ms; }
.expertise-tags .expertise-tag:nth-child(8) { transition-delay: 560ms; }


/* Enhanced card hover with 3D effect */
.card, .pub-card, .media-card, .award-card {
    transition: all 0.4s var(--ease);
    transform-style: preserve-3d;
}

/* Navbar hide/show animation */
.navbar {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

/* Section headers with parallax-ready transform */
.section-header {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Hero - JS controls the parallax directly */
#heroImage, #heroContent {
    will-change: transform, opacity;
    transition: none !important;
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays for grids */
.grid-2 > *:nth-child(1) { transition-delay: 0ms; }
.grid-2 > *:nth-child(2) { transition-delay: 100ms; }

.grid-3 > *:nth-child(1) { transition-delay: 0ms; }
.grid-3 > *:nth-child(2) { transition-delay: 80ms; }
.grid-3 > *:nth-child(3) { transition-delay: 160ms; }

.grid-4 > *:nth-child(1) { transition-delay: 0ms; }
.grid-4 > *:nth-child(2) { transition-delay: 60ms; }
.grid-4 > *:nth-child(3) { transition-delay: 120ms; }
.grid-4 > *:nth-child(4) { transition-delay: 180ms; }

/* Timeline staggered animations */
.timeline > *:nth-child(1) { transition-delay: 0ms; }
.timeline > *:nth-child(2) { transition-delay: 100ms; }
.timeline > *:nth-child(3) { transition-delay: 200ms; }
.timeline > *:nth-child(4) { transition-delay: 300ms; }
.timeline > *:nth-child(5) { transition-delay: 400ms; }

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating { animation: float 3s ease-in-out infinite; }

/* Pulse animation for highlights */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Glow effect on scroll */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

/* Reveal animation for text */
@keyframes revealText {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.reveal-text {
    animation: revealText 1s var(--ease) forwards;
}

/* Hero entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover animations */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.wiggle-hover:hover {
    animation: wiggle 0.3s ease-in-out;
}

/* Button hover effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Card icon bounce on hover */
.card:hover .card-icon,
.award-card:hover .award-icon {
    animation: bounceIn 0.5s ease-out;
}

/* Link underline animation */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===================================
   DARK MODE OVERRIDES
   =================================== */

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, rgba(0, 87, 164, 0.15) 100%);
}

[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .bio-awards,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .about-tag {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .hero-image img {
    box-shadow: 0 25px 80px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .quote-card {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="dark"] .footer {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .section-alt {
    background: var(--gray-50);
}

[data-theme="dark"] .expertise-tag {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .contact-card {
    border-color: var(--gray-200);
}

[data-theme="dark"] .pub-featured,
[data-theme="dark"] .news-item,
[data-theme="dark"] .partner-logo {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .pub-cover {
    background: linear-gradient(135deg, rgba(0,87,164,0.2) 0%, var(--gray-100) 100%);
}

[data-theme="dark"] .pub-cover-placeholder {
    background: var(--gray-50);
}
