
*{

    padding:0;
    margin:0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: poppins, sans-serif;
}

:root{
    --bg-color:#2a2a2a;
    --second-bg-color:#202028;
    --text-color:#fff;
    --second-color:#ccc;
    --main-color:#3776dc;
    --big-font:4rem;
    --h2-font:3red;
    --p-font:1.1rem;
}

body{
    background:#15202b;
    color:var(--text-color);
}


header{
    position: fixed;
    width:100%;
    top:0;
    right:0;
    z-index: 1000;
    display:flex;
    align-items: center;
    justify-content: space-between;
    background-color:#15202b;
    padding:15px 15%;
    border-bottom: 1px solid transparent;
    transition: all .45s ease;
    box-shadow: 0 0 10px black;


}

.logo{
    color:var(--text-color);
    font-size:30px;
    font-weight: 700;
    letter-spacing: 1px;
 
}

span{
    color:var(--main-color);

}

.navlist{
    display: flex;
    cursor: pointer;
}

.navlist a{
    color: var(--second-color);
    font-size: 17px;
    font-weight: 500;
    margin:0 25px;
    transition: all .45s ease;
    cursor: pointer;

}

.navlist a:hover{
    color:var(--main-color);

}

.navlist:a.active{
    color:var(--main-color);
}

#menu-con{
    font-size: 35px;
    color:var(--text-color);
    z-index:1000;
    cursor: pointer;
    margin-left: 25px;
    display: none;
}

section{
    padding:160px 15% 120px;
}

.home{
    position: relative;
    height:100vh;
    width:100%;
    background-image:url(top\ background.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items:center;
    justify-content: flex-start;
}

.slide{
    margin-bottom: 20px;
}

.one{
    display:inline-block;
    margin-right: 15px;
    padding:0 15px;
    line-height: 32px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background: var(--main-color);
    color:var(--text-color)

}

.two{

    display:inline-block;
    color:var(--second-color);
    font-size: 20px;
    font-weight: 500;
}

.home-text h1{
    font-size:60px;
    font-weight: 700;
    color:var(--text-color);
    line-height: 1.1;
    margin:0 0 8px;

    
}

.home-text h3{
    color:var(--text-color);
    margin:0 0 25px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;

}

.home-text p{
    color:var(--second-color);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 35px;

}



.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15px;
    height: 15px;
    background-color: #2759a9;
    border-radius: 50%;
    box-shadow: 0 0 10px black;
    font-size: 20px;
    color:white;
    margin:0px 15px 30px 0;
    padding:17px;
    box-shadow: 0 0 10px black;
    
}

.social-icon a:hover{
    background: red;
    color:white;
    transition: 0.5s;
    
}


.button{
    display: inline-block;
    align-items: center;
    justify-content: center;
    

}
.btn{
    display: inline-block;
    padding:15px 30px;
    background:var(--main-color);
    border-radius: 0 30px 0 30px;
    color:var(--text-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all .45s ease;
    box-shadow: 10px 10px 5px rgb(255, 238, 1);

}

.btn:hover{
    transform: scale(0.9);
    background: red;
}

.about{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: flex-start;
    gap:1rem;
    margin-top: -50px;
    

}

.about-img img{
    max-width:530px;
    height: auto;
    width: 100%;
    border-radius: 0 150px 0 150px;
    box-shadow: 2px 2px 2px rgb(0, 0, 0);

}

.about-text h2{
    font-size: 40px;
    line-height: 1;

}

.about-text h4{
    font-size:20px;
    font-weight: 600;
    color:var(--text-color);
    line-height: 1.7;
    margin:12px 0 25px;
}

.about-text p{
    color:var(--second-color);
    font-size:var(--p-font);
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    margin-bottom: 2rem;
    

}

.about-text{
    margin-top: 10%;
    margin-left: 15px;
}

.main-text{
    text-align: center;
    margin-top: -100px;

}

.main-text p{

    color: var(--second-color);
    font-size: 15px;
    margin-bottom: 15px;
}

.main-text h2{
    font-size:40px;
    line-height: 1;

}

.services-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,auto));
    align-items: center;
    gap:2.5rem;
    margin-top: 5rem;
}

.box{
    background:#1d1d1d79;
    padding: 35px 45px;
    border-radius: 8px;
    transition: all .45s ease;
    box-shadow: 10px 10px 5px rgb(255, 238, 1);


}


