:root {
    --main-color: black; /* #1a1a1a*/
}

/* Supprime les règles de scroll assisté */
html, body {
    margin: 0;
    padding: 0;
}

/* Garde les styles des sections, mais sans scroll-snap */
header, #about, #skills, #project, #testimonials, #contact {
    min-height: 100vh; /* Toujours 100vh pour la hauteur */
}

body {
    margin: 0px;
    background-color: var(--main-color);
    font-family: 'Inter', sans-serif;
}

nav {
    height: 150px;
    background-color: rgba(26, 26, 26, 0); /* Fond sombre semi-transparent */
    backdrop-filter: blur(5px); /* Effet de flou */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: fixed;
    z-index: 999;
    width: 100%;
    transition: 0.5s;
}

.nav-shrunk {
    height: 84px; /* Hauteur réduite après le scroll */
    background-color: rgba(0, 0, 0, 0.5); /* Fond sombre semi-transparent */
}

#logo {
    width: 64px;
}

#navContainer {
    width: 1024px;
    display: flex;
    margin: auto;
    padding: 0px;
    height: auto;
    justify-content: space-between; /* Ajusté pour espacer logo et navigation */
    align-items: center;
}

#navigation {
    text-align: right;
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Aligner les liens à droite */
    align-items: center;
    gap: 40px; /* Espacement entre les liens */
}

nav a {
    color: #888888;
    text-decoration: none;
    font-family: "__GeistMono_c1e5c9", ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
    text-transform: uppercase;
    transition: 0.5s;
}

nav a:hover {
    color: #fff;
}

nav a.active {
    color: #fff; /* Lien actif en blanc */
}

/* Hamburger Menu Button */
.hamburger {
    display: none; /* Caché par défaut sur desktop */
    cursor: pointer;
    padding: 10px;
}

.hamburger svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #888888;
    transition: stroke 0.3s ease;
}

.hamburger:hover svg {
    stroke: #fff;
}



.menu-open .hamburger .menu-icon {
    display: none; /* Cacher l’icône hamburger */
}

.menu-open .hamburger .close-icon {
    display: block; /* Afficher l’icône croix */
}

.hamburger .close-icon {
    display: none; /* Caché par défaut */
}

/* Responsive Styles */
@media (max-width: 1100px) {
    #navContainer {
        width: calc(100% - 80px);
        padding: 0 20px;
    }

    .hero-content{
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    #navigation {
        display: none; /* Cacher les liens sur mobile par défaut */
    }

    .hamburger {
        display: block; /* Afficher le bouton hamburger */
    }

    .nav-shrunk {
        height: 84px; /* Même hauteur sur mobile */
    }

    #navContainer {
        width: 100%;
        padding: 0 40px;
    }

    .hero-content {
        z-index: 2;
        color: #fff;
        padding: 0px 40px;
    }

    nav {
        height: 84px; /* Hauteur fixe sur mobile */
        background-color: rgba(26, 26, 26, 0); /* Fond transparent par défaut */
        backdrop-filter: blur(5px); /* Effet de flou */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px;
        position: fixed;
        z-index: 999;
        width: 100%;
        transition: background-color 0.5s ease; /* Transition pour le fond */
    }

    /* Quand le menu est ouvert, nav devient noir avec une transition */
    .menu-open nav {
        background-color: rgba(0, 0, 0, 0.9); /* Fond noir */
        backdrop-filter: none; /* On retire le flou pour simplifier */
    }

    /* Menu Open State */
    .menu-open #navigation {
        display: flex; /* Afficher sur mobile quand ouvert */
        flex-direction: column;
        position: fixed; /* Changé à fixed pour mieux gérer la hauteur */
        top: 84px; /* Juste en dessous de la nav */
        left: 0;
        width: 100%;
        height: calc(100vh - 84px); /* Prend toute la hauteur restante */
        background-color: rgba(0, 0, 0, 0.9); /* Fond sombre et opaque */
        padding: 20px 0;
        text-align: center;
        z-index: 998; /* Juste derrière nav */
        justify-content: center; /* Centrer verticalement */
        align-items: center; /* Centrer horizontalement */
        gap: 30px; /* Espacement entre les liens */
    }

    /* Animation pour chaque lien dans le menu */
    .menu-open #navigation a {
        opacity: 0;
        transform: translateY(-10px);
        animation: fadeInLink 0.3s ease forwards;
        font-size: 1.2rem; /* Taille des liens un peu plus grande pour mobile */
    }

    /* Délai progressif pour chaque lien */
    .menu-open #navigation a:nth-child(1) { animation-delay: 0.1s; }
    .menu-open #navigation a:nth-child(2) { animation-delay: 0.15s; }
    .menu-open #navigation a:nth-child(3) { animation-delay: 0.2s; }
    .menu-open #navigation a:nth-child(4) { animation-delay: 0.25s; }
    .menu-open #navigation a:nth-child(5) { animation-delay: 0.3s; }
    .menu-open #navigation a:nth-child(6) { animation-delay: 0.35s; }
}




