@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
/* color*/
:root{
    --main-color: #f5b041;
    --second-color: #212f3d;

}
section{
    padding: 100px;

}

/* Home css*/
#home{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Navbar css*/
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 100px;
    background: #fff;
    /*box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);*/ /*starding */
    box-shadow: 0 1px 4px var(--main-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
}
.nav_phone{
    list-style: none;
    color: var(--main-color);
    
}
.nav_phone img{
    width: 20px;
    height: 20px;
    
}
.logo{
    text-transform: uppercase;
    font-size: 1.4rem;
    color: var(--second-color);
    font-weight: 700;
}

ul{
    display: flex;
}
ul li a{
    padding: 10px 22px;
    color: var(--second-color);
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 1px;
}
ul li a:hover{
    background: var(--main-color);
    color: #fff;
    border: none;
}
.menu ul li a:focus-visible{
    background: var(--second-color);
    color: rgb(219, 184, 25);
    border: none;
}

/* Progress bar of the page */
#progress{
	background-color: var(--main-color);
	height: 5px;
	width: 0;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999; /* Peut être important si vous avez un menu en position fixe */
}

/* Home text CSS*/
.home-text{
    max-width: 500px;
}
.home-text h1{
    color: var(--second-color);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 5.5rem;
}
.home-text span{
    color: var(--main-color);
}
.home-img{
    /*
    width: 500px;
    height: 500px;
    */
    width: 700px;
    height: 700px;
}
.home-img img{
    width: 100%;/*100%; */
    height: 100%;
    object-fit: contain;
    object-position: center;

}

