.bg-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1;
            pointer-events: none;

            background-image:
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

            background-size: 60px 60px;

            -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
            mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
        }

        .shape-4 {
            width: 300px;
            height: 300px;
            background: rgba(59, 130, 246, 0.1);
            top: 20%;
            right: 10%;
            animation-delay: -3s;
            filter: blur(60px);
        }

        .shape-5 {
            width: 250px;
            height: 250px;
            background: rgba(192, 132, 252, 0.1);
            bottom: 30%;
            left: 15%;
            animation-delay: -7s;
            filter: blur(50px);
        }

        :root {
            --bg-main: #070b14;
            --bg-card: rgba(20, 27, 45, 0.7);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --accent-1: #3b82f6;
            --accent-2: #8b5cf6;
            --accent-glow: rgba(59, 130, 246, 0.3);
            --card-border: rgba(255, 255, 255, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .reveal {
            opacity: 0;

            transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: opacity, transform, filter;
            filter: blur(8px);

        }

        .reveal.visible {
            opacity: 1;
            transform: translate(0, 0) scale(1);
            filter: blur(0);
        }

        .reveal-up {
            transform: translateY(60px);
        }

        .reveal-down {
            transform: translateY(-60px);
        }

        .reveal-left {
            transform: translateX(-50px);
        }

        .reveal-right {
            transform: translateX(50px);
        }

        .reveal-scale {
            transform: scale(0.9);
        }

        .delay-100 {
            transition-delay: 0.2s;
        }

        .delay-200 {
            transition-delay: 0.2s;
        }

        .delay-300 {
            transition-delay: 0.3s;
        }

        .delay-400 {
            transition-delay: 0.4s;
        }

        .delay-500 {
            transition-delay: 0.5s;
        }

        /* Initial Load Animation */
        @keyframes customFadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
                filter: blur(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
                filter: blur(0);
            }
        }

        .fade-in-initial {
            animation: customFadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            opacity: 0;
        }

        .fade-delay-1 {
            animation-delay: 0.2s;
        }

        .fade-delay-2 {
            animation-delay: 0.4s;
        }

        /* Continuous Animations */
        @keyframes float {
            0% {
                transform: translateY(0px) scale(1);
            }

            50% {
                transform: translateY(-20px) scale(1.05);
            }

            100% {
                transform: translateY(0px) scale(1);
            }
        }

        @keyframes gradient-x {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        h1,
        h2,
        h3 {
            font-weight: 800;
            color: #fff;
        }

        h2 {
            font-size: 2.8rem;
            margin-bottom: 2.5rem;
            text-align: center;
            background: linear-gradient(to right, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
        }

        a {
            text-decoration: none;
            color: var(--text-main);
            transition: all 0.3s ease;
        }

        /* Header / Nav */
        header {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 2rem;
            position: relative;
            background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
        }

        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.2rem;
            background: rgba(7, 11, 20, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            z-index: 1000;
            border-bottom: 1px solid var(--card-border);
            transition: all 0.3s ease;
        }

        nav a {
            font-weight: 600;
            font-size: 1.05rem;
            position: relative;
            padding: 0.5rem 0;
            color: var(--text-muted);
        }

        nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background: linear-gradient(to right, var(--accent-1), var(--accent-2));
            transition: width 0.3s ease;
        }

        nav a:hover {
            color: #fff;
        }

        nav a:hover::after {
            width: 100%;
        }

        .hero-content {
            z-index: 10;
            max-width: 800px;
        }

        header h1 {
            font-size: 5rem;
            letter-spacing: -2px;
            margin-bottom: 0.5rem;
            background: linear-gradient(to bottom right, #ffffff, #93c5fd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        header p {
            font-size: 1.6rem;
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            font-weight: 300;
        }

        .btn {
            display: inline-block;
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-1));
            background-size: 200% auto;
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
            padding: 1rem 2.5rem;
            border-radius: 30px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-glow);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: gradient-x 3s linear infinite;
        }

        .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
            color: white;
        }

        /* Sections */
        section {
            padding: 8rem 10%;
            position: relative;
            z-index: 2;
        }

        .about-text {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            font-size: 1.25rem;
            color: var(--text-muted);
            background: var(--bg-card);
            backdrop-filter: blur(10px);
            padding: 3.5rem;
            border-radius: 24px;
            border: 1px solid var(--card-border);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }

        .about-text::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
            pointer-events: none;
        }

        .about-text strong {
            color: #fff;
            background: linear-gradient(to right, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 800;
        }

        /* Grid & Cards */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            padding-top: 1rem;
        }

        .card {
            background: var(--bg-card);
            backdrop-filter: blur(10px);
            padding: 2.5rem;
            border-radius: 20px;
            border: 1px solid var(--card-border);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        /* Effet bordure lumineuse au survol */
        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
            opacity: 0;
            transition: opacity 0.5s;
            pointer-events: none;
            z-index: 1;
        }

        .card:hover {
            transform: translateY(-12px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .card:hover::before {
            opacity: 1;
        }

        .card h3 {
            font-size: 1.6rem;
            margin-bottom: 1.5rem;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            z-index: 2;
        }

        .card h3::before {
            content: '✦';
            font-size: 1.2rem;
            color: var(--accent-1);
        }

        .card p {
            color: var(--text-muted);
            margin-bottom: 2rem;
            flex-grow: 1;
            font-size: 1.1rem;
            z-index: 2;
        }

        /* Skills */
        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            z-index: 2;
            position: relative;
        }

        .skill-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #e2e8f0;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 0.95rem;
            font-weight: 400;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: default;
        }

        .skill-tag:hover {
            background: rgba(59, 130, 246, 0.15);
            border-color: rgba(96, 165, 250, 0.5);
            transform: translateY(-3px) scale(1.05);
            color: #fff;
            box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
        }

        /* Footer */
        footer {
            background: #04070c;
            padding: 5rem 2rem 3rem;
            text-align: center;
            border-top: 1px solid var(--card-border);
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        footer h3 {
            margin-bottom: 3rem;
            font-size: 2.2rem;
            background: linear-gradient(to right, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
        }

        .contact-info {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 900px;
            margin: 0 auto;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: var(--bg-card);
            padding: 1.2rem 2rem;
            border-radius: 20px;
            border: 1px solid var(--card-border);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(10px);
        }

        .contact-item:hover {
            transform: translateY(-8px);
            border-color: rgba(96, 165, 250, 0.5);
            color: #fff;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.15);
        }

        .contact-icon {
            font-size: 1.6rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        /* Background animated elements */
        .bg-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .shape {
            position: absolute;
            filter: blur(90px);
            opacity: 0.4;
            animation: float 20s infinite ease-in-out alternate;
            border-radius: 50%;
        }

        .shape-1 {
            width: 600px;
            height: 600px;
            background: rgba(59, 130, 246, 0.15);
            top: -200px;
            left: -200px;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 500px;
            height: 500px;
            background: rgba(139, 92, 246, 0.15);
            bottom: -150px;
            right: -150px;
            animation-delay: -5s;
        }

        .shape-3 {
            width: 400px;
            height: 400px;
            background: rgba(56, 189, 248, 0.1);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation-delay: -10s;
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 3.5rem;
            }

            section {
                padding: 5rem 5%;
            }

            nav {
                padding: 1rem;
                gap: 1rem;
                flex-wrap: wrap;
            }

            .grid {
                grid-template-columns: 1fr;
            }
        }

        /* Modale Projet */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background: var(--bg-card);
            border: 1px solid var(--card-border);
            padding: 3rem;
            border-radius: 24px;
            max-width: 600px;
            width: 90%;
            transform: scale(0.9) translateY(20px);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.2);
            position: relative;
            text-align: center;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 1.5rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-close:hover {
            background: rgba(255, 59, 48, 0.8);
            transform: rotate(90deg);
        }

        .modal-title {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            background: linear-gradient(to right, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .modal-subtitle {
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .modal-placeholder {
            width: 100%;
            height: 250px;
            background: rgba(255, 255, 255, 0.03);
            border: 2px dashed rgba(255, 255, 255, 0.2);
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--text-muted);
            font-size: 1.2rem;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }

        .modal-placeholder:hover {
            border-color: var(--accent-1);
            background: rgba(59, 130, 246, 0.05);
        }

        .language-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 0.8rem;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
        }

        .language-name {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
        }

        .language-level {
            display: flex;
            gap: 4px;
            font-size: 0.95rem;
            color: var(--accent-1);
            font-weight: 600;
        }

        /* Timeline */
        .timeline {
            position: relative;
            max-width: 900px;
            margin: 4rem auto 0;
            padding: 2rem 0;
        }
        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 40px;
            height: 100%;
            width: 2px;
            background: linear-gradient(to bottom, transparent, var(--accent-1), var(--accent-2), transparent);
        }
        .timeline-item {
            position: relative;
            padding-left: 100px;
            margin-bottom: 4rem;
        }
        .timeline-item:last-child {
            margin-bottom: 0;
        }
        .timeline-icon {
            position: absolute;
            left: 19px;
            top: 0;
            width: 44px;
            height: 44px;
            background: var(--bg-main);
            border: 2px solid var(--accent-1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: #fff;
            box-shadow: 0 0 15px var(--accent-glow);
            z-index: 2;
        }
        .timeline-content {
            background: var(--bg-card);
            backdrop-filter: blur(10px);
            border: 1px solid var(--card-border);
            padding: 2rem;
            border-radius: 20px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }
        .timeline-content::before {
            content: '';
            position: absolute;
            top: 15px;
            left: -10px;
            border-width: 10px 10px 10px 0;
            border-style: solid;
            border-color: transparent var(--card-border) transparent transparent;
        }
        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
            border-color: rgba(96, 165, 250, 0.4);
        }
        .timeline-date {
            display: inline-block;
            padding: 0.3rem 0.8rem;
            background: rgba(59, 130, 246, 0.15);
            color: var(--accent-1);
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 1rem;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }
        .timeline-content h3 {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            color: #fff;
        }
        .timeline-content h4 {
            font-size: 1.1rem;
            color: #cbd5e1;
            margin-bottom: 1rem;
            font-weight: 500;
        }
        .timeline-content p, .timeline-content ul {
            color: var(--text-muted);
        }
        @media (max-width: 768px) {
            .timeline::before {
                left: 20px;
            }
            .timeline-item {
                padding-left: 60px;
            }
            .timeline-icon {
                left: 0;
                width: 40px;
                height: 40px;
            }
        }