/* Animations pour le menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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





/* Hero Section Styles */
header {
    background-color: var(--main-color);
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    color: #fff;
}

.hero-title {
    font-size: 5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.2;
    opacity: 0; /* Initialement caché */
    transform: translateY(-50px); /* Position initiale */
    transition: opacity 1s ease, transform 1s ease; /* Transition fluide */
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 2rem;
    margin: 20px 0;
    color: #888888;
    font-family: "__GeistMono_c1e5c9", ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; /* Délai pour un effet progressif */
}
/* Typing Animation */
.typed-text {
    color: #888888;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: #888888;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

.cursor.typing {
    animation: none;
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Effet de grande lumière */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 600px at var(--mouse-x, 75%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 1;
    transition: background 0.2s ease;
    pointer-events: none;
    z-index: -1;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}











/* About Section Styles */
#about {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    backdrop-filter: blur(10px);
}

.about-content {
    text-align: center;
    max-width: 800px;
    padding: 20px 100px;
    color: #fff;
    position: relative; /* Pour que les cubes soient positionnés relativement à cette div */
}

#about-container {
    padding: 30px; /* Padding pour éloigner le texte des cubes */
}

.about-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #888888;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Styles des cubes dans les coins */
.corner-top-right, .corner-top-left, .corner-bottom-right, .corner-bottom-left {
    background-color: #fff;
    width: 10px;
    height: 10px;
    position: absolute;
}

.corner-top-left {
    top: 0;
    left: 0;
}

