/* this code for heading and body */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
}
:root{
    --bg-color: #ffffff;
    --secound-bg-color: #f9f9f9;
    --text-color: #fff;
    --secound-color: #161616;
    --main-color: #ef0454;
    --other-color: #6a6a6a;
    --big-font: 5.7rem;
    --h2-font: 3.8rem;
    --p-font: 1rem;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}
header{
    position: fixed;
    width: 100vw;
    right: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    padding: 15px 6%;
}
.logo{
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-color);
}
span{
    color: rgba(241, 5, 5, 0.884); /* this is for logo color p.polio */
}
.navlist{
    display: flex;
}
.navlist li{
    position: relative;
}
.navlist a{
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px;
}
.navlist a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--main-color);
    left: 0;
    bottom: -4px;
    transition: ease .40s;
}
.navlist a:hover::after{
    width: 100%;
}
#menu-icon{
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10001;
    display: none;
}
.h-btn a{
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 26px;
    border:2px solid transparent;
    transition:ease .40s;
}
/* this code for sign out sign in  */
.h-btn .sign-in{
    color: var(--text-color);
    background: var(--main-color);
    border-radius: 30px;
}
.h-btn .sign-in:hover{
    background: transparent;
    border: 2px solid var(--main-color);
}

/* this is for home section of page code */
section{
    padding: 120px 16%;
    overflow-x: hidden;
}
.home{
    height: 150vh;
    width: 100vw;
    background-image: url(../image/bg.jpeg);
    background-size: cover;
    background-position: top center;
    position: relative;
    display: flex;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    z-index: 1;
}
/* this code for making dark of home page bg */
#home::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .7;
    z-index: -1;
}
/* end of making home page dark */
.home-text{
    padding: 20%;
}
.home-text h1{
    display: block;
    width: fit-content;
    font-size: 4rem;
    position: relative;
    color: transparent;
    animation: text_reveal .5s ease forwards;
    animation-delay: 1s; 
}
.home-text h1:nth-child(1){
    animation-delay: 1s;
}
.home-text h1:nth-child(2){
    animation-delay: 2s;
}
.home-text h1:nth-child(3){
    animation: text_reveal_name 0.5s ease forwards;
    animation-delay: 3s;
    
}
#home h1 span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: crimson;
    animation: text_reveal_box 1s ease;
    animation-delay: .3s;
}
#home h1:nth-child(1) span{
    animation-delay: .5s;
}
#home h1:nth-child(2) span{
    animation-delay: 1.5s;
}
#home h1:nth-child(3) span{
    animation-delay: 2.5s;
}
/* keyframes for auto write of home word  like my name is*/
@keyframes text_reveal_box{
    50%{
        width: 100%;
        left: 0;
    }
    100%{
        width: 0;
        left: 100%;
    }
}

@keyframes text_reveal{
    100%{
        color: white;
    }
}
@keyframes text_reveal_name{
    100%{
        color: crimson;
        font-weight: 500px;
    }
}
/* end keyframes for auto write of home word */
.home-text h4{
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1.21;
    font-weight: 700;
    margin-bottom: 40px;
}
.btn{
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 33px;
    background: var(--main-color);
    color: var(--text-color);
    border-radius: 30px;
    border: 2px solid transparent;
    text-transform: uppercase;
    transition: ease .30s;
    margin: 30px; 
    letter-spacing: .1px;
    
}
.btn:hover{
    transform: translatey(-10px);
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}


/* this code for about */
.about{
    background:  var(--text-color);
    display: flex;
    grid-template-columns: repeat(2,2fr);
    align-items: center;
    grid-gap: 2rem;
}
.about-image img{
    width: 80%;
    height: auto;
    display: flex;

}
.about-text h2{
    font-size: var(--h2-font);
    color: var(--secound-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.about-text h5{
    color: var(--secound-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.about-text p{
    text-align: justify;
    font-size: var(--p-font);
    font-weight: 400;
    max-width: 570px;
    line-height: 1.8;
    color: var(--other-color);
}
.about-text p .btn{
    margin-left: 0;
    width: 70%;
    padding: 5px;
    text-align: center;
}
/* this code for servies related */
.services{
    background: var(--secound-bg-color);
}
.heading{
    text-align: center;
}
.heading h6{
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 15px;
    line-height: 1;
}
.heading h2{
    font-size: var(--h2-font);
    font-weight: 700;
    color: var(--secound-color);
    margin-bottom: 1.6rem;
    line-height: 1.1;   
}
.heading p{
    font-size: var(--p-font);
    font-weight: 400;
    color: var(--other-color);
    line-height: 1.8;
}
.services-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, auto));
    grid-gap: 2rem;
    align-items: center;
    text-align: center;
    cursor: pointer;
    margin-top: 4.4rem;
}
.box{
    background: var(--bg-color);
    padding: 45px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .35s;
}
.box i{
    color: var(--main-color);
    font-size: 2.8rem;
    margin-bottom: 18px;
}
.box h3{
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secound-color);
}
.box p{
color: var(--other-color);
font-size: 16px;
line-height: 30px;
}
.box:hover{
    box-shadow: 0px 20px 30px rgb(255, 10, 182);
}
/* this code for portfolio */
.portfolio-content{
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(20px, auto));
    grid-gap: 2rem;
    align-items: center;
    text-align: center;
    cursor: pointer;
    margin-top: 4.4rem;
    margin-left: 300px;
}
.col{
    position: relative;
    
}

