@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,300&family=League+Spartan:wght@400;600;800&family=Poppins:wght@500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
    font-size:18px

}
html{
    scroll-behavior: smooth ;
    
}
body{
    background: #0a0909;
    color:white;

}
#header{
    width: 100%;
    height: 100%;
    background-image: url(Images/Baner.png);
    background-size: cover;
    background-position: top;
}
.container{
    padding: 20px 10%;

}
nav{
    display:flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

}
.logo{
    width: 150px;
}

nav ul li{
    display: inline-block;
    list-style:  none;
    margin: 10px 20px;
}

nav ul li a{
    color: white;
    text-decoration: none;
    font-size: 17px;
    position: relative;
    text-transform: uppercase;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #39ff14;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 20%;
    font-size: 17px;
}
.header-text h1{
    font-size:60px ;
    margin-top: 18px;
}
.header-text h1 span{
    color:#39ff14;
    font-size: 50px;
}
    
    .fa-brands, .fab {
        font-weight: 400;
        font-size: 30px;
        background-color: #39FF14;
        color: black;
        padding: 15px 20px;
        border-radius: 10px;
        margin-top: 15px;
        margin-right:8px;
    }
       

/*---About--*/

#about{
    padding: 80px 0;
    color:#fff;

}


#about h1 span{
    color:#39FF14;
    margin-top: 20px;
    font-size:50px;
}
.row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
    }
.about-colo-1{
    flex-basis: 49%;
}
.about-colo-1 img{
    width: 100%;
    border-radius:15px;

}
.about-colo-2{
    flex-basis: 49%;
}
.sub-title{
    font-size: 50px;
    font-weight: 600;
    color:#fff
}
/*---------My Services-----------*/
#my-services{
 
    padding: 30px 8%;
}
    
.title-center h1{
    text-align: center;
    font-size: 50px;
   }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
    }


.cards div {
    background: #6b9080;
    padding: 40px;
    font-size: 16px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.7s;
    }


.cards div h2{
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}


.cards div:hover{
    background:#39FF14 ;
    color: black;
    transform: translateY(-15px);
}
   
 


/*---------My projects-----------*/

#projects{

    padding:50px 0;

}
.sub-title h1{
    font-size: 50px;
    text-align: center;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
    
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;

}
.work img{

    width:-webkit-fill-available;;
    border-radius:10px;
    display: block;
    transition: transform 0.5s;
    
}
.layer{
    width: 100%;
    height: 0%;
    background:linear-gradient(rgba(0,0,0,0.6),#39FF14);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height 0.7s ;
    
}
.layer h3{

    font-weight: 500;
    margin-bottom: 20px;
    
}
.layer p{
    font-size: 14px;
}

.layer a{
    margin-top: 20px;
    color:#39FF14;
    text-decoration: none;
    font-size:18px;
    line-height: 60px;
    background: #fff;
    width:60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.work:hover img{
    transform: scale(1.3);
}

.work:hover .layer{

    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #39FF14;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background-color:#39FF14 ;
    color: #000;
}

.btn-2{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #39FF14;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    float: left;
    background-color: #0a0909;
    
}
.btn-2:hover{
    background-color:#39FF14 ;
    color: #000;
}

/* ------------------- contact -------------*/
.sub-email{
    padding: 30px 0px;
    font-size: 30px;
}
.social{
    text-decoration: underline;

}
.contact-left{
    flex-basis: 45%;
}


.contact-right{
    flex-basis: 50%;

}
.contact-right form{
    width: 100%;
}
form input, form textarea{

    width: 100%;
    border: 0;
    outline:none;
    background: #F1F2F2;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-size:14px;
    color: #0F0E0E;
    font-weight: 300 ;
    



}
.contact-left a{
    color:white;
}
nav .fa-solid{
    display: none;
    
}
section{
    background-color: #101010;
    position: 0;
}
@media only screen and (max-width:780px){
    #header{
        background: url(Images/dark.jpg);
        
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;

    }
    nav .fa-solid{
        display: block;
        font-size: 30px;
    }
    nav ul{
        background: #15db29;
        background: linear-gradient(45deg, #15db29, #000000, #15db29, #000000);
        position:fixed ;
        top:0;
        right:-100%;
        width:100%;
        height: 100vh;
        padding-top: 50px;
        z-index: 5;
        transition: right 0.5s;
        color: white;
        z-index: 2;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid{
        display: block;
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;

    }
    .header-text h1 span{
        font-size:30px;
    }
    .nav ul li a{
        color: black !important;
    }
    .sub-title{
        font-size: 40px;
    }
    .about-colo-2{
        font-size:14px !important;
    }
    .contact-left , .contact-right{
        flex-basis: 100%;
    }
    
     .title-center h1{
        font-size: 40px;

    }
    .cards div p {
        font-size:11px;
    }
   
}
@media(max-width:980px){
    
        nav ul li a{
        font-size: 13px !important;
        
    }
    .logo{
        max-width: 130px;
        width:100%;
    }
   
}
@media (max-width:320px){
    .container-cards {
        padding: 20px 0%;
        margin: 0 0 0 -3%;
    }
}

#msg{
    color:#15db29;
    display: block;

}