.corner-top-right {
    top: 0;
    right: 0;
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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




@media (max-width: 1024px) {
    /* Styles des cubes dans les coins */
    .corner-top-right, .corner-top-left, .corner-bottom-right, .corner-bottom-left {
        background-color: #fff;
        width: 0px;
        height: 0px;
        position: absolute;
    }
}

/* Responsive Design pour les SVG décoratifs */
@media (max-width: 768px) {
    .triangle-top, .hexagon-bottom, .grid-pattern, .nodes-network,
    .floating-particles, .circuit-wave, .spiral-left, .hex-network,
    .diamond-left, .circle-cluster {
        display: none;
    }
}






/* Styles des SVG décoratifs */
.triangle-top, .hexagon-bottom, .grid-pattern, .nodes-network,
.floating-particles, .circuit-wave, .spiral-left, .hex-network,
.diamond-left, .circle-cluster {
    position: absolute;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 0; /* Initialement cachés */
    transition: opacity 1s ease, transform 1s ease;
}

.triangle-top {
    top: -40px; /* Gardé comme l’original */
    left: 40%; /* Légèrement décalé à gauche par rapport au centre (au lieu de 50%) */
    width: 50px;
    height: 50px;
}

.hexagon-bottom {
    bottom: -40px; /* Gardé comme l’original */
    left: 60%; /* Légèrement décalé à droite par rapport au centre (au lieu de 50%) */
    width: 50px;
    height: 50px;
}

.grid-pattern {
    bottom: 10%; /* Ajusté pour être plus bas */
    right: 10%; /* Ajusté pour être plus à droite */
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.nodes-network {
    top: 10%; /* Ajusté pour être plus haut */
    left: 10%; /* Ajusté pour être plus à gauche */
    width: 100px;
    height: 100px;
    opacity: 0.4;
}

.floating-particles {
    top: 15%; /* Gardé comme l’original */
    right: 20%; /* Légèrement décalé pour éviter chevauchement avec circle-cluster */
    width: 60px;
    height: 60px;
    opacity: 0.6;
}

.circuit-wave {
    bottom: 15%; /* Gardé comme l’original */
    left: 20%; /* Légèrement décalé pour éviter chevauchement avec diamond-left */
    width: 120px;
    height: 40px;
    opacity: 0.5;
}

.spiral-left {
    left: 5%; /* Gardé comme l’original */
    top: 30%; /* Légèrement ajusté pour mieux s’intégrer */
    width: 70px;
    height: 70px;
    opacity: 0.5;
}

.hex-network {
    right: 5%; /* Gardé comme l’original */
    bottom: 30%; /* Légèrement ajusté pour mieux s’intégrer */
    width: 90px;
    height: 90px;
    opacity: 0.4;
}

.diamond-left {
    left: 10%; /* Gardé comme l’original */
    bottom: 10%; /* Gardé comme l’original */
    width: 50px;
    height: 50px;
    opacity: 0.5;
}

.circle-cluster {
    right: 10%; /* Gardé comme l’original */
    top: 10%; /* Gardé comme l’original */
    width: 70px;
    height: 70px;
    opacity: 0.5;
}

/* Animations déclenchées par la classe .visible */
.triangle-top.visible {
    opacity: 1;
    animation: spin 6s linear infinite;
}

.hexagon-bottom.visible {
    opacity: 1;
    animation: spin 8s linear infinite reverse;
}

.grid-pattern.visible {
    opacity: 0.3;
    animation: pulse 5s ease-in-out infinite;
}

.nodes-network.visible {
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
}

.floating-particles.visible {
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.circuit-wave.visible {
    opacity: 0.5;
    animation: wave 10s linear infinite;
}

.spiral-left.visible {
    opacity: 0.5;
    animation: spin 12s linear infinite;
}

.hex-network.visible {
    opacity: 0.4;
    animation: pulse 6s ease-in-out infinite;
}

.diamond-left.visible {
    opacity: 0.5;
    animation: spin 10s linear infinite;
}

.circle-cluster.visible {
    opacity: 0.5;
    animation: pulse 7s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(15px); }
    100% { transform: translateY(0); }
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); } /* Ajout de translateX pour triangle-top et hexagon-bottom */
    100% { transform: translateX(-50%) rotate(360deg); }
}

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

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(50px); }
}





/* Responsive Design pour les SVG décoratifs */
@media (max-width: 768px) {
    .triangle-top {
        top: -30px;
        left: 35%;
        width: 40px;
        height: 40px;
    }

    .hexagon-bottom {
        bottom: -30px;
        left: 65%;
        width: 40px;
        height: 40px;
    }

    .grid-pattern {
        bottom: 5%;
        right: 5%;
        width: 60px;
        height: 60px;
    }

    .nodes-network {
        top: 5%;
        left: 5%;
        width: 80px;
        height: 80px;
    }

    .floating-particles {
        top: 10%;
        right: 15%;
        width: 50px;
        height: 50px;
    }

    .circuit-wave {
        bottom: 10%;
        left: 15%;
        width: 100px;
        height: 30px;
    }

    .spiral-left {
        left: 2%;
        top: 25%;
        width: 60px;
        height: 60px;
    }

    .hex-network {
        right: 2%;
        bottom: 25%;
        width: 70px;
        height: 70px;
    }

    .diamond-left {
        left: 5%;
        bottom: 5%;
        width: 40px;
        height: 40px;
    }

    .circle-cluster {
        right: 5%;
        top: 5%;
        width: 60px;
        height: 60px;
    }
}




















/* Skills Section Styles */
#skills {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    backdrop-filter: blur(30px);
}

.skills-content {
    text-align: center;
    max-width: 1200px;
    padding: 20px;
    color: #fff;
}

#skills-container {
    padding: 20px;
}

