/* ==========================================
   PORTFOLIO - Jean-Yves Cedric Perion
   ========================================== */

:root {
    --primary: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #dbeafe;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dark: #0f172a;
    --text-dark-secondary: #475569;
    --surface: #1e293b;
    --surface-light: #f8fafc;
    --surface-border: #e2e8f0;
    --white: #ffffff;
    --success: #22c55e;
    --gold: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav.scrolled .nav-logo,
.nav.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav.scrolled .nav-cta {
    background: var(--accent) !important;
    color: white !important;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav.scrolled .nav-links a:hover {
    background: rgba(0,0,0,0.05);
}

.nav-cta {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--text-dark);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, #0a1628 0%, #0c2d5e 35%, #1a4b8c 55%, #0f3060 75%, #091a33 100%);
    overflow: hidden;
    padding: 120px 32px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Floating Azure / M365 icons as watermark */
.hero-icons-float {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    opacity: 0.04;
    color: white;
    animation: floatIcon 20s ease-in-out infinite;
}

.float-icon svg {
    width: 100%;
    height: 100%;
}

.fi-1 { width: 120px; top: 8%; left: 5%; animation-delay: 0s; animation-duration: 22s; }
.fi-2 { width: 80px; top: 15%; right: 10%; animation-delay: -3s; animation-duration: 18s; }
.fi-3 { width: 100px; bottom: 20%; left: 12%; animation-delay: -7s; animation-duration: 25s; }
.fi-4 { width: 70px; top: 40%; right: 5%; animation-delay: -11s; animation-duration: 20s; }
.fi-5 { width: 90px; bottom: 10%; right: 15%; animation-delay: -5s; animation-duration: 23s; }
.fi-6 { width: 60px; top: 60%; left: 3%; animation-delay: -14s; animation-duration: 19s; }

@keyframes floatIcon {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.03; }
    25% { transform: translate(15px, -20px) rotate(5deg); opacity: 0.06; }
    50% { transform: translate(-10px, -35px) rotate(-3deg); opacity: 0.04; }
    75% { transform: translate(20px, -15px) rotate(4deg); opacity: 0.07; }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-greeting {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    margin-top: 20px;
    font-size: 20px;
    color: var(--accent);
    font-weight: 500;
    min-height: 30px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.cursor {
    animation: blink 1s infinite;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: white;
    display: inline;
    font-family: 'JetBrains Mono', monospace;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(4px, 4px); }
}

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 96px 0;
}

.section-dark {
    background: var(--surface-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ==================== SKILL CLOUD ==================== */
.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 680px;
    margin: 28px auto 0;
    animation: fadeInUp 0.6s ease 0.25s both;
}

.skill-pill {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.4s ease;
    animation: pillFloat 6s ease-in-out infinite;
}

.skill-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Stagger the float animation for each pill */
.sp-1  { animation-delay: 0s; }
.sp-2  { animation-delay: -0.5s; }
.sp-3  { animation-delay: -1s; }
.sp-4  { animation-delay: -1.5s; }
.sp-5  { animation-delay: -2s; font-size: 15px; padding: 7px 20px; background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.3); }
.sp-6  { animation-delay: -2.5s; }
.sp-7  { animation-delay: -3s; font-size: 15px; padding: 7px 20px; background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.3); }
.sp-8  { animation-delay: -3.5s; }
.sp-9  { animation-delay: -4s; font-size: 15px; padding: 7px 20px; background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.3); }
.sp-10 { animation-delay: -4.5s; }
.sp-11 { animation-delay: -5s; }
.sp-12 { animation-delay: -0.3s; }
.sp-13 { animation-delay: -1.3s; }
.sp-14 { animation-delay: -2.3s; }
.sp-15 { animation-delay: -3.3s; }
.sp-16 { animation-delay: -4.3s; }
.sp-17 { animation-delay: -5.3s; }
.sp-18 { animation-delay: -0.8s; }

@keyframes pillFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==================== CAREER PATH ==================== */
.career-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.career-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 110px;
    position: relative;
}

.career-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface-border);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--surface-border);
    margin-bottom: 12px;
    transition: var(--transition);
    z-index: 1;
}

.career-step.accent .career-dot {
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(245, 158, 11, 0.3);
}

.career-step.current .career-dot {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(59, 130, 246, 0.4);
    width: 18px;
    height: 18px;
}

.career-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.career-step.current .career-year {
    color: var(--accent);
    font-size: 16px;
}

.career-step.accent .career-year {
    color: var(--gold);
}

.career-label {
    font-size: 12px;
    color: var(--text-dark-secondary);
    font-weight: 500;
    line-height: 1.3;
    max-width: 120px;
}

.career-step.current .career-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    max-width: 160px;
}

