@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&family=Roboto:wght@300;400&display=swap');

:root{
    --main-color:#202020;
    --black:#000000;
    --bg:#ecebeb;
    --white:#ffffff;
    --border:.2rem solid rgba(255, 255, 255, 0.37);
}
/* for all the elements*/
*{
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline:none;
    border: none;
    text-decoration: none;
    transition: 0.2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar{
    width: 0.8rem;
  
}

html::-webkit-scrollbar-track{
    background: transparent;
}

html::-webkit-scrollbar-thumb{
    background: rgb(196, 195, 195);
    border-radius: 5rem;
}
body{
    background: var(--bg);
}

section{
    padding:2rem 7%;
}

/* place main itemas of the header in place */
.header{
    background:var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:1.5rem 7%;
    border-bottom: var(--border);
    position: fixed;
    top:0; 
    left: 0; 
    right: 0;
    z-index: 1000;
}

/* logo size */
.header .logo img{
    height: 8rem;
    width: 8rem;
}

.header .navbar{
    margin-left: 5rem;
}
/* place the menu titles */
.header .navbar a{
    margin: 0 1.2rem;
    font-size: 1.6rem;
    color: rgb(32, 32, 32);
}

/* menu behavior on hover */
.header .navbar a:hover{
    color:var(--black);
    border-bottom: 0.1rem solid var(--black);
    padding-bottom: 0.3rem;
}

/* icons appearence in header */
.header .icons div,a{
    color:var(--main-color);
    cursor: pointer;
    font-size: 2.5rem;
    margin-left: 2rem;
}

/* icons appearence on hover */
.header .icons div:hover,a:hover{
    color:var(--white);
}

/* to hide to hamburger menu*/
#menu-btn{
    display: none;
}

/* so the main titles have different font family */
h3,h1{
    font-family: 'Oswald', sans-serif;
}

/* start of home section */
.home{
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:url(./images/website_banner.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.home .content{
    max-width: 60rem;
}

.home .content h3{
    font-size: 6.5rem;
    text-transform: uppercase;
    color:var(--black);
    padding-bottom:7rem;
}

.home .content p{
    font-size: 2.5rem;
    font-weight: lighter;
    line-height: 1.8;
    padding:1rem 0;
    color:var(--black);
}

.home .content h4{
    font-size: 3.5rem;
    font-weight: lighter;
    color:var(--border);
}

/* end of home section */

/* start of research section */
.research{
    min-height: 40vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding-top:5rem;
    padding-bottom:7rem;
}

.research .content h4{
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight:bold;
    color:var(--border);
    padding-bottom:3rem;
}

.research .content p{
    border: #000000;
    font-size: 2rem;
    font-weight: lighter;
    line-height: 1.8;
    margin-left:10rem;
    margin-right:10rem;
    margin-bottom:3rem;
    color:var(--black);
}
.research .content  a{
    font-size:1.8rem;
    text-decoration: underline solid 1px;
    color:var(--black);
}

.research .content  a:hover{
    color: var(--main-color);
    font-weight: bolder;
}

/* end of research section */


/* start of about us section */
.heading{
    text-align: center;
    color:var(--main-color);
    text-transform: uppercase;
    padding-top:2rem;
    padding-bottom: 3rem;
    font-size: 4rem;
}

.about .row{
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* for  the text to be able to change lines and adapt with the window size */
}

.about .row .image{
    flex:1 1 45rem;
}

.about .row .image img{
    width: 100%;
}
.about .row .content{
    flex:1 1 45rem;
    padding:2rem;
}

.about .row .content h3{
    font-size: 3rem;
    color:var(--main-color);
}

.about .row .content p{
    font-size: 1.8rem;
    font-weight: lighter;
    color:var(--black);
    padding:1rem 0;
    line-height: 1.8;
}
/* end of about us section */

/* start of our work section */
.work{
background: var(--white);
}

.work .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap:6.0rem;
    padding-bottom:5rem;
}

.work h1{
    padding-top: 5rem;
}
.work .box-container .box{
    text-align: center;
    padding: 1rem;
    position: relative;
    width: 350px;
    height: 500px;
    
}

.work .box-container .box .image1 {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/green.jpg);
    background-size: cover;
}
.work .box-container .box .image2 {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/pizza.jpg);
    background-size: cover;
}
.work .box-container .box .image3 {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/red.jpg);
    background-size: cover;
}

