/* GitHub button matching site card aesthetic */
.btn--github {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    outline: none !important;
}
/* Glass overlay effects matching card system */
.btn--github::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    z-index: 1;
}

.btn--github::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: calc(var(--radius-xl) + 2px);
    opacity: 0;
    transition: all 400ms ease;
    pointer-events: none;
    z-index: 0;
}

.btn--github > * {
    position: relative;
    z-index: 2;
}

.btn--github i {
    font-size: 1.2em;
    color: currentColor;
    margin-right: 0.1rem;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn--github:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.btn--github:hover::before {
    opacity: 1;
}

.btn--github:hover::after {
    opacity: 1;
}

.btn--github:hover i {
    transform: translateY(-2px) scale(1.05);
}

.btn--github:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 150ms ease;
}
.btn--github:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 0 3px rgba(120, 140, 180, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Outline variant (add class .btn--github--outline) */
.btn--github--outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn--github--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Reduced motion: remove vertical shift */
@media (prefers-reduced-motion: reduce) {
  .btn--github {
    transition: background 350ms ease, border-color 400ms ease, box-shadow 450ms ease;
  }
  .btn--github:hover {
    transform: none;
  }
  .btn--github i {
    transition: none;
  }
  .btn--github:hover i {
    transform: none;
  }
}/* Dark mode adaptation for card-style button */
@media (prefers-color-scheme: dark) {
    .btn--github {
        background: rgba(40, 44, 52, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e6edf3;
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
    .btn--github:hover {
        background: rgba(48, 52, 60, 0.9);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 10px 20px rgba(0, 0, 0, 0.3);
    }
    .btn--github--outline {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .btn--github--outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    .btn--github:focus-visible {
        box-shadow: 
            0 0 0 3px rgba(120, 170, 255, 0.4),
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 10px 20px rgba(0, 0, 0, 0.3);
    }
}
/* Projects section button container */
.projects-more {
    text-align: center;
    margin-top: calc(var(--space-8) + var(--space-2));
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
}
.projects-more i {
    font-size: 1.2em;
    color: #181717;
    margin-right: 0.2em;
}
.projects-more-link {
    color: var(--brand-700);
    text-decoration: underline;
    transition: color 0.2s;
}
.projects-more-link:hover {
    color: var(--brand-500);
}
.projects-annotation {
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--brand-700);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}
.projects-annotation i {
    font-size: 1.1em;
    color: var(--brand-500);
    margin-right: 0.2em;
}
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                background 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.project-card:hover, .project-card:focus {
    box-shadow: 0 12px 40px 0 rgba(120,140,180,0.18), 0 2px 8px 0 rgba(120,140,180,0.13), var(--shadow-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.19) 50%, rgba(255,255,255,0.13) 100%);
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(120,140,180,0.38);
}
.about-content .card.scrolled-in,
.about-highlights .card.scrolled-in {
    animation: aboutMeReveal 0.7s cubic-bezier(0.25,0.46,0.45,0.94) both;
}

@keyframes aboutMeReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
        filter: blur(6px);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.04);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateY(-6px) scale(1.045);
        filter: blur(0);
    }
}
.timeline__content.scrolled-in:hover,
.card.scrolled-in:hover {
    /* Désactive le hover si déjà scrolled-in */
    box-shadow: inherit;
    border-color: inherit;
    background: inherit;
    backdrop-filter: inherit;
    transition: inherit;
}
.card.scrolled-in,
.timeline__content.scrolled-in {
    /* Apple-like épuré + zoom doux */
    box-shadow: 0 8px 32px 0 rgba(120,140,180,0.13), 0 1.5px 6px 0 rgba(120,140,180,0.08), var(--shadow-sm) !important;
    border: 1.5px solid rgba(120,140,180,0.22) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.17) 50%, rgba(255,255,255,0.12) 100%) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    transform: translateY(-6px) scale(1.045) !important;
    opacity: 1 !important;
    transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.3s !important;
}
/* ========================================
   Modern Portfolio CSS
   Created: 2024
   Modern, responsive design system
======================================== */

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
========================================================================== */