.col img{
    
    max-width: 100%;
    width: 200px;
    height: auto;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
    top: 0;
    left: 0;
    transition:all .35s;
}
.layer:hover{
    background: linear-gradient(rgba(235, 19, 19, 0.06) 0%,#22a6ce 100%);

}
.layer h3{
    position: absolute;
    width: 100%;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    bottom: 0;
    left: 50%;
    transform: translatex(-50%);   /*thi is for sollution photos so words come to center*/
    opacity: 0;
    transition: all .35s;
}
.layer:hover h3{
    bottom: 45%;
    opacity: 1;
}
/* this code for blog related */
.blog{
    background: var(--secound-bg-color);

}
.blog-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, auto));
    grid-gap: 8rem;
    align-items: center;
    cursor: pointer;
    margin-top: 4.4rem;

}

.blog-content .row image{
    max-width: 100%;
    width: 600px;
    height: auto;

}
.row{
    padding: 0 0 30px 0;
    background: var(--bg-color);
    border-radius: 10px;
    transition: all .35;
}
.row p{
    font-size: 14px;
    font-weight: 500;
    color: var(--other-color);
    margin: 10px 0px 8px 25px;
}
.row h3{
    font-size: 22px;
    line-height: 1.45;
    font-weight: 600;
    transition: all .35s;
    margin: 10px 0px 8px 25px;
    color: var(--secound-color);
}
.row h3:hover{
    color: var(--main-color);
}
.row a{
    font-size: var(--p-font);
    font-weight: 400;
    line-height: 1.8;
    color: var(--other-color);
    border-bottom: 2px solid transparent;
    transition: all .35s;
    margin: 10px 0px 8px 25px;

}
.row a:hover{
    border-bottom: 2px solid var(--main-color);
    color: var(--main-color);
}
.row:hover{
    box-shadow: 0px 20px 30px rgb(55, 7, 23 / 7%);

}
/* this css is  for contact  */
.contact{
    background: #0578a5;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact h2{
    color: var(--text-color);
    font-size: 1.9rem;
}
.contact h3{
    color: var(--bg-color);
    font-size: 1rem;
}

/* this code is for copyright */
.copyright{
    background: var(--bg-color);
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.copyright p{
    font-size: 14px;
    font-weight: 500;
    color: var(--other-color);
}
.icon a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    width: 35px;
    height: 35px;
    margin: opx 5px;
    color: var(--text-color);
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all .40s;
}
.icon a:hover{
    transform: translatey(-10px);
}


/* media query for tablet*/
@media only screen and  (max-width: 1380px){
    header{
        padding: 18px 2%;
        transition: .3s;
    }
    section{
        padding: 80px 2%;
        transition: .2s;
    }
    :root{
        --big-font: 4.7rem;
        --h2-font: 2.5rem;
    }
    .home-text h4{
        font-size: 1.2rem;
    }
    
}

@media only screen and (max-width: 1200px){
    header{
        padding: 14px 2%;
    }
    .home{
        height: 90vh;
    }
    .home-text h1{
        font-size: 2.4rem;
    }
    /* this code for menu baar  */
    #menu-icon{
        display: block;
    }
     .sign-up{
        display: none;
    } 
    
    .navlist{
        position: absolute;
        top: -600px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;  /*this code for puting inside menu bar words*/
        background: var(--main-color);
        text-align: left;
        transition: all .35s ease;

    }
    .navlist a{
        display: block;
        padding: 1rem;
        margin: 1.2rem;
        border-left: 2px solid var(--text-color);

    }
    .navlist a:hover{
        background: var(--text-color);
        color: var(--secound-color);
        border:none;
    }
    .navlist a::after{
        display: none;
    }
    .navlist.active{
        top:100%;
    }
}

@media (max-width: 770px){
    .h-btn{
        display: none;
    }
    .home{
        width: 100vw;
    }
    .home-text h1{
        font-size: 1.8rem;
    }
    .about{
        grid-template-columns: 1ft;
    }
    .about-image {
        text-align: center;
        margin-bottom: 100px;
    }
    .contact{
        text-align: center;
    }
    .contact h2{
        font-size: 1.4rem;
    }
    .copyright{
        justify-content: center;
        text-align: center;
    }
    .copyright p{
        margin-bottom: 30px;
    } 
}
@media (max-width:750px){
    :root{
        --big-font: 3.5rem;
        --h2-font: 1.9rem;
        --p-font: 0.9rem;
    }
}
@media (max-width:630px){
    section{
        padding: 90px 4%;
    }
    header{
        padding: 14px 4%;
    }
    :root{
        --big-font: 3.2rem;
        --h2-font: 1.8rem;
        --p-font: 0.9rem;
    }
    .home-text h4{
        font-size: 1.2rem;
    }
    
}


