@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900');

*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    border: none;
    outline: none;
    font-family:'Poppins',sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
::-webkit-scrollbar{
    visibility: hidden;
    width: 0;
}
:root{
    --back:#fff;
    --back-2:#f0f0f0;
    --text:#000;
    --main:#0070f3;
    /* rgb(63 255 51) 
    #0ef*/
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background-color: var(--back);
    color: var(--text);
}
.nav{
    top: 0;
    position: fixed;
    height: 60px;
    width: 100%;
    padding: 15px 50px;
    z-index: 9;
}
.logo{
    font-size: 30px;
    float: left;
}
.menu{
    float: right;
    cursor: pointer;
}
.menu a{
    display: inline-block;
    font-size: 20px;
    padding-left:10px;
    color: var(--text);
    background: none;
    border: none;
    outline:none;
}
.menu a::after{
    display: block;
    content: '';
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color:var(--main);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.menu a:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left;
}
.menu a:hover,
.menu a.first{
    color: var(--main);
}
section{
    min-height: 100vh; 
}
#home{
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 5.5rem;
}
.subcont{
    padding: 7rem;
}
.section01 img{
    animation:floatImage 4s ease-in-out infinite;
}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}
.section01 h1{
    font-size: 3.5rem;
}
.section01 h2{
    font-size: 3rem;
}
.section01 h3{
    font-size: 4rem;
}
.section01 h4{
    font-size: 1.5rem;
    line-height: 1.3;
}
.section01 span{
    color:var(--main);
    
}
.btn{
    height: 3.5rem;
    width: 15rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 4rem;
    background-color: var(--main);
    box-shadow: 0 0 1rem var(--main);
    transition: .2s ease-in-out;
}
.btn a{
    color: var(--back-2);
}
.btn:hover{
    box-shadow: 0 0 .5rem var(--main);
}
.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: .2rem solid var(--main);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main);
    margin: 2rem 0.7rem 1rem 0.7rem;
}
.social-media a:hover{
    background: var(--main);
    color:var(--back-2) ;
    box-shadow: 0 0 1rem var(--main);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--text);
    display: none;
}
#about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--back-2);
}
.Acont{
     text-align: center;
    font-size: 4.5rem;
}
.section02 img{
    width: 85vw;
}
.section02 h2{
    line-height: 1.2;
    color: var(--text);
}
.section02 h2 span{
    color: var(--main);
}
.section02 h3{
    font-size: 2.6rem;
}
.section02 p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}
.section02 div{
    padding: 2rem;
}
.readmore{
    display: none;
    transition: .2s ease-in-out;
}

.skill-cont .column{
    width: calc(50% - 30px);
}
.section03 h1{
    padding-top: 15vh;
    font-size: 4rem;
    justify-content: center;
    align-items: center;
}
.section03 h1 span{
    color: var(--main);
}
.skill-cont .left{
    font-size: 1.5rem;
}

.hide{
    display: none;
}

#skills {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.section03 .skill-cont .right .bars{
    margin-bottom: 15px;
}
.section03 .skill-cont .right .info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:20px;
    font-size:18px;
    font-weight:500;
}
.section03 .skill-cont .right .line{
    height: 5px;
    width: 100%;
    overflow: hidden;
    background: var(--back-2);
    position:relative;
}
.section03 .skill-cont .right .line::before{
    content:"";
    position:absolute;
    height: 100%;
    left: 0;
    top: 0;
    background-color: var(--main);
    transition: 2s ease;
}
.skill-cont .right .corejava::before{
    width: 70%;
}
.skill-cont .right .html::before{
    width: 90%;
}
.skill-cont .right .css::before{
    width: 50%;
}
.skill-cont .right .mysql::before{
    width: 50%;
}
.skill-cont button{
    margin-left: 7px;
}
.section04{
    display:flex;
    background:var(--back-2);
}
.project-cont{
    display:flex;
    align-items:center;
    gap:2rem;
    margin:0 20px;
}
.section04 h2{
    font-size:4rem;
    margin:50px 0px -50px 0px;
}
.section04 h2 span{
    color:var(--main);
}