:root {
    /* Color Palette */
    --brand-50: #f0f9ff;
    --brand-100: #e0f2fe;
    --brand-200: #bae6fd;
    --brand-300: #7dd3fc;
    --brand-400: #38bdf8;
    --brand-500: #0ea5e9;
    --brand-600: #0284c7;
    --brand-700: #0369a1;
    --brand-800: #075985;
    --brand-900: #0c4a6e;
    --brand-950: #082f49;

    /* Neutral Colors */
    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --neutral-950: #020617;

    /* Semantic Colors */
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    --info-500: var(--brand-500);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    --gradient-secondary: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 50%, var(--neutral-900) 100%);

    /* Typography */
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */

    /* Spacing */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 0 1px rgb(255 255 255 / 0.05), 0 4px 6px -1px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Blur */
    --blur-sm: 4px;
    --blur: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;
}

/* ==========================================================================
   RESET & BASE STYLES
========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--neutral-600);
}

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UTILITY CLASSES
========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__title {
    font-size: var(--text-4xl);
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand-600);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: top var(--transition-fast);
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 6px;
}

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

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

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Glass Effect Shimmer Animations */
@keyframes glassShimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(300%) rotate(45deg);
    }
}

@keyframes shimmerBlue {
    0% {
        background-position: -200% 0;
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        background-position: 200% 0;
        opacity: 0.3;
    }
}

@keyframes glassShimmer {
    0% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 50%, 
            transparent 100%);
        opacity: 0.3;
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.15) 50%, 
            rgba(255, 255, 255, 0.08) 100%);
        opacity: 0.8;
    }
    100% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 50%, 
            transparent 100%);
        opacity: 0.3;
    }
}

@keyframes borderGlow {
    0% {
        background: linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.2) 20%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.2) 80%,
            rgba(255, 255, 255, 0.1) 100%);
        opacity: 0.6;
    }
    100% {
        background: linear-gradient(45deg, 
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0.4) 80%,
            rgba(255, 255, 255, 0.2) 100%);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   BUTTONS
========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.btn:focus {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Variants */
.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--brand-600);
    border-color: var(--brand-600);
}

.btn--outline:hover {
    background: var(--brand-600);
    color: white;
}

.btn--ghost {
    background: transparent;
    color: var(--neutral-600);
}

.btn--ghost:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

/* Button Sizes */
.btn--small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn--full {
    width: 100%;
}

/* Icon alignment in buttons */
.btn i {
    line-height: 1;
    vertical-align: baseline;
}

.btn i.fas,
.btn i.far,
.btn i.fal {
    font-size: 1em;
}

/* ==========================================================================
   CARDS
========================================================================== */

.card {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: calc(var(--radius-xl) + 2px);
    opacity: 0;
    transition: all 400ms ease;
    pointer-events: none;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
    animation: glassShimmer 2s ease-in-out infinite;
}

.card--feature {
    background: linear-gradient(145deg, var(--neutral-0) 0%, var(--neutral-50) 100%);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.card--feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.card__title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
}

.card__description {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   NAVIGATION
========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid var(--neutral-200);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.navbar--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    color: var(--neutral-900);
    text-decoration: none;
    font-size: var(--text-lg);
}

.navbar__logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
}

.navbar__nav {
    display: flex;
    align-items: center;
}

.navbar__links {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
}

.navbar__link {
    color: var(--neutral-600);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--brand-600);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-600);
    transition: width var(--transition-fast);
}

.navbar__link:hover::after,
.navbar__link--active::after {
    width: 100%;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.navbar__cta {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

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

.language-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: var(--space-2);
}

.language-toggle:hover {
    background: var(--neutral-100);
    transform: scale(1.1);
}

.flag-icon {
    font-size: 20px;
    transition: transform var(--transition-fast);
}

.language-toggle:hover .flag-icon {
    transform: scale(1.2);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--neutral-600);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    gap: 4px;
}

.navbar__toggle-line {
    width: 20px;
    height: 2px;
    background: var(--neutral-700);
    transition: all var(--transition-fast);
}

.navbar__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

/* Mobile menu */
.navbar__mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-0);
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-6);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.navbar__mobile--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.navbar__mobile-links {
    list-style: none;
    margin: 0 0 var(--space-6) 0;
    padding: 0;
}