.career-line {
    height: 2px;
    flex: 1;
    min-width: 24px;
    max-width: 60px;
    background: linear-gradient(90deg, var(--surface-border), var(--accent), var(--surface-border));
    margin-bottom: 28px;
    opacity: 0.4;
}

@media (max-width: 900px) {
    .career-path {
        justify-content: flex-start;
        padding: 20px 16px;
    }
    .career-step {
        min-width: 90px;
    }
    .career-label {
        font-size: 11px;
        max-width: 90px;
    }
    .skill-cloud {
        gap: 8px;
        max-width: 100%;
    }
    .skill-pill {
        font-size: 12px;
        padding: 5px 12px;
    }
    .sp-5, .sp-7, .sp-9 {
        font-size: 13px;
        padding: 5px 14px;
    }
}

@media (max-width: 600px) {
    .career-path {
        gap: 0;
    }
    .career-step {
        min-width: 70px;
    }
    .career-line {
        min-width: 12px;
    }
}

/* ==================== ABOUT ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.about-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-dark-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.about-text strong {
    color: var(--text-dark);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.info-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.info-card strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-card span {
    font-size: 13px;
    color: var(--text-dark-secondary);
}

/* ==================== EXPERTISE ==================== */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.expertise-card {
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.expertise-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.expertise-card p {
    font-size: 14px;
    color: var(--text-dark-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.expertise-tags span {
    background: var(--surface-light);
    color: var(--text-dark-secondary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--surface-border);
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--surface-border));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-content {
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
}

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

.timeline-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.timeline-role {
    display: block;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.timeline-period {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark-secondary);
    white-space: nowrap;
    background: var(--surface-light);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.timeline-location {
    font-size: 13px;
    color: var(--text-dark-secondary);
    margin-bottom: 16px;
}

.timeline-mandates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mandate-card {
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    border-left: 3px solid var(--surface-border);
    transition: var(--transition);
}

.mandate-card:hover {
    border-left-color: var(--accent);
}

.mandate-card.highlight {
    border-left-color: var(--accent);
    background: var(--accent-glow);
}

.mandate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.mandate-card-header strong {
    font-size: 14px;
    color: var(--text-dark);
}

.mandate-date {
    font-size: 12px;
    color: var(--text-dark-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.mandate-card p {
    font-size: 13px;
    color: var(--text-dark-secondary);
    line-height: 1.6;
}

.mandate-role-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 100px;
}

.mandate-count {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* Expandable mandates */
.timeline-mandates-hidden {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.timeline-mandates-hidden.open {
    display: flex;
    animation: expandIn 0.4s ease;
}

@keyframes expandIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.expand-btn:hover {
    background: var(--accent);
    color: white;
}

.expand-btn:hover .expand-chevron {
    stroke: white;
}

.expand-chevron {
    transition: transform 0.3s ease, stroke 0.3s ease;
    stroke: var(--accent);
}

.expand-btn.expanded .expand-chevron {
    transform: rotate(180deg);
}

/* ==================== CERTIFICATIONS ==================== */
.recog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.recog-card {
    text-align: center;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.recog-card:hover {
    transform: translateY(-4px);
}

.recog-card.gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
}

.recog-card.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #60a5fa;
}

.recog-card.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 1px solid #a78bfa;
}

.recog-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.recog-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.recog-card p {
    font-size: 13px;
    color: var(--text-dark-secondary);
    line-height: 1.5;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.cert-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.cert-card.active {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.04);
}

.cert-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.cert-info span {
    font-size: 12px;
    color: var(--text-dark-secondary);
}

.cert-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark-secondary);
    white-space: nowrap;
}

/* ==================== PROJECTS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 18px;
}

.project-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-card p {
    font-size: 14px;
    color: var(--text-dark-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.project-tags span {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

/* ==================== EDUCATION ==================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.edu-card {
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.edu-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.edu-year {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.edu-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.edu-card p {
    font-size: 13px;
    color: var(--text-dark-secondary);
    line-height: 1.5;
}

.edu-card em {
    color: var(--accent);
    font-style: italic;
    font-size: 12px;
}

/* ==================== CONTACT ==================== */
.contact-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-block h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-block p {
    font-size: 16px;
    color: var(--text-dark-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social links in contact */
.contact-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-border);
    background: white;
    color: var(--text-dark-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Social links in hero */
.hero-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--surface-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    font-size: 13px;
    color: var(--text-dark-secondary);
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-dark-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

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

    .nav-links a {
        color: var(--text-dark) !important;
        padding: 12px 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
        width: 20px;
        height: 20px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }

    .mandate-card-header {
        flex-direction: column;
        gap: 4px;
    }

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

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

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

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

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-socials {
        flex-direction: column;
        align-items: center;
    }

    .hero-socials {
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-name {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .timeline-content {
        padding: 20px;
    }
}