/* Hire Me Button*/
.home-text a{
    padding: 12px 34px;
    background: var(--main-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.home-text a:hover{
    background: var(--second-color) ;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}

/* Social*/
.social{
    position: absolute;
    display: flex;
    bottom: 8%;
    left: 144px;
}
.social i{
    margin-right: 24px;
    font-size: 24px;
    color: var(--second-color);
}
.social i:hover{
    color: var(--main-color);
}

/* heading*/
.heading{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.heading h2{
    color: var(--second-color);
    border-bottom: 3px solid var(--second-color);
    font-size: 1.8rem;
}
.heading p{
    color: var(--second-color);
    margin-top: 0.5rem ;
}
#about{
    background: #dfe4e6;
}
.about-content{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.about-img{
    width: 320px;
    height: 500px;
}
.about-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.about-text{
    width: 500px;
    justify-content: center;
}
.about-text h1{
    font-size: 1.5rem;
    color: var(--second-color);
}
.about-text p{
    color: var(--second-color);
    margin: 5px 0 24px;
    text-align: justify;
    line-height: 1.8rem;
}
.about-text .download-cv-button{
    padding: 12px 20px;
    background: var(--main-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.about-text a:hover{
    background: var(--second-color) ;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}

/* Services*/
.services-content{
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;

}
.services-content .box {
    padding: 40px 20px;
    background: var(--second-color);
    color: #fff;
    max-width: 320px;
    margin: 16px;
    text-align: center;
}
.box img{
    height: 60px;
}
.box h1{
    font-size: 1.3rem;
}
.box p{
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 300;
}
.services-content .box:hover{
    transform: translateY(-10px);
    background: var(--main-color);
    transition: 0.5s;
}
.work-content{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 2.5rem;
}
.work-text{
    max-width: 500px;
}
.work-text h1{
    font-size: 1.5rem;
    color: var(--second-color);
    line-height: 2.4rem;
    letter-spacing: 1px;
}
.work-text p{
    font-size: 1rem;
    color: var(--second-color);
    line-height: 2rem;
    text-align: justify;
    margin: 5px 0 18px;
}
.work-text a{
    padding: 12px 20px;
    background: var(--main-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.work-text a:hover{
    background: var(--second-color) ;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
}
.work-img{
    width: 320px;
    height: 500px;
}
.work-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Contact */
.heading.color h2{
    color: #fff;
    border-bottom: 3px solid #fff;
    font-size: 1.8rem;
}
.color p{
    color: #fff;
}
#contact{
    background: var(--second-color);
}

.contact-content{
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.contact-form{
    width: 360px;
    margin-top: 4rem;
}
.contact-form form input,
.contact-form form textarea{
    width: 100%;
    font-size: 13px;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    margin-bottom: 12px;
}
.contact-form form input::placeholder,
.contact-form form textarea::placeholder{
    color: var(--second-color);
    letter-spacing: 1px;
}
.contact-form form textarea{
    resize: none;
    height: 200px;
}
.contact-button{
    max-width: 100px;
    font-weight: 600;
    background: var(--main-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}
.app{
    max-width: 360px;
}
.app h1{
    color: #fff;
    font-size: 1.6rem;
    margin: 5px 0 24px;
}
.app i{
    color: var(--main-color);
    font-size: 45px;
    margin-right: 10px;
}
.app i:hover{
    transform: translateY(-10px);
    transition: 0.5s;
}

/* CopyRight */
.copyright{
    padding: 20px;
    background: var(--second-color);
    color: #fff;
    text-align: center;
}


/* Progress Bar*/

#progressbar {
    background-color: black;
    border-radius: 13px;
    /* (height of inner div) / 2 + padding */
    padding: 3px;
  }
  
  #progressbar>div {
    background-color: orange;
    width: 50%;
    /* Adjust with JavaScript */
    height: 20px;
    border-radius: 10px;
  }

/* Making responsive*/ 
@media(max-width:991px){
    nav{
        padding: 10px 50px;
        z-index: 1000;
    }
    .menu{
        position: fixed;
        top: 60px;
        right: 100%;
        display: block;
        padding: 100px 50px;
        text-align: center;
        width: 100%;
        height: 100vh;
        background: var(--second-color);
        transition: 0.5s ease;
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.2);
    }
    .menu.active{
        right: 0;
    }
    nav ul li a{
        font-size: 35px;
        line-height: 80px;
        color: #fff;
    }
    .toggle{
        width: 40px;
        height: 40px;
        background: url(images/kissclipart-transit-fare-icon-clipart-bus-event-tickets-fare-f11e121292e9ad85.png); /* menu img here*/
        background-position: center;
        background-repeat: no-repeat;
        background-size: 30px;
        cursor: pointer;
    }
    .toggle.active{
        background: url(images/close.png); /*img of closing here */
        background-position: center;
        background-repeat: no-repeat;
        background-size: 25px;
        cursor: pointer;
    }
    section{
        padding: 80px;
    }
    .home-text h1{
        font-size: 2.5rem;
        margin-bottom: 1.8rem;
        line-height: 4rem;
    }
    .home-img{
        width: 400px;
        height: 400px;
    }
    .social{
        left: 110px;
    }
    .heading h2{
        font-size: 1.6rem;
    }
    .about-img{
        width: 250px;
        height: 400px;
    }
    .about-text,
    .work-text{
        width: 400px;
    }
    .about-text h1{
        font-size: 1.3rem;
    }
    .about-text p{
        line-height: 1.5rem;
    }
    .work-img{
        width: 250px;
        height: 300px;
    }
}

@media(max-width:871px){
    section{
        padding: 50px;
    }
}

@media(max-width:800px){
    section{
        padding: 35px;
    }
}

/* For small Device */
@media(max-width:360px){
    section{
        padding: 36px;
    }
    #home{
        margin-top: 90px;
        flex-direction: column;
    }
    .home-text{
        max-width: 400px;
        margin-top: 2rem;
    }
    .home-img{
        width: 345px;
        height: 400px;
    }
    .home-text h1{
        font-size: 2rem;
        margin-bottom: 1.8rem;
        line-height: 3rem;
    }
    .about-content,
    .work-content{
        flex-direction: column;
    }
    .about-text,
    .work-text{
        max-width: 280px;
    }
    .work-text h1{
        font-size: 1.2rem;
        line-height: 2rem;
    }
    .work-img{
        width: 200px;
        height: 280px;
        margin-top: 4rem;
    }
    .contact-content{
        flex-direction: column;
    }
    .app{
        margin-top: 4rem;
    }
    .contact-form{
        width: 300px;
    }

}