.navbar__mobile-link {
    display: block;
    padding: var(--space-3) 0;
    color: var(--neutral-700);
    font-weight: 500;
    border-bottom: 1px solid var(--neutral-100);
}

.navbar__mobile-link:hover {
    color: var(--brand-600);
}

/* ==========================================================================
   HERO SECTION
========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-16);
    align-items: center;
}

.hero__content {
    animation: fadeInLeft 1s ease-out;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--brand-50);
    color: var(--brand-700);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    border: 1px solid var(--brand-200);
}

.hero__badge-icon {
    width: 8px;
    height: 8px;
    background: var(--brand-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--neutral-900);
}

.hero__title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Typing Boomerang Animation */
.typing-boomerang {
    display: inline-block;
    position: relative;
    min-width: 8ch; /* Ensure space for "Thomas" + cursor */
    min-height: 1em; /* Maintain height even when empty */
    /* Use solid color instead of gradient to ensure visibility */
    color: #3b82f6; /* Blue color */
    -webkit-text-fill-color: #3b82f6;
    background: none;
    font-weight: 800;
}

.typing-boomerang::after {
    content: '|';
    display: inline-block;
    color: rgba(59, 130, 246, 0.8);
    animation: typingCursor 1s infinite;
    margin-left: 3px;
    font-weight: 300;
    position: absolute;
}

/* Keyframes for cursor blinking */
@keyframes typingCursor {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0;
    }
}

/* Smooth transition for text changes */
.typing-boomerang {
    transition: all 0.1s ease-in-out;
}

.hero__description {
    font-size: var(--text-xl);
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-8);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-600);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.hero__avatar {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero__avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero__avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    background: var(--gradient-secondary);
}

.hero__avatar-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-3xl);
    z-index: -1;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-500);
    font-size: var(--text-sm);
    animation: fadeInUp 1s ease-out 1s both;
}

.hero__scroll-text {
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.hero__scroll-icon {
    width: 20px;
    height: 30px;
    border: 2px solid var(--neutral-400);
    border-radius: var(--radius-xl);
    position: relative;
}

.hero__scroll-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--neutral-400);
    border-radius: 1px;
    animation: slideInFromBottom 1.5s ease-in-out infinite;
}

/* ==========================================================================
   ABOUT SECTION
========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.about-content {
    animation: fadeInLeft 0.8s ease-out;
}

.about-highlights {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

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

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--neutral-700);
}

.highlight-item i {
    color: var(--brand-500);
    font-size: var(--text-lg);
    width: 20px;
}

/* ==========================================================================
   SKILLS SECTION
========================================================================== */

.skills {
    background: var(--neutral-50);
    padding: var(--space-20) 0;
}

.skills__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.skills__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.skills__title {
    font-size: var(--text-4xl);
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

.skills__subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

.skills__categories {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.skills__category {
    background: var(--neutral-0);
    color: var(--neutral-600);
    border: 1px solid var(--neutral-200);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.skills__category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 500ms ease;
}

.skills__category:hover::before {
    left: 100%;
}

.skills__category:hover,
.skills__category--active {
    background: var(--brand-600);
    color: white;
    border-color: var(--brand-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.skills__category:active {
    transform: translateY(0);
    transition: all 100ms ease;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.skill-card {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    z-index: 1;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: calc(var(--radius-xl) + 1px);
    opacity: 0;
    transition: all 400ms ease;
    pointer-events: none;
    z-index: 0;
}

.skill-card > * {
    position: relative;
    z-index: 2;
}

/* Animation states for filtering */
.skill-card.filtering-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
}

.skill-card.filtering-in {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

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

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 100%);
}

.skill-card:hover::before {
    opacity: 1;
    animation: glassShimmer 2s ease-in-out infinite;
}

.skill-card:hover::after {
    opacity: 1;
    animation: borderGlow 1.5s ease-in-out infinite alternate;
}

.skill-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.skill-card__icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xl);
}

.skill-card__info h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 var(--space-1) 0;
}

.skill-card__level {
    font-size: var(--text-sm);
    color: var(--brand-600);
    font-weight: 500;
}

