html {
    scroll-behavior: smooth;
}

body{
    font-family: 'Raleway', sans-serif;
}

* {
    margin: 0;
}

h2 {
    font-weight: bold;
    font-size: 30px;
    line-height: 2.4em;
    letter-spacing: 0.12em;
    color: #007B8D;
    margin-bottom: 40px;
}

.wrapper {
    margin: 0 auto;
    width: 1195px;
}
/*--------------------------------------Header-----------------------------------*/

.header {
    background-color: white;
    position: fixed;
    width: 100%;
    height:5.2rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items:center ;
    box-sizing: border-box;
    font-weight: normal;
    z-index: 1;
    transition: 0.5s;
}

.header ul {
    margin-top: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    width: 100%;
}

.header ul a {
    display: block;
    padding: 20px;
   
}


.header.black {
    background: black;
    opacity: 60%;
    -webkit-transition: width 2s; 
    transition: 0.7s;
   
}

.header.black ul li a {
    color: #fff;
    font-weight: normal;
}

.nav {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    font-size: 0.875em;
    align-items: center;
}

 

.nav>li>a {
    text-decoration: none;
    color: #766E6E;
}

.logo-ham {
    display: none;
}
 .header label {
    color: gray;
    font-size: 30px;
    line-height: 70px;
    float: right;
    display: none;
}

#toggle {
    display: none;
}

.logo_img {
    background-image: url(../images/Logo.svg);
    display: block;
    width: 3.6em;
    height: 3.4em;
}

.banner {
    height: 100vh;
    width: 100%;
    background-image:  linear-gradient(180deg, rgba(0, 123, 141, 0.8) 30%, rgba(65, 247, 181, 0.8) 100%),url("../images/background-img.jpg");
    background-size: cover;
    background-position:  bottom;
    background-attachment: fixed;
    text-align: center;
}

