/*-----------------------------------------------------*/
/*--------------------Global styles--------------------*/
/*-----------------------------------------------------*/

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing: inherit;
}

html{
    font-family: "Palatino Linotype";
    font-size:10px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

p{
    font-size: 1.6rem;
}

img{
    width: 100%;
    max-width:100%;
    height: auto;
}

/*-----------------------------------------------------*/
/*-----------------End of Global styles----------------*/
/*-----------------------------------------------------*/

section{
    padding: 5rem 0;
}
/*-----------------------------------------------------*/
/*-----------------Navbar design-----------------------*/
/*-----------------------------------------------------*/

header{
    width: 100%;
    height: 5rem;
    position: absolute;
    top:0;
    left: 0;
    z-index:1;
}
/*-----------------------------------------------------*/
/*----------------------New----------------------------*/
/*-----------------------------------------------------*/
.main-message{
    margin: 50%;
}

.container-header{
    width: 100%;
    max-width: 98rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.nav-brand{
    width:2rem;
}

.menu-icons{
    display: inline-block;
    cursor: pointer;
    font-size:3.5rem ;
    color: #000000;
}
.bar1,.bar2,.bar3{
    width: 35px;
    height: 5px;
    background-color:#fafafa ;
    margin: 6px 0;
    transition: 0.4s;
}

.close_it:before{
    color: #77a0b8;
    content: "\00d7";
    font-weight: 300;
    font-size: 3.5rem;
    font-family: Arial, sans-serif;
}


.nav-list{
    width: 25rem;
    height: 100vh;
    background-color: #d7d4ed;
    position: fixed;
    top: 0;
    right: -26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    transition: all 650ms ease-in-out;


}

.nav-list.active{
    right: 0;
}


.close{
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3.5rem;
}

.nav-item{
    margin: 1.5rem 0;

}

.nav-link{
    font-size:1.6rem;
    text-transform: uppercase;
    color: rgba(0,0,0,0.7);
}
/*-----------------------------------------------------*/
/*-----------------End of Navbar design----------------*/
/*-----------------------------------------------------*/


/*-----------------------------------------------------*/
/*-----------------Hero Design-------------------------*/
/*-----------------------------------------------------*/
.hero{
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(49,24,131,0) 0%, rgba(72,56,149,0) 100%), url("BG/MainBG.gif") center no-repeat;
    background-size: cover;
    position: relative;
}

.hero::before{
    content: "";
    position: absolute;
    left:0;
    bottom: -3px;
    width: 100%;
    height: 4.7rem;
   background: url("wave-small.png") center no-repeat;
    background-size: cover;
}


.hero-text{
    text-align: center;
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

.main-message{
    width: 100%;
    max-width: 50rem;
    color: #fafafa;
    text-transform: uppercase;
    /*new*/
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    display: inline;

}
.main-message h1{
    font-size: 4rem;
    margin: 1rem 0;
    /*new*/
    text-align: center;
}
.main-message h3{
    font-size:1.6rem;
    /*new*/
    text-align: center;
}
.main-message p{
    text-transform: lowercase;
    /*new*/
    text-align: center;
}
.btn{
    background-color: white;
    border-radius: 0.5rem 30rem;
    color: #77a0b8;
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    transition: background-color 650ms;

}
.btn:hover{
    background-color: #77a0b8;
    color: #ffff;
}

/*-----------------------------------------------------*/
/*-----------------End of Hero Design------------------*/
/*-----------------------------------------------------*/


/*Reusable code*/
.container{
    width: 90%;
    max-width: 120rem;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

/*-----------------------------------------------------*/
/*-----------------About-me Design---------------------*/
/*-----------------------------------------------------*/

.nav-list-social-media{
    list-style: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about li{
    margin: 0 2rem;
}


.about .container{
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-heading{
    text-align: center;
    text-transform: uppercase;
    line-height: 0;
    margin-bottom: 6rem;
}

.about-heading h1{
    font-size: 10rem;
    opacity: 0.3;
}

.about-heading h1:hover{
   color: rgba(49,24,131,0.9) ;
}
.about-heading h6{
    font-size: 2rem;
    font-weight: 300;
}

.profile-img{
    flex: 1;
    margin-right: 5rem;
}
.about-details{
    flex: 1;
}
.about-details p{
    font-size: 25px;
}

.social-media{
    margin-top: 5rem;
}
.social-media i{
    font-size: 5rem;
    color: rgba(0,0,0,0.3);
    transition: color 650ms;
}
.fa-github:hover{
    color: #77a0b8;
}
.fa-linkedin:hover{
    color: #77a0b8;
}
.fa-instagram-square:hover{
    color: #77a0b8;
}
.bx-mail-send:hover{
    color: #77a0b8;
}

.bullet{
    list-style: square;
    font-size: 1.5rem;
}

/*-----------------------------------------------------*/
/*-----------------Projects Design---------------------*/
/*-----------------------------------------------------*/

.section-heading{
    text-align: center;
    margin-bottom: 10rem;
}
.section-heading h1{
    font-size: 3.5rem;
    color: rgba(128,128,128,1);
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
    margin-bottom: 1rem;
}

.section-heading h1::before,
.section-heading h1::after{
    content: "";
    position: absolute;
    bottom: -.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color:  #77a0b8;
}
.section-heading h1::before{
    width: 10rem;
    height: 3px;
    border-radius: 0.8rem;
}

.section-heading h1::after{
     width: 1.5rem;
     height: 1.5rem;
     border-radius: 100%;
     bottom: -1rem;
 }

.section-heading h6{
    font-size: 1.6rem;
    font-weight: 300;
}

.projects-item{
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
}

.projects-item:last-child{
    margin-bottom: 0;
}

.has-margin-right{
    margin-right: 5rem ;
}

.project-description{
    flex: 1;
}

.project-description h1{
    font-size: 3rem;
    font-weight: 300;
    margin: 1rem 0;
}

.project-description h6{
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.8;
}

.project-description .cta{
    display: inline-block;
    margin-top: 2.5rem;
    font-size: 3rem;
    text-align: center;
    color: #000000;
    transition: color 650ms;
}

/*-----------------------------------------------------*/
/*-----------------End of Project Desig----------------*/
/*-----------------------------------------------------*/

.timeline-items{
    border-left: 4px solid #e2def5;
    border-radius: 0.8rem;
    background-color: rgba(0,0,0,0.05);
    margin: 0 auto;
    position: relative;
    padding: 5rem;
    list-style: none;
    text-align: left;
    width: 70%;
}

.timeline h1{
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.timeline .date{
    border-bottom: 1px solid rgba(128,128,128,1);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

.timeline .date:last-of-type{
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
}

.timeline .date::before,
.timeline .date::after{
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
}

.timeline .date::before{
    content: attr(data-date);
    left: -21rem;
    text-align: right;
    min-width: 12rem;
    font-size: 1.5rem;
}

.timeline .date::after{
    content: "";
    box-shadow: 0 0 0 4px #77a0b8;
    border-radius: 100%;
    left: -5.8rem;
    height: 1.5rem;
    width: 1.5rem;
    background-color: #77a0b8;
}
/*-----------------------------------------------------*/
/*-----------------End of skills-----------------------*/
/*-----------------------------------------------------*/

/*-----------------------------------------------------*/
/*-----------------Contact Design----------------------*/
/*-----------------------------------------------------*/

.contact{
    /*background-color: #2f67cd;*/
}
form{
    width: 70%;
    margin: 0 auto;
}

.form label{
    font-size: 3px;
}

input,
select,
textarea{
    width: 100%;
    padding:1rem;
    margin-bottom: 5px;
    outline-color: #2f67cd;
}
input[type="submit"]{
    width: initial;
    background-color: #77a0b8;
    color: #eee;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background-color 650ms;
}
input[type="submit"]:hover{
    color: black;
    background-color: #77a0b8;
}

/*-----------------------------------------------------*/
/*----------End of Contact Design----------------------*/
/*-----------------------------------------------------*/

#copyright{
    width: 100%;
    text-align: center;
    padding:2rem 0;
    background-color: #d7d4ed;
    position: relative;


}

#copyright p{
    font-size: 1.4rem;
}

/*-----------------------------------------------------*/
/*----------------------Scroll up----------------------*/
/*-----------------------------------------------------*/

#scroll {
    position:fixed;
    right:10px;
    bottom:10px;
    cursor:pointer;
    width:50px;
    height:50px;

    background-color:#77a0b8;
    animation: pulse 2s infinite;

    text-indent:-9999px;
    display:none;
    -webkit-border-radius:60px;
    -moz-border-radius:60px;
    border-radius:60px

}
#scroll span {
    position:absolute;
    top:50%;
    left:50%;
    margin-left:-8px;
    margin-top:-12px;
    height:0;
    width:0;
    border:8px solid transparent;

    border-bottom-color: white;

}

/*-----------------------------------------------------*/
/*-------------Start of Animation----------------------*/
/*-----------------------------------------------------*/

@keyframes pulse {
    0%{
        box-shadow: 0 0 0 0 rgba(41, 93, 161, 0.99);
    }
    70%{
        box-shadow: 0 0 0 2rem rgba(253,87,191,0);
    }
    100%{
        box-shadow: 0 0 0 0 rgba(253,87,191,0);
    }

}

/*-----------------------------------------------------*/
/*------------------Media queries----------------------*/
/*-----------------------------------------------------*/

@media screen and (max-width: 768px) {
    .about-heading h1{
        font-size: 8rem;
    }

    .section-heading h1{
        font-size: 3rem;
    }
    .about-details .nav-list-social-media{
        flex-direction: initial;
    }
    .about-details li{
        margin: 0 2rem;
    }
    .timeline ul{
        margin: 0 0 0 auto;
    }
    .timeline .date::before{
        left: -20rem;
    }
    .timeline .date::after{
        left: -5.7rem ;
    }

}

@media screen and (max-width: 600px) {
    .about .container{
        flex-direction: column;
    }
    .profile-img{
        margin: 0 0 7rem 0;
        width: 90%;
        height: 40%;

    }
    .about-details p{
        font-size: 18px;
    }

    .projects-item{
        flex-direction: column;
    }
    .project-img{
        margin: 0 0 2rem 0;
        order:1;
        width: 80%;
    }
    .project-description{
        margin: 0;
        order: 2;
    }
    .timeline p{
        font-size: 1.6rem;
    }
    .timeline .date::before{
        font-size: 1.4rem;
    }
    form{
        width: 100%;
    }
    .up{
        right: 2rem;
    }
}
@media screen and (max-width: 700px) {
    .profile-img{
        margin: 0 0 7rem 0;
        width: 90%;
        height: 50%;
    }

}
@media screen and (min-width: 350px){
    .main-message{
        transform: translateY(40%);
    }
   .timeline .date::before{
       font-size: 1.1rem;

   }
   .profile-img{
       height: 50%;
   }
}
@media screen and (min-width: 470px){
    .hero::before{
        height: 9.4rem;
        background: url("wave-medium.png");
        background-size: cover;
    }
    .profile-img image{
        max-height: 50%;
    }
}

@media screen and (min-width: 700px){
  header{
      height: 8rem;
  }
    .nav-brand{
        width: 3.5rem;
    }
    .nav-list{
        width: initial;
        height: initial;
        background-color: transparent;
        position: initial;
        top: initial;
        right: initial;
        flex-direction: row;
        transition: initial;
    }
    .menu-icons{
        display: none;
    }
    .nav-item{
        margin: 0 2.5rem;
    }
    .nav-link,
    .current{
        color: #fafafa;
        position: relative;
        font-size: 1.3rem;
    }

    .nav-link::before,
    .current::before{
        content: "";
        left: 0;
        position: absolute;
        bottom: -0.5rem;
        background-color: white;
        width: 100%;
        height: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 650ms;
    }
    .current::before{
        transform: scaleX(1);
    }
    .nav-link:hover::before{
        transform: scaleX(1);
    }
    .hero{
        height: 100vh;
        width: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.0) 100%),url("BG/MainBG.gif") center no-repeat;
        background-size: cover;
    }
    .main-message{
        transform: translateY(75%);
    }
    .title-heading h1{
        font-size: 2.5rem;
    }
    .profile-img image{
        max-height: 50%;
    }
}
@media screen and (min-width: 950px){
    .hero::before{
        height: 22.7rem;
        background: url("wave-large.png");
        background-size: cover;
    }
}
@media screen and (min-width: 1140px){
    .hero{
        height: 100vh;
        width: 100%;
        background: linear-gradient(80deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.0) 100%),url("BG/MainBG.gif") center no-repeat;
        background-size: cover;

    }
}