.s-icons i{
font-size: 32px;
margin-bottom: 20px;

}

.s-icons {
    text-align: center;
    }

.box h3{
    font-size: 24px;
    font-weight: 600;
    color:var(--text-color);
    margin-bottom: 15px;
}

.box p{
    color:var(--second-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;

}

.box:hover{
    transform: translateY(-8px);
    
}

.box{
    text-align: center;
}

.services{
    margin-top: -90px;
}

.portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    gap:2.5rem;
    align-items: center;
    margin-top: 5rem;
}

.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img{
    width:100%;
    height:0%;
    border-radius: 8px;
    display: block;
    transition:transform 0.5s;
}

.layer{
    width:100%;
    height:0%;
    background: linear-gradient(rgba(11, 0, 0, 0.1), #010b1a);
    position:absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    transition: height 0.5s;
   

}

.layer h5{
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 30%;

}

.layer p{
    color:var(--second-color);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}

.layer i{
    color:var(--main-color);
    margin-top: 25px;
    font-size: 20px;
    background: var(--text-color);
    width: 60px;
    height:60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;


}

.row:hover img{

    transform:scale(1.1);
    
}

.row:hover .layer{
    height: 100%;
}

.contact{
    background: #15202b;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap:2.5rem;
    margin-top: -100px;
}

.contact-text h4{
    color:var(--text-color);
    margin:18px 0;
    font-size: 18px;
    font-weight: 600;
    


}

.contact-text h2{

    font-size: 35px;
    line-height: 1;
    margin-top: -130px;
  

}

.contact-text p{
    color:var(--second-color);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 30px;
    font-family:Calibri;
}

.list{

    margin-bottom: 2.8rem;

}


.list li{
    margin-bottom: 12px;

}

.list li a{
    display:block;
    color:var(--second-color);
    font-size: 13px;
    transition: all .45s ease;

}

.list li a:hover{
    color:var var(--text-color);
    transform: translateY(5px);
}

.contact-icons i{
    height: 45px;
    width:45px;
    background-color: var(--main-color);
    color:var(--text-color);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    transition: all .45s ease;
   



}

.contact-icons i:hover{
    background-color: red;

}

.contact-form form{
    position: relative;

}

.contact-form form input, form textarea{
    width:100%;
    padding:14px;
    background: white;
    color:black;
    border:none;
    outline:none;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 18px;

}

.contact-form textarea{
    resize: none;
    height:240px;
}

.contact-form .submit{
    display:inline-block;
    font-size: 16px;
    background: var(--main-color);
    color:var(--text-color);
    width:160px;
    transition: all .45s ease;
}

.contact-form .submit:hover{
    transform: scale(1.1);
    cursor: pointer;
    background-color: red;

}

.end{

    padding:20px 15%;
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content:space-evenly;
    gap:2rem;
    background: #15202b;
    box-shadow: 0 0 5px black;


}

.last-text p{

    color:rgb(167, 161, 161);
    font-size: 16px;


}

.top i{
    padding:10px;
    border-radius: 8px;
    font-size: 15px;
    color:white;
    background-color: var(--main-color);
}

.top i:hover{
    background:red;
}

@media (max-width:1480px){
    header{
        padding:12px 2.5%;
        transition: .1s;
        
    }

    section{
        padding:118px 3% 60px;
    }
    .end{
        padding:15px 3%;
    }
}

@media(max-width:1100px){
    :root{
        --big-font:4rem;
        --h2-font:2.5rem;
        --p-font:1.1rem;
        transition: .1s;
    }
    .home-text h3{
        font-size: 2.5rem;

    }
    .home{
        height: 87vh;
    }
}

@media(max-width:920){
    .about{
        grid-template-columns: 1fr;
    }
    .about-img{
        width:100%;
        height:auto;
        max-width: 100%;
    }
    .contact{
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px){

    #menu-icon{
        display:block;
    }

    .navlist{
        position:absolute;
        top:-1000px;
        right: 0;
        left:0;
        display: flex;
        flex-direction:column;
        background:var(--bg-color);
        text-align: left;
        transition: all .45s ease;
    } 

    .navlist a{
        display: block;
        margin: 17px;
        font-size:20;
        transition:all .45s ease;
        color:var(--text-color);
    }

    .navlist a:hover{
        color:var(--main-color);
    }

    .navlist a.ative{
        color:var(--text-color);
    }
    .navlist.open{
        top:100%;
    }
}