.skill-card__description {
    color: var(--neutral-600);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

.skill-card__progress {
    height: 6px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.skill-card__progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: var(--progress, 0%);
    transition: width 1s ease-out 0.5s;
}

.skill-card__progress-text {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    text-align: right;
    font-weight: 500;
}

.skills__icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    transition: transform var(--transition-fast);
}

.skill-icon:hover {
    transform: translateY(-4px);
}

.skill-icon__image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.skill-icon__name {
    font-size: var(--text-xs);
    color: var(--neutral-600);
    font-weight: 500;
}

/* ==========================================================================
   PROJECTS SECTION
========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.card__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--radius-lg);
}

.card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(10px);
}

.card:hover .card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.card:hover .project-image {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.card__content {
    padding: 0;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.tag {
    background: var(--brand-100);
    color: var(--brand-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* ==========================================================================
   TIMELINE (EXPERIENCE SECTION)
========================================================================== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--brand-200);
}

.timeline__item {
    position: relative;
    margin-bottom: var(--space-12);
    padding-left: var(--space-16);
}

.timeline__marker {
    position: absolute;
    left: 22px;
    top: var(--space-2);
    width: 18px;
    height: 18px;
    background: var(--brand-500);
    border: 3px solid var(--neutral-0);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.timeline__content {
    background: var(--neutral-0);
    border: 1.5px solid rgba(120, 140, 180, 0.22); /* Apple-like, gris-bleu subtil */
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 4px 24px 0 rgba(120, 140, 180, 0.10), 0 1.5px 6px 0 rgba(120, 140, 180, 0.08), var(--shadow-sm);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px) saturate(120%);
}

.timeline__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    z-index: 1;
}

.timeline__content::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: calc(var(--radius-xl) + 1px);
    opacity: 0;
    transition: all 400ms ease;
    pointer-events: none;
    z-index: 0;
}

.timeline__content > * {
    position: relative;
    z-index: 2;
}

.timeline__content:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 12px 48px 0 rgba(120, 140, 180, 0.18), 0 2px 8px 0 rgba(120, 140, 180, 0.13), var(--shadow-sm);
    border-color: rgba(120, 140, 180, 0.38); /* Glow Apple-like au hover */
    backdrop-filter: blur(16px) saturate(140%) brightness(1.04);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.17) 50%,
        rgba(255, 255, 255, 0.12) 100%);
}

.timeline__content:hover::before {
    opacity: 1;
    animation: glassShimmer 2.5s ease-in-out infinite;
}