.skills-title {
    font-size: 3rem;
    margin-bottom: 15px;
    margin-top: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.skills-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.skills-intro {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #888888;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.skills-intro.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.skills-grid.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.skill-item {
    background-color: #ffffff11;
    padding: 30px 15px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Effet de lumière au survol */
.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 500px at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
}

.skill-item h3 {
    font-size: 1.3rem;
    margin: 8px 0;
    color: #fff;
    text-transform: uppercase;
}

.skill-item p {
    font-size: 0.9rem;
    color: #888888;
    line-height: 1.4;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */

/* Entre 768px et 500px : 2 colonnes, 3 lignes */
@media (max-width: 850px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
        grid-template-rows: repeat(3, auto); /* 3 lignes */
    }

    .skills-title {
        font-size: 2.5rem;
    }

    .skills-intro {
        font-size: 1rem;
    }

    .skills-content {
        max-width: 90%;
    }
}

/* En dessous de 500px : 1 colonne, 6 lignes */
@media (max-width: 550px) {
    .skills-grid {
        grid-template-columns: 1fr; /* 1 colonne */
        grid-template-rows: repeat(6, auto); /* 6 lignes */
    }

    .skills-title {
        font-size: 2rem; /* Réduit encore plus pour très petits écrans */
    }

    .skills-intro {
        font-size: 0.9rem; /* Ajustement pour petits écrans */
    }

    .skills-content {
        max-width: 95%; /* Plus large sur très petits écrans */
    }
    #skills-container {
        padding: 0px;
    }
}



















/* Styles existants pour la section Projects */
#project {
    background-color: var(--main-color);
    height: auto;
    padding: 80px 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.projects-content {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

#projects-container {
    padding: 20px;
}

