* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background: #081b29;
    color: aliceblue;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.574);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 25px;
    color: aliceblue;
    text-decoration: none;
    font-weight: 600;
}

.navbar a {
    font-size: 19px;
    color: aliceblue;
    text-decoration: none;
    margin-left: 9px;
    transition: 0.3s;
    margin-top: -70px;
}

span {
    color: blue;
}

.navbar a:hover,
.navbar a.active {
    color: blue;
    font-size: 1em;
    font-weight: bold;
}

.home {
    height: 100vh;
    background: url(./Images/Ok.png) no-repeat;
    background-size: 40%;
    background-position: right center;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.home-cont {
    max-width: 600px;
}

.home-cont h1 {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
}

.home-cont h3 {
    font-size: 32px;
    font-weight: 700;
    color: #00abf0;
}

.home-cont p {
    font-size: 16px;
    margin: 20px 0 40px;
}

.home-cont .btn-box {
    display: flex;
    justify-content: space-between;
    width: 345px;
    height: 50px;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: .5s;
}

.btn-box a:hover {
    background-color: rgba(62, 86, 220, 0.132);
    color: aliceblue;
    border: 2px solid rgba(62, 86, 220, 0.132);
}

.btn-box a:nth-child(2) {
    background: transparent;
    color: #00abf0;
}

.btn-box a:nth-child(2):hover {
    color: #00abf0;
}

.btn-box a:nth-child(2)::before {
    color: #00abf0;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #081b29;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before {
    width: 100%;
}

.home-cont .btn-box {
    width: 345px;
    height: 50px;
}

.btn-box a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.home-sci {
    position: absolute;
    bottom: 40px;
    width: 40px;
    background: transparent;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    display: inline-flex;
    width: 700px;
    padding: 6px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    margin: 0 10px;
}

section {
    background-color: #32678e40;
}

.mes_projets, #section2{
    margin-right: 60px;
    padding: 20px;
    border-radius: 20px 40px;
    box-shadow: 3px 3px 3px 1px #DADBE1;
}

.mes_projets p #ppp{
    background: #0026ff;
}


#sect{
    padding: 10px 0px 10px 0;
    background-color: #32678e40;
}

#sect h2{
    text-align: center;
}

#block{
    display: flex;
    padding: 40px;
    border-radius: 50px;
}
#block .section3 p{
    background-color: #081b2975;
    margin-right: 60px;
    padding: 20px;
    border-radius: 20px 40px;
    box-shadow: 3px 3px 3px 1px #DADBE1;
}

#block .section3 p:hover{
    background-color: #081b29;
    transform: scale(1.09)
}

#contactme {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

#contactme h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

#contactme form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contactme label {
    font-weight: 600;
}

#contactme input,
#contactme textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

#contactme input:focus,
#contactme textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 4px;
}

#contactme button {
    background-color: #4a90e2;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

#contactme button:hover {
    background-color: #50524c;
}

#sectionall {
    display: flex;
    gap: 500px;
    flex-wrap: wrap;
    padding: 20px;
}

.competences {
    flex: 1 1 300px;
}

.competences h2 {
    margin-bottom: 15px;
    text-align: center;
}

.competences ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}

.competences li {
    background: #75d4ae42;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.mes_projets {
    flex: 2 1 500px;
}

.mes_projets h2 {
    margin-bottom: 10px;
}



#gallery{
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

#gallery h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.image-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.galerie_projet{
    flex: 1;
    min-width: 250px;
}
.galerie_projet a{
    color: #DADBE1;
}

.galerie_projet img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
}

.galerie_projet img:hover {
    transform: scale(1.03);
}



footer{
    padding: 0;
    margin: 0;
    background-color: rgba(140, 129, 129, 0.284);
    overflow: hidden;
    
}

#foot a{
    display: inline-block;
    margin: 8px;
    margin-top: 5px;
    text-decoration: none;
    color: #ffffff;
}

#foot {
    text-align: center;
}

#nnn{
    text-align: left;
    font-family: cursive;
    margin-top: 5px;
}

#foot a:hover {
    color: #00abf0;
    transform: scale(1.03)
}

#copyright
{
    float:right;
}





@media screen and (max-width: 768px) {
    .navbar {
        display: none;
    }

    .header {
        padding: 20px 5%;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 0 5%;
    }

    .home-content {
        max-width: none;
    }

    .home-sci {
        position: static;
        margin-top: 20px;
    }
}