@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;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', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

header{
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
}

.logo{
    text-decoration: none;
    color: #3a6cf4;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em; /* we use em for everything to be reletave to body default font, for example if we had put body{20px} thats mean 1em = 20px, so in our case the 1em = 16px the default, for  that 1.8*16px=28.8px */
}

.navigation a{
    color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px; 
}

.navigation a:hover{
    color: rgb(128, 164, 177);
}

section{
    padding: 100px 200px;
}


.main{ 
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    background: url("images/YoussefPhoto.jpeg") no-repeat; 
    background-size: contain; 
    background-position: right 70%;  /* 👉 70% = décale vers le bas */
    background-attachment: fixed; 
}

.main h2{
    color: #000000;
    font-size: 1.4em;
    font-weight: 500;
}

.main h2 span{ /* the span is an inlign element for that i cant give her margin top or bottom, so i will put her in display : inline-block */
    display: inline-block;
    margin-top: 10px;
    color: #4e9eff;
    font-size: 3em;
    font-weight: 600;
    
}

.main h3{   /* In h3 we can use margin because is a block element */
    color: black;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.main-btn {
    color: #f0f0f0;
    background-color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease; /* the time that the botton take to transforme */
}

.main-btn:hover{
    background-color: #0a49f6;
    transform: scale(1.1); /* the scale take x and y */
}

.social-icons a{
    color: #3a6cf4 ;
    font-size: 1.7em;
    padding-right: 30px;
    
}

.title{ /* we will use diplay: flex for the title because its a block element */
    display: flex;
    justify-content: center;
    color: #3a6cf4;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px; /* to define space between the title and h2 */
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap; /* wrap: lets the card on the same shape even on mobile browser, no wrap will shrink the card if we havn't enouph space */

}

.card{
    background-color: #fff;
    width: 21.25em;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%); /* the first value is up and down ( we have put 0), the second value is left or right (we have choose right, if we want left -5), the third value is the blur (we choose 25px) the last value is rgba for color and opacity  */
    border-radius: 10px; /* shape of the card */
    padding: 25px; /* give me space in the inner of element */
    margin: 15px; /* give me space */
    transition: 0.7s ease;
}

.card:hover{
    transform: scale(1.1);
}

.icon{
    color: #3a6cf4;
    font-size: 8em;
    text-align: center;
}

.info{ 
    text-align: center;
}

.info h3{
    color: #3a6cf4;
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px; /* like the h3 and the paragraphe is two block element we put the margin like we want */
}


.projects{
    background-color: #000016;
}

.projects .content{
    margin-top: 30px;
}

.project-card{
    background-color: #fff;
    border: 1px solid #fff;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

.project-card:hover{
    transform: scale(1.1);
}

.project-image img{
    width: 100%;
}

.project-card:hover .project-image{ /*  to add the limunisity on the picture*/
    opacity: 0.9;
}

.project-info{
    padding: 1em;
}

.project-category{
    font-size: 0.8em; /* the default is 1em */
    color: #000;
}

.project-title{
    display: flex;
    justify-content: space-between; /* he will give us space between the child element : the span and aref */
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.more-details{
    text-decoration: none;
    color: #3a6cf4;
}

.more-details:hover{
    color: #601cfc;
}

.card-contact .icon{
    font-size: 4.5em;
}

.card-contact .info h3{
    color: #000;
}

.card-contact .info p{
    font-size: 1.3em;
}

.footer{
    background-color: rgb(205, 241, 241);
    padding: 2em;
    display: flex;
    justify-content: space-between;
}

.footer-title{
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span{
    color: #3a6cf4;
}

.footer .social-icons a{
    font-size: 1.3em;
    padding: 0 12px 0 0;
}


@media (max-width:1023px){
    header{
        padding: 12px 20px;
    }
    
    .navigation{
        padding-left: 10px;
    }

    .title{
        font-size: 1.8em;
    }

    section{
        padding: 80px 20px;
    }

    .main-content h2{
        font-size: 1em;
    }

    .main-content h3{
        font-size: 1.6em;
    }

    .content{
        flex-direction: column;
        align-items: center; /* this function is the difference between content in mobile and PC the content above is justify content */
    }
}

@media(max-width:641px){
    body{
        font-size: 12px;
    }
    .main-content h2{
        font-size: 0.8em;
    }

    .main-content h3{
        font-size: 1.4em;
    }
}

@media(max-width:300px){
    body{
        font-size: 10px;
    }
    
}