.project-cont .box{
    margin-top:100px;
    position:relative;
    display:flex;
    border-radius:50px;
    box-shadow:0 0 1rem var(--back);
    overflow:hidden;
}
.project-cont img{
   width:100%;
   transition:.5s ease;
}
.box:hover img{
    transform:scale(1.1);
}
 .project-cont .layer{
    justify-content:center;
    padding-top:150px;
    font-weight:500;
    color:var(--back);
    font-size:3rem;
    position:absolute;
    bottom :0;
    left:0;
    width:100%;
    height:30vw;
    background:linear-gradient(rgba(0,0,0,.1),var(--main));
    transform:translateY(100%);
    transition:.5s ease-in-out;
}
.box:hover .layer{
    transform:translateY(0%);
}
.project-cont .layer a{
    font-size:5rem;
    color:var(--text);
    text-shadow:0 0 1rem var(--back);
}
.project-cont .layer h4{
    text-shadow:0 0 1rem var(--text);
}

.section05 h2{
    padding-top: 15vh;
    font-size:3rem;
}
.section05 h2 span{
    color:var(--main);
}
.section05 form{
    max-width:60rem;
    justify-content:center;
    flex-wrap:wrap;
    height: 60%;
}
.section05 form .in-box input,
.section05 form textarea{
    width:100%;
    padding:1.5rem;
    font-size:1.6rem;
    color:var(--text);
    background:var(--back-2);
    border-radius:.8rem;
    margin:.5rem 0;
    position:relative;
}
.section05 form .in-box input{
    width:49%;
}
.section05 form textarea{
    resize:none;
}
.section05 form .btn{
    margin-bottom:7px;
}
.footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    padding:.2rem 9%;
    background:var(--back-2);
    transform:translateY(-100%);
    position:relative;
}
.foot-icon a{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    background:var(--main);
    border-radius:.8rem;
    left:15px;
    margin: .5rem 1rem;
}
.foot-icon a:hover {
    box-shadow: 0 0 1rem var(--main);
}
.foot-icon a i{
    font-size:2.4rem;
    color:var(--back-2);
    right:15px;
}

@media(min-width:768px){
     html{
        overflow-y:hidden;
    }
    .skill-cont{
    height: 80vh;
    margin-top: 5vh;
    padding: 0 4rem;
    display: flex;
}
.subcont{
    width: 45%;
}
.scroll{
    height: 63vh;
    top: 0;
    overflow-y: scroll;
    scroll-behavior: smooth;
}
.section03 .skill-cont .right{
    margin-left: 30px;
}

}
@media (max-width:1200px){
    html{
        font-size:55%;
    }
   
}

@media (max-width:991px){
    .nav{
        padding:2rem 3%;
    }
    section{
        padding:10rem 3% 2rem;
    }
    .footer{
        padding:2rem 3%;
    }
    
}

@media (max-width: 768px){
    #menu-icon{
        display:block;
        float: right;
    }
    .subcont{
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .menu{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        padding:1rem 3%;
        background:var(--back);
        border-top: .1rem solid rgba(0,0,0,.2); 
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
        display: none;
        z-index: 9;
        overflow-y: visible;
        scroll-behavior: smooth;
    }
    .menu.first{
        display:block;
    }
    .menu a { 
        display:block;
        font-size:2rem;
        margin:3rem 0;
    }
    
    .section01{
        flex-direction: column;
    }
    .section02{
        flex-direction: column-reverse;
    }
    .section03 h1{
       padding-top: 0;
    }
    .section03 {
        flex-direction: column;
    }
    html{
        overflow-y:visible;
    }
    .project-cont{
        display:block;
    }
    .menu a::after{
        width:fit-content;
    }
    .skill-cont .column{
        width: 100%;
    }
    .skill-cont .right{
        top:10px;
    }
    .skill-cont .left{
        height: fit-content;
        margin-top: 10%;
    }
    .footer{
        transform: translateY(0);
    }
     .project-cont .layer{
    padding-top:25px;
    font-size:2.5rem;
    height:43vw;
     }
}
