* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


button:hover {
    background-color: #1142b5;
}

/*navbar layer*/
nav {
    display: flex;
    max-width: 1200px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: auto;
  
}

h3 {
    font-size: 1.5rem;
}

.name {
    display: flex;
    margin-left: 50px;
    color: #2362eb;
    min-width: 175px;
}

nav>ul {
    display: flex;
    list-style: none;
    margin-left: auto;
    margin-right: 1rem;
    gap: 80px;
    margin-top: 35px;

}

a {
    text-decoration: none;
    color: #A7B0BD;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 1.9rem;

    margin: 0 0 0 auto;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #4f5e80;
    margin: 3px;
    border-radius: 2px;

}

/* navbar layer stops here and mid-container begins*/
/* fs-developer layer*/
.background-content {
    width: 100%;
    background: linear-gradient(to right, #eef2f7, #f5f7fa);
}

.fs-developer {
    display: flex;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: auto;
}

.fs-developer img {

    border-radius: 50%;
    width: 20%;
    align-self: center;
}

button {
    background-color: #1154EF;
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 1rem;
    cursor: pointer;
}

.text a {
    color: white;
}


.text {
    padding: 1rem;
    width: 80%;
    margin-left: 1rem;
    margin-right: 1rem;
}

h1 {
    color: #414B5C;
    font-size: 2.5rem
}

p {
    color: #A4ACBA;
    font-size: 1rem;
    line-height: 1.6;
}

/* fs-developer layer ends and starts about layer*/

.about {
    display: flex;
    max-width: 1200px;
    gap: 150px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin: auto;
}
#download-cv {
    background-color: #1154EF;
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

#download-cv:hover {
    background-color: #1142b5;
}

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

.skills li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.skills span {
    width: 60px;
    display: inline-block;
}

.bar {
    height: 14px;
    border-radius: 7px;
    margin-left: 0.8rem;
    background: #e0e0e0;
    width: 180px;
    position: relative;
    overflow: hidden;
}

.bar.full::after {
    content: '';
    display: block;
    height: 100%;
    width: 95%;
    background: linear-gradient(90deg, #4caf50 80%, #81c784 100%);
    border-radius: 7px;
}

.bar.medium::after {
    content: '';
    display: block;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #2196f3 80%, #64b5f6 100%);
    border-radius: 7px;
}

.bar.short::after {
    content: '';
    display: block;
    height: 100%;
    width: 37%;
    background: linear-gradient(90deg, #ff9800 80%, #ffb74d 100%);
    border-radius: 7px;
}

/* about layer ends and projects start*/
.projects {
    display: flex;
    justify-content: space-around;
    padding-bottom: 2rem;
    padding-top: 2rem;
    max-width: 1200px;
    margin: auto;
}

.project {
    display: flex;
    width: 30%;
    height: auto;
    background: linear-gradient(to bottom right, #eef2f7, #f5f7fa);
    border-radius: 10px;
    align-items: center;
    flex-direction: column;
    align-items: flex-start;

}

.project-content {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

.project-content h3 {
    height: 85px;
}

.project img {
    display: flex;
    width: 150px;

    border-radius: 15%;
    margin-top: 8px;

}

.project-img-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 8px;

}

.project button {
    background-color: rgb(250, 168, 15);
    align-self: flex-start;
    margin-left: 20px;
    margin-bottom: 20px;
    cursor: pointer;
}

.project button:hover {
    background-color: #ff9800;
}

.project a {
    color: white;
}

h2 {
    color: #414B5C;
    font-size: 2rem;
}

/*Get in Touch layer*/

.contact-container {
    display: flex;
    padding-bottom: 2rem;
    padding-top: 2rem;
    max-width: 1200px;
    margin: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin-left: 2rem;
}

label {
    color: #414B5C;
    font-weight: 600;
    font-size: 1rem;
}

input {
    border: solid #e0e0e0 1.5px;
    border-radius: 5px;
}

textarea {
    border: solid #e0e0e0 1.5px;
    border-radius: 5px;
}

.contact-info {
    width: 40%;
    margin-left: 5rem;
}

.contact-form a {
    color: white;
}

.contact-form button {
    width: 50%;
    cursor: pointer;
}

h4 {
    color: #414B5C;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}


.buttons button {
    background-color: #1154EF;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    cursor: pointer;
}

.buttons button img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    /* rend l'image blanche */
    margin: 0;
}


/*Footer layer*/
.footer-background {
    width: 100%;
    background-color: rgb(36, 36, 58);
}

footer {
    max-width: 1200px;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: center;
    color: white;
    font-weight: 555;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .about {
        flex-wrap: wrap;
        text-align: center;
        gap: 40px;
    }

    .projects {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .project {
        width: 90%;
    }

    .fs-developer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .fs-developer img {
        width: 60%;
        margin-top: 1rem;
    }

    .text {
        width: 100%;
        padding: 0 1rem;
    }

    .contact-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-form,
    .contact-info {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width:600px) {
    nav ul {
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 1rem 0;
        display: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    nav ul.show {
        display: flex;
    }


    .hamburger {
        display: flex;
        margin: 0 1rem 0 auto;
    }

    .fs-developer {
        flex-wrap: wrap;
        margin: auto;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .text {
        width: 100%;
    }

    .text button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .fs-developer img {
        width: 45%;

    }

    .about {
        flex-wrap: wrap;
        width: 100%;
        gap: 0;
        text-align: center;
    }

    .skills {

        width: 100%;
    }

    .skills ul {

        padding-left: 1rem;
    }

    .skills li {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .skills h4 {
        font-size: 1.5rem;
    }

    .bar {
        margin: 0;
    }

    .projects {
        flex-wrap: wrap;
        gap: 15px;
    }

    .project {
        width: 100%;
    }

    .project button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-container {
        flex-wrap: wrap;
    }

    .contact-form {
        width: 100%;

    }

    .contact-form button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;

    }

    .contact-info {
        width: 100%;
    }

}