@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: Poppins;
    box-sizing: border-box;
}

body {
    background-color: black;
    margin: 0%;
    align-items: center;
    min-width: 320px;
    max-width: 100vw;
    overflow-x: hidden;
    z-index: 1;
}

.noise {
    position: absolute;
    width: 100%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.7;
}

/* Landing page */

a {
    text-decoration: none;
}

.logo {
    color: white;
}

h3.logo {
    font-size: 22.21px;
    margin: 0px;
    font-weight: 600;
}

h6.logo {
    font-size: 9.18px;
    letter-spacing: 4px;
    margin: 0px;
    margin-left: 20px;
    font-weight: 200;
}

a.mail {
    margin-left: auto;
}


div.contact_button {
    background-color: rgb(255, 255, 255);
    justify-content: center;
    height: 35.19px;
    width: 101.55px;
    text-align: center;
    border-radius: 8.8px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

div.contact_button:hover {
    transform: scale(1.1);
}

p {
    font-size: 13.19px;
    color: rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0);
}

div.presentation {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sphere {
    width: 231px;
    height: 231px;
    background-color: #1A1A1A;
    border-radius: 150px;
    margin-top: 75px;
    overflow: hidden;
}

.bitmoji {
    max-width: 100%;
    height: auto;
    background-color: rgba(251, 251, 251, 0);
}

div.text {
    color: white;
}

h1.name {
    font-size: 40px;
    margin-bottom: 0px;
    /* animation: pulse 3s infinite; */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

h2.subtitle {
    font-size: 20px;
    color: #C9C9C9;
    font-weight: 400;
    margin: 0px;
}

.gradient_text {
    display: inline;
    background: linear-gradient(to right, #9C83FF, #FF9051);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0px;
}

p.intro {
    color: #E1E1E1;
    margin-top: 30px;
    font-size: larger;
}

div.contact_button_2 {
    background-color: black;
    border: 1px solid #C9C9C9;
    border-radius: 30px;
    justify-content: center;
    color: white;
    text-decoration: none;
    height: 55px;
    width: 187px;
    text-align: center;
    display: flex;
    align-items: center;
    margin-top: 75px;
    margin-bottom: 75px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

div.contact_button_2:hover {
    background-color: #C9C9C9;
    color: black;
    transform: scale(1.1);
}


/* About Section */

section.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1.about {
    color: white;
    font-size: 45px;
    margin: 0px;
    margin-top: 75px;
}

p.about {
    margin-left: 15px;
    max-width: 600px;
    color: white;
    font-size: large;
    margin-top: 50px;
}

/* Projects experience */

section.experience {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1.experience {
    color: white;
    font-size: 45px;
    margin: 0px;
    margin-top: 75px;
}

p.experience {
    margin-left: 15px;
    max-width: 600px;
    color: white;
    font-size: large;
    margin-top: 50px;
    text-align: center;
}
/* Projects Section */

section.project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 50px auto; /* Ajouté auto pour centrer horizontalement */
    margin-bottom: 150px;
    max-width: 800px; /* Ajouté pour correspondre aux autres sections */
}

section.card {
    display: flex;
    flex-direction: column;
    margin: 75px;
}

a.project-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    transition: background-color 0.6s ease, transform 0.6s ease;
    text-decoration: none;
}

a.project-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.005);
    cursor: pointer;
}

h1.project {
    color: white;
    font-size: 45px;
    margin: 0px;
    margin-top: 75px;
}

div.card {
    width: auto;
    text-align: center;
    height: auto;
    background-color: white;
    border-radius: 8px;
}

img.logos {
    margin: 50px;
    width: 50px;
    height: 50px;
    transform: scale(1.5);
    border-radius: 8px;
}

div.description {
    display: flex;
    flex-direction: column;
    margin-left: 50px;
    margin-right: 50px;
    justify-content: center;
}

a.card {
    color: white;
    font-size: 25px;
    margin: 0px;
    transition: transform 0.3s ease;
}

p.card {
    margin: 0px;
    color: #878787;
}

p.card_title {
    font-size: 25px;
    color: white;
    margin: 0px;
    font-weight: 600;
}

/* Media queries pour mobile */
@media (max-width: 768px) {
    section.project {
        margin: 30px 15px;
        margin-bottom: 100px;
    }

    section.card {
        margin: 0;
        gap: 20px;
    }

    a.project-item {
        flex-direction: column;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    a.project-item:hover {
        transform: translateY(-5px);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    }

    div.card {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    img.logos {
        margin: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        border-radius: 6px;
    }

    div.description {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    p.card_title {
        font-size: 18px;
        margin-bottom: 8px;
        font-weight: 700;
        color: #ffffff;
    }

    p.card {
        font-size: 13px;
        line-height: 1.5;
        color: #cccccc;
        margin: 0;
        padding: 0 10px;
    }

    h1.project {
        font-size: 32px;
        margin-top: 40px;
        margin-bottom: 10px;
    }
}

/* Credits */

section.credits {
    color: white;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    text-align: center;
}

img.icon {
    height: 15px;
    margin: 5px;
}

a.link {
    color: white;
    text-decoration: underline;
    margin-left: 5px;
}


/* Bouton Changement de Langue */

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.language-switcher img {
    width: 40px;
    height: auto;
    margin-left: 10px;
}

.language-switcher img.hidden {
    display: none;
}

/* Skills Slider */
.skills-slider {
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 50px auto 10px auto; /* Réduire la marge inférieure à 20px */
    position: relative; /* Ajouté pour permettre les pseudo-éléments */
}

.skills-slider::before,
.skills-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px; /* Ajuster selon le besoin */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills-slider::before {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.skills-slider::after {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

.skills-slider-track {
    display: flex;
    width: fit-content;
    animation: slideshow 20s linear infinite;
}

@keyframes slideshow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% / 2));
    }
}

.skill {
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex: 0 0 auto;
}

.skill img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.skill p {
    color: white;
    white-space: nowrap;
}