.projects-title {
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.projects-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.projects-intro {
    font-size: 1.2rem;
    color: #888888;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.projects-intro.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.projects-grid.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
.project-item {
    background-color: #ffffff11;
    border-radius: 15px;
    padding: 0px;
    padding-bottom: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.project-item.hidden {
    display: none;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    cursor: pointer;
}

.project-item h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    padding: 0px 10px;
}

.project-item p {
    font-size: 1rem;
    color: #888888;
    margin-bottom: 15px;
    padding: 0px 20px;
    font-family: 'Inter', sans-serif;
}

/* Bouton GitHub */
.github-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #272727;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    height: 20px;
}

.github-link:hover {
    background-color: #555;
}

.github-icon {
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}


/* Effet de lumière sur le bouton GitHub */
.github-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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

/* Bouton "Plus de projets" */
.load-more-btn {
    display: none;
    margin: 40px auto 0;
    padding: 12px 24px;
    background-color: #272727;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.load-more-btn:hover {
    background-color: #666;
    transform: scale(1.05);
}

.load-more-icon {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .load-more-icon {
    transform: scale(1.1);
}

/* Styles pour le modal (inchangés) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #888888;
}

@media (max-width: 768px) {
    #project {
        padding: 50px 0;
    }

    .projects-title {
        font-size: 2rem;
    }

    .projects-intro {
        font-size: 1rem;
    }

    .project-item {
        padding: 0px;
    }

    .project-item h3 {
        font-size: 1.3rem;
    }

    .project-item p {
        font-size: 0.9rem;
    }

    .github-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .github-link::before {
        background: radial-gradient(
            circle 40px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%
        );
    }

    .github-icon {
        font-size: 0.8rem;
        margin-right: 6px;
    }

    .load-more-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .load-more-icon {
        font-size: 0.9rem;
        margin-right: 6px;
    }

    .close-modal {
        font-size: 1.5rem;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 490px) {
    .projects-grid{
        padding: 0px;
    }

}













#testimonials {
    position: relative;
    background-color: var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    height: 100vh;
}

/* Background Particles Effect */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(50, 50, 50, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.1)" /><animate attributeName="cx" values="1;100;1" dur="10s" repeatCount="indefinite" /><animate attributeName="cy" values="1;100;1" dur="10s" repeatCount="indefinite" /></svg>') repeat;
    opacity: 0.3;
    animation: particle-move 20s linear infinite;
}








/* Glow Effect Behind Cards */
.glow-effect {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.testimonial-card {
    position: absolute;
    width: 350px; /* Fixed width for all cards */
    background: linear-gradient(145deg, #b3b3b3, #0e0e0e);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    filter: blur(2px);
    transform: translateX(200px) translateZ(-70px);
    z-index: 1; /* Ensure cards are above the glow */
}








@keyframes particle-move {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.testimonials-content {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonials-title {
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.testimonials-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-intro {
    font-size: 1.2rem;
    color: #888888;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.testimonials-intro.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    perspective: 1200px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.testimonials-carousel.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}


.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card {
    position: absolute;
    width: 350px; /* Fixed width for all cards */
    background: linear-gradient(145deg, #000000, #000000);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    filter: blur(2px);
    transform: translateX(200px) translateZ(-70px);
}

/* Active Card (Centered) */
.testimonial-card.active {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) translateZ(0) rotateY(0deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid #cccccc; /* Replaced neon blue with light gray */
    z-index: 2;
}

/* Cards in Background with Perspective Effect */
.testimonial-card.left {
    transform: translateX(-200px) translateZ(-70px) rotateY(-25deg);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 1;
}

.testimonial-card.right {
    transform: translateX(200px) translateZ(-70px) rotateY(25deg);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 1;
}

.testimonial-card.hidden {
    opacity: 0;
    transform: translateX(300px) translateZ(-100px) rotateY(60deg);
    z-index: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #cccccc; /* Replaced neon blue with light gray */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Subtle white glow */
}

.client-name {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.client-title {
    font-size: 1rem;
    color: #888888; /* Replaced neon blue with gray */
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #cccccc;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    color: #cccccc; /* Replaced neon blue with light gray */
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Subtle white glow */
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

@media (max-width: 768px) {
    #testimonials {
        padding: 50px 0;
    }

    .testimonials-title {
        font-size: 2rem;
    }

    .testimonials-intro {
        font-size: 1rem;
    }

    .testimonials-carousel {
        height: 350px;
    }

    .testimonial-card {
        width: 300px;
        padding: 20px;
    }

    .avatar-icon {
        font-size: 60px;
        width: 60px;
        height: 60px;
    }

    .glow-effect {
        width: 400px;
        height: 400px;
    }

    .client-name {
        font-size: 1.3rem;
    }

    .client-title {
        font-size: 0.9rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    .nav-arrow {
        font-size: 1.5rem;
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }
}




/* Responsive Design pour les SVG décoratifs */
@media (max-width: 600px) {
    .testimonials-title {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .testimonials-intro {
        margin-left: 10px;
        margin-right: 10px;
    }
}





















/* Contact Section Styles */
#contact {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    overflow: hidden;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.contact-slogan {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-slogan.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #888888;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Wrapper pour chaque champ afin de gérer l'animation du placeholder */
.contact-form .input-wrapper {
    position: relative;
    width: 100%;
}

/* Styles pour les champs input et textarea */
.contact-form input,
.contact-form textarea {
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1); /* Bordure un peu plus épaisse */
    border-radius: 10px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Animation du placeholder avec un pseudo-élément */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
    transition: opacity 0.3s ease;
}

/* Position initiale du placeholder */
.contact-form .placeholder {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Animation du placeholder quand le champ est rempli ou en focus */
.contact-form input:not(:placeholder-shown) + .placeholder,
.contact-form textarea:not(:placeholder-shown) + .placeholder,
.contact-form input:focus + .placeholder,
.contact-form textarea:focus + .placeholder {
    transform: translateY(-22px) translateX(0) scale(1); /* Positionné sur la ligne supérieure */
    font-size: 80%;
    color: black; /* Texte en noir */
    background: white; /* Fond blanc */
    padding: 2px 6px; /* Petit padding pour le fond blanc */
    border-radius: 4px; /* Coins arrondis pour le fond blanc */
    opacity: 1;
    line-height: 1; /* S’assurer que le texte est bien centré verticalement */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
/* Effet de focus sur les champs */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: glowPulse 1s ease infinite;
}

/* Styles pour le textarea */
.contact-form textarea {
    resize: none;
    height: 120px;
}

/* Styles pour le bouton */
.contact-form button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    font-size: 1.1rem;
    color: black;
    background: white;
    border-radius: 10px;
    border: 1px solid white;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}

/* Pseudo-élément pour l’animation de survol */
.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%; /* Débute hors du bouton à gauche */
    width: 220%; /* Deux fois la largeur pour couvrir tout le bouton */
    height: 100%;
    background: linear-gradient(
        -45deg, /* Inclinaison à -45 degrés (bas-gauche vers haut-droite) */
        transparent 50%, /* Transparent à gauche */
        rgb(0, 0, 0) 50% /* Noir à droite pour créer un "trait" incliné */
    );
    transition: left 0.5s ease; /* Animation de déplacement */
    z-index: -1;
}

/* Animation au survol */
.contact-form button:hover::before {
    left: 0; /* Déplace le pseudo-élément pour remplir complètement le bouton */
}

.contact-form button:hover {
    color: white;

}

/* Animation de lueur pour le focus des champs */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
}

/* Holographic Grid Background */
.holo-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.2) 0px,
        rgba(255, 255, 255, 0.2) 1px,
        transparent 1px,
        transparent 20px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 0px,
        rgba(255, 255, 255, 0.2) 1px,
        transparent 1px,
        transparent 20px
    );
    animation: gridShift 20s linear infinite;
}

/* Glowing Border Effect */
.glowing-border {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glowing-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #fff, transparent);
    opacity: 0.5;
    animation: glowHorizontalBottom 3s ease-in-out infinite;
}

/* Custom Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px); /* Effet de flou */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    opacity: 0;
    animation: popupFadeIn 0.5s ease forwards;
}

.popup-check {
    font-size: 7rem;
    color: #fff;
    display: inline-block;
    animation: checkScale 0.5s ease forwards;
}

.popup-message {
    font-size: 1.2rem;
    color: #888888;
    margin-bottom: 20px;
}

.popup-close {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

@keyframes glowHorizontalBottom {
    0% { transform: translateX(100%); opacity: 0.5; }
    50% { transform: translateX(-100%); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0.5; }
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes checkScale {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* En dessous de 500px : 1 colonne, 6 lignes */
@media (max-width: 500px) {
    #contact {
        position: relative;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--main-color);
        overflow: hidden;
    }
    
    .contact-content {
        text-align: center;
        max-width: 600px;
        padding: 20px;
        color: #fff;
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0);
        border-radius: 15px;
        border: 0px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0);
    }
    
    .contact-slogan {
        font-size: 2rem;
        margin-bottom: 0px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #fff;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 1s ease, transform 1s ease;
    }
    
    .contact-info {
        font-size: 1.2rem;
        line-height: 1.6;
        color: #888888;
        margin-bottom: 30px;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 1s ease, transform 1s ease;
    }
}






































/* Footer Styles */
footer {
    position: relative;
    background-color: var(--main-color);
    color: #fff;
    padding: 60px 20px;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.footer-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Holographic Grid Background */
.footer-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 20px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 20px
    );
    animation: gridShift 20s linear infinite;
}



/* Footer Navigation Links */
.footer-nav h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #888888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #fff;
}

/* Social Links */
.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #888888;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Contact Info (Email) */
.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    font-size: 1.1rem;
    color: #888888;
    margin: 0;
}

.footer-contact a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

/* Copyright */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Animations */
@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}


/* Upwork Logo */
.upwork-logo {
    display: flex;
    margin-top: 10px; /* Espacement réduit pour un meilleur alignement */
}

.upwork-logo a {
    display: inline-block;
    transition: all 0.3s ease;
}

.upwork-logo svg {
    width: 100px;
    height: 28px;
    fill: #888888;
    transition: all 0.3s ease;
}

.upwork-logo a:hover svg {
    fill: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}










@media (max-width: 768px) {
    .hero-content::before {
        background: radial-gradient(
            circle 300px at var(--mouse-x, 75%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%
        );
    }

    .hero-title {
        font-size: 3rem; /* Réduire la taille sur mobile */
    }

    .hero-subtitle {
        font-size: 1.5rem; /* Réduire la taille sur mobile */
    }

    #skills, #about{
        height: auto;
    }


    .about-content{
        padding: 0px;
        margin: 100px 20px;
    }

}