.work .box-container .box .image4 {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/kebab.jpg);
    background-size: cover;
}

.work .box-container .box .image5 {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/pink.jpg);
    background-size: cover;
}

.work .box-container .box .image6 {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./images/pasta.jpg);
    background-size: cover;
}

.work .box-container .box .overlay{
    position: absolute;
    width: 100%;
    height:100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    transition: all 0.5s;
    clip-path: polygon(0 calc(100% - 0.1px), 100% calc(100% - 0.1px), 100% 100%, 0% 100%);
}

.work .box-container .box .overlay .hidden-text {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: lighter;
    text-shadow: 1px 1px 8px #585858;
    font-size:2.2rem;
    padding-left:3rem;
    padding-right:3rem;
    margin: 0 auto;
    color: white;
}

.work .box-container .box:hover .overlay {
    clip-path: polygon(0 0,100% 0,100% 100%,0% 100%); 
}




/* end of our work section */

/* start of contact us section */
.contact{
background: var(--bg);
align-items: center;
}

.contact .row{
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* for  the text to be able to change lines and adapt with the window size */
}

.contact .row .image{
    flex:1 1 45rem;
}

.contact .row .image img{
    width: 100%;
}
.contact .row .content{
    flex:1 1 45rem;
    padding:0rem;
}

.contact h1{
    padding-top:5rem;
}

.contact .row .content p{

    font-size: 2.0rem;
    font-weight: lighter;
    color:var(--black);
    padding:1rem 0;
    line-height: 1.8;
}

.contact .icons a{
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    color:var(--white);
    margin:.2rem;
    margin-right: 2rem;
    display: inline-block;
    background: var(--black);
   text-align: center;
}

.contact  .icons a:hover{
    background:var(--white);
    color: var(--black);
}
/* end of contact us section */

/* footer section starts */
.footer{
    padding-top: 4rem;
    background:var(--white);
    text-align: center;
}

.footer .links{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    gap: 1rem;
}

.footer .links a{
    padding:.7rem 2rem;
    color:var(--main-color);
    border:var(--border);
    font-size: 2rem;
}

.footer .links a:hover{
    color: var(--black);
    border-bottom: 0.1rem solid var(--bg);
    padding-bottom: 0.3rem;
}

.footer .end{
    font-size: 1.6rem;
    color:var(--main-color);
    font-weight: lighter;
    padding: 1.5rem;
}

.footer .end span{
    margin-left: 1.4rem;
}


/* media queries */
@media (max-width:991px){
    html{
        font-size: 55%;
    }

    .header{
        padding: 1.5rem 2rem;
    }

    section{
        padding: 2rem;
    }
}

@media (max-width: 768px){

    #menu-btn{
        display: inline-block;
    }

    .header .navbar{
        position: absolute;
        top:100%; 
        right: -100%;
        background: #fff;
        width: 30rem;
        height: calc(100vh - 9.5rem);
    }

    .header .navbar.active{
        right:0;
    }

    .header .navbar a{
        color:var(--black);
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 2rem;
    }


    .home{
        background-position: left;
        justify-content: center;
        text-align: center;
    }

    .home .content h3{
        font-size: 4.5rem;
    }

    .home .content p{
        font-size: 1.5rem;
    }

}

@media (max-width: 450px){

    html{
        font-size: 50%;
    }
    
    .home .content p{
        font-size: 2rem;
    }

    .research .content p{
        margin-left: 0;
        margin-right: 0;
    }

    .footer .links{
        gap: 0.5rem;
    }

    .footer .links a{
        padding:.7rem 2rem;
        font-size: 2rem;
    }

}