.title-holder {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.title-holder, h1 span {
  
     color: white;
}

.line-1, .line-2 {
    line-height: 1.5em;
    font-size: 30px;
    letter-spacing: 7px;
    font-weight: 300;
}

.line-3 {
    position: relative;
    font-size: 45px;
    letter-spacing: 7px;
    font-weight: normal;
    top: 30px;
    border-bottom: 4px white solid;
    
}

.line-4 {
    position: relative;
    font-size: 73px;
    letter-spacing: 7px;
    font-weight: bolder;
    top: 27px;
     
}


 /*--------------------------------------Portfolio-----------------------------------*/

 .portfolio-section {
    width: 100%;
    height: auto;
    padding-top: 6rem;
    padding-bottom: 10rem;
    text-align: center;
  
 }

 .projects {
    display: grid;
    grid-template: repeat(2, 1fr) / 50% 50%;
    grid-row-gap: 10rem;
    padding-top: 6rem;
}

.project-item img {
    width: 32rem;
    height: 25rem;
    position: relative;
    z-index: -1;
    -webkit-box-shadow: 0px 0px 15px -4px rgba(0,0,0,1);
    -moz-box-shadow: 0px 0px 15px -4px rgba(0,0,0,1);
    box-shadow: 0px 0px 15px -4px rgba(0,0,0,1);
}


.project-item {
    opacity: 0;
}

.project-field {
    padding-top: 2rem;
    background-color: white;
    width: 16rem;
    height: 7rem;
    margin-top: -5rem;
}

.project-text h3 {
    font-weight: bold;
    font-size: 1.2em;
    line-height: 21px;
    letter-spacing: 0.12em;
    color: #007B8D;
}

.project-text span {
    font-weight: normal;
}

.project-text p {
    font-weight: normal;
    font-size: 13px;
    line-height: 12px;
    /* identical to box height */
    letter-spacing: 0.08em;
    color: #26A778;
}

.project-text a {
    font-weight: normal;
    font-size: 14px;
    line-height: 12px;
    /* identical to box height */
    letter-spacing: 0.08em;
    text-decoration-line: underline;
    color: #007B8D;
}

/*--------------------------------------About-----------------------------------*/

.about-section {
    background-color: #f2fffb;
    background-image: url(../images/about-background.jpg);
    background-size: cover;
    background-size: 45%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}
 

.dummy-background{
    background-image: url(../images/about-background.jpg);
    background-size: cover;
    opacity: 0%;
    height: 100vh;
    width: 47%;

}


.about-content {
    margin-top: 10rem;
    margin-left: 2.1rem;
}

.about-content {
    opacity: 0;
}

.about-text h2 {
    padding-bottom: 2rem;
}

.about-content p {
    font-weight: normal;
    font-size: 0.9vw;
    line-height: 214.9%;
    letter-spacing: 0.095em;
    color: #545454;
    align-content: flex-start;
    
    }

.skills {
    margin-top: 3rem;
}

.skills img {
    margin-right: 3rem;
    width: 2.8rem;
    height: 2.8rem;
}



  /*--------------------------------------Contact-----------------------------------*/

    .contact-section {
        background-color: #007B8D;
        width: 100%;
        height: 93vh;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    .contact-content {
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .contact-content {
        opacity: 0;
    }

    .contact-text {
        margin-top: 15%;
    }

    .contact-text h2 {
        color: #14BB7F;
        line-height: 42px;
        letter-spacing: 0.12em;
        margin: 0;
        
    }

    .contact-text span {
        font-weight: 300;
        font-size: 30px;
        line-height: 42px;
        letter-spacing: 0.12em;
        margin: 0;
    }

    .contact-text p {
        margin-top: 8%;
        font-weight: 300;
        color: white;
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0.12em;
      
    }

    .contact-form {
        min-width: 16.5rem;
        min-height: 10rem;
        background-color: #016675;
        border-radius: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .contact-form form {
        margin: 0 auto;
        color: white;
        margin-left: 69px;
        margin-top: 50px;
    }

    .contact-form label, input, textarea {
         padding-top: 20px;
        font-size: 16px;
 
    }

    form input {
        min-width: 400px;
        min-height: 42px;
        border: 1px solid #14BB7F;
        box-sizing: border-box;
        border-radius: 8px;
        background-color: transparent;
        padding: 0px 10px 0px 10px;
        color: white;
    }
    form textarea {
        min-width: 400px;
        min-height: 10vh;
        border: 1px solid #14BB7F;
        box-sizing: border-box;
        border-radius: 8px;
        background-color: transparent;
        padding: 10px 10px 0px 10px;
        color: white;
    }

    form button {
        min-width: 400px;
        min-height: 44px;
        background: #14BB7F;
        border-radius: 8px;
        color: white;
        border: none;
        font-size: 16px;
    }

    .footer-section {
        background-color: #2F2F2F;
        width: 100%;
        height:7vh;
        display: flex;
        justify-content: space-between;
        align-items: center;
        }

    .footer-text {
        display: flex;
        justify-content: space-between;
    }

    .footer-text p {
        margin: 0;
        font-weight: bold;
        font-size: 15px;
        letter-spacing: 0.055em;
        color: white; 
        
    }

/*--------------------------------------Responsive 1200-width-----------------------------------*/

@media screen and (max-width: 1200px) {
    

    .project-item img {
        width: 90%;
        height: 85%;
    }

    .project-field {
        width: 50%;
        height: 50%;
    }
    
    .project-text h3 {
        font-size: 0.9em;
    }

    
    .project-text p {
        font-size: 10px;
    }
    
    .project-text a {
        font-size: 11px;
    }

    /*-------------------------------------------------------------------------*/

    .about-section {
        height: auto;
    }

    .dummy-background{
        height: 100vh;
        width: 46%;
    
    }
    
    
    .about-content {
        margin-top: 10rem;
        margin-left: 2.1rem;
    }

    .about-text h2 {
        padding-bottom: 0.5rem;
    }
    
  
    
    .skills {
        margin-top: 3rem;
    }
    
    .skills img {
        margin-right: 2rem;
        width: 1.8rem;
        height: 1.8rem;
    }


    .contact-form form {
        margin-left: 30px;
    }


}

@media screen and (max-width: 992px) {

    * {
        margin: 0;
    }

    .line-1, .line-2 {
        font-size: 25px;
    }
    
    .line-3 {
        font-size: 35px;
    }
    
    .line-4 {
        font-size: 55px;
    }
    .project-item img {
        width: 32rem;
        height: 25rem;
    }

    .project-field {
        padding-top: 2rem;
        background-color: white;
        width: 16rem;
        height: 7rem;
        margin-top: -5rem;
        margin-bottom: 100px;
    }

    .projects {
        display: block;
    }

    .dummy-background{
        display: none;
    
    }

    .about-section {
        background-size: 100%;
    }

    .about-content {
        margin-top: 70rem;
        margin-bottom: 10rem;
    }

    .about-text h2 {
        padding-bottom: 2rem;
        
    }

    .about-content p {
        font-size: 18px;
        width: 500px;
        letter-spacing: 0.095em;
        
        align-content: flex-start;
        
    }
    .skills img {
        width: 200px;
        margin-right: 1.4rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .contact-text span {
        font-size:30px ;
    }

    .contact-content {
        display: column;
        justify-content: center;
     
    }
    
    .contact-form {
        min-width: 30.5rem;
        min-height: 10rem;
        background-color: #016675;
        border-radius: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

}

@media screen and (max-width: 768px) { 

    .header ul {
        margin-top: 24px;
        background-color: #fff;
        width: 100%;
    }

    .header ul a:hover{
        background-color:#007B8D ;
        color: white;
    }
    
    .header label {
        display: block;
        cursor: pointer;
        margin-top: 8px;
    }

    .header.black ul a {
        display: block;
        padding: 20px;
        background-color: black;
        color: white;
    }

    .header.black ul a:hover{
        background-color:white ;
        color: black;
    }

    .logo-ham {
        display: inline-block;
        width: 40px;
        height: 40px;
        align-items: center;
        margin-top: 20px;
    }

    .header.black .logo_img {
        display: none;
    }
    .header .logo_img {
        display: none;
    }

    .nav {
        margin-top: 100px;
        text-align: center;
        position: absolute;
        flex-direction: column;
        left: 0%;
        display: none;
        z-index: 3;
    }

    .nav a { 
        border-bottom: 1px solid #EAEAEB;
        margin: 0;
    }

    #toggle:checked + .nav {
        display: block;
    }

    .contact-form {
        width: 20.5rem;
    }

    .contact-content p , span, h2 {
        display: column;
        justify-content: center;
        text-align: center;
    }

}