.timeline__content:hover::after {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

.timeline__date {
    color: var(--brand-600);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.timeline__title {
    font-size: var(--text-xl);
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.timeline__subtitle {
    font-size: var(--text-base);
    color: var(--brand-600);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.timeline__description {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.timeline__skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.skill-tag {
    background: var(--neutral-100);
    color: var(--neutral-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.timeline__actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-4);
}

.timeline__more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
    padding-top: var(--space-8);
}

/* ==========================================================================
   CONTACT SECTION
========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    background: var(--brand-100);
    color: var(--brand-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.contact-item__content h4 {
    font-size: var(--text-base);
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.contact-item__content a,
.contact-item__content span {
    color: var(--neutral-600);
    text-decoration: none;
}

.contact-item__content a:hover {
    color: var(--brand-600);
}

.availability {
    text-align: center;
}

.availability__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-weight: 500;
    color: var(--success-500);
}

.availability__indicator {
    width: 8px;
    height: 8px;
    background: var(--success-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.availability__details {
    color: var(--neutral-600);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Downloads section */
.downloads {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.download-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.download-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.download-item:hover {
    border-color: var(--brand-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.download-item__content {
    flex: 1;
    min-width: 0;
}

.download-item__content h4 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--neutral-900);
}

.download-item__content p {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.4;
}

.download-item__content .btn {
    margin-top: var(--space-2);
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-700);
}

.form__input,
.form__select,
.form__textarea {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    background: var(--neutral-0);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   FOOTER
========================================================================== */

.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: var(--space-20) 0 var(--space-8) 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.footer__logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.footer__info h3 {
    color: var(--neutral-0);
    margin-bottom: var(--space-2);
}

.footer__info p {
    color: var(--neutral-400);
    margin: 0;
}

.footer__section h4 {
    color: var(--neutral-0);
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.footer__section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__section li {
    margin-bottom: var(--space-2);
}

.footer__section a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__section a:hover {
    color: var(--brand-400);
}

.footer__social h4 {
    color: var(--neutral-0);
    margin-bottom: var(--space-4);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--neutral-800);
    color: var(--neutral-400);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--brand-600);
    color: white;
    transform: translateY(-2px);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-800);
}

.footer__copyright p {
    color: var(--neutral-400);
    font-size: var(--text-sm);
    margin: 0;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.back-to-top:hover {
    color: var(--brand-400);
}

.back-to-top i {
    font-size: var(--text-xs);
}

/* ==========================================================================
   RESPONSIVE DESIGN
========================================================================== */

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --space-16: 3rem;
        --space-20: 4rem;
    }
    
    .navbar__nav {
        display: none;
    }
    
    .navbar__toggle {
        display: flex;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
    
    .hero__avatar-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .skills__grid {
        grid-template-columns: 1fr;
    }
    
    .skills__categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-2);
    }
    
    /* Projects responsive */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline responsive */
    .timeline::before {
        left: 15px;
    }
    
    .timeline__item {
        padding-left: var(--space-10);
    }
    
    .timeline__marker {
        left: 7px;
    }
    
    /* Contact responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Contact info grid responsive */
    .contact-info [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Downloads responsive */
    .download-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .download-item__icon {
        margin: 0 auto;
    }
    
    .download-item__content .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        min-width: auto;
        text-align: center;
        padding: 0.7rem 1.4rem !important;
        line-height: 1.2 !important;
        vertical-align: middle;
        font-size: 0.85rem !important;
        height: auto !important;
        box-sizing: border-box;
    }
    
    .download-item__content .btn i {
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
        font-size: 0.85rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        display: inline-block;
        width: auto !important;
        height: auto !important;
    }
    
    .download-item__content .btn span {
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        display: inline-block;
        font-weight: 600;
    }
    
    .download-item__content .btn.btn--small {
        padding: 0.7rem 1.4rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Reset FontAwesome styles in download buttons */
    .download-item__content .btn .fas::before,
    .download-item__content .btn .fa::before {
        vertical-align: baseline !important;
        line-height: 1 !important;
    }
    
    /* Footer responsive */
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer__brand {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .hero__description {
        font-size: var(--text-lg);
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn--large {
        width: 100%;
    }
}

/* ==========================================================================
   FOCUS & ACCESSIBILITY
========================================================================== */

*:focus {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero__scroll {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
}

/* Mobile-specific fix for download button alignment */
@media screen and (max-width: 567px) {
    .download-item__content .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        min-height: 44px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }
    
    .download-item__content .btn i {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
    }
    
    .download-item__content .btn span {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        font-weight: 600 !important;
    }
}

@media screen and (max-width: 480px) {
    .download-item__content .btn {
        gap: 0.3rem !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
    }
    
    .download-item__content .btn i,
    .download-item__content .btn span {
        font-size: 0.8rem !important;
    }
}

/* Mobile-specific fix for download button alignment */
@media screen and (max-width: 567px) {
    .download-item__content .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        min-height: 44px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }
    
    .download-item__content .btn i {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
    }
    
    .download-item__content .btn span {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        font-weight: 600 !important;
    }
}

@media screen and (max-width: 480px) {
    .download-item__content .btn {
        gap: 0.3rem !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
    }
    
    .download-item__content .btn i,
    .download-item__content .btn span {
        font-size: 0.8rem !important;
    }
}

/* Mobile-specific fix for download button alignment */
@media screen and (max-width: 567px) {
    .download-item__content .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        min-height: 44px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }
    
    .download-item__content .btn i {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
    }
    
    .download-item__content .btn span {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        font-weight: 600 !important;
    }
}

@media screen and (max-width: 480px) {
    .download-item__content .btn {
        gap: 0.3rem !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
    }
    
    .download-item__content .btn i,
    .download-item__content .btn span {
        font-size: 0.8rem !important;
    }
}
