*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; 
    }
#header{
    width: 100%;
    height: 100vh;
    background-image: url('../img/D-law.jpg');
    background-repeat: no-repeat;
    background-position:    100% 70px;  
    background-size:contain;
    background-color: #38393E;
    color: #fff;
    overflow-x: hidden;

}
 nav{
    width: 100%;
    /* height: 100px;  */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    border-bottom: 2px solid white; 
    padding: 10px;
    background-color: #000;
    transition: background 1s;
    position: fixed;
    z-index: 10;
}
nav ul{
    width: 500px;
}
nav ul .btn{
    float: right;
    display:block;
    height: 30px;
    width: 100px;
    margin: 5px 10px;
    padding: 6px; 
    border: 1px solid red;
    /* background: transparent; */
    text-decoration: none;
    /* color:#fff; */
    font-size: 15px;
    cursor: pointer;
    border-radius: 30px;
}
nav ul .btn a{
    margin-left: 10px;
    text-decoration: none;
    font-weight: 700;
     color: #fff; 
}
nav ul .btn a:hover{
    color: #000;
} 
nav ul .btn:hover{
    background-color: #a9a9a9;
    color: #000;
}
nav ul li{
    list-style: none;
    display: inline-block;
    margin: 10px;
}
nav ul li a{
    color:#fff;
    /* padding: 10px; */
    text-decoration: none;
    font-weight: 700;
    position: relative;
}
nav .logo{
    display: flex;
    align-items: center;
    /* color: #fff; */
}
ul .ulLogo{
    display: none;
}
ul .ulLogo p{
    color: #000;
}
nav ul li a::after{
    content: '';
    width: 0%;
    height: 3px;
    background-color: crimson;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.9s;
}
nav ul li a:hover::after{/*you could also use before here*/
    width: 100%;
}
.hero{margin-top: 15%;
    margin-left: 10%;
    color: #fff;
    padding-left: 50px;
}
.hero h1{
    font-size: 60px;
    margin-top: -30px;
}
.hero p{
    font-size: 20px;

}
/* ---------------------slide effect--------------------------- */
.x1{
    animation: slide-left 1s linear forwards;
}
@keyframes slide-left{
    0%{
        trasform: translateX(100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
h1.x1{
    animation-delay: 1s;
}
h1.x2{
    animation-delay: 2s;
}
p.x1{
    animation-delay: 3s;
}
p.x2b{
    animation-delay: 4s;
}
p.x3{
    animation-delay: 5s;
}
p.x4{
    animation-delay: 6s;
}
.x1{
    opacity: 0;
}
.x2{
    opacity: 0;
}

.profile{
    display:block;
    height: 30px;
    width: 100px;
    margin: 3% 15%;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 20px;
    border: 1px solid red;
    /* background: transparent; */
    text-decoration: none;
    color:#fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    /* transition: 1s; */
}
.profile:hover{
    background-color: crimson;
    border: 1px solid #000;
}
/* --end of header-- */

/* ------ profile section begins ------- */
#profile{
    width: 100%;
    height: 650px;
    background-color:#F5F5F5; 
    padding: 7% 5% 0;
}
.profile-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/*hrere, you could also use margin to space about-me and resume*/
.about-me{
    flex-basis: 30%;
  }
  .smry{
    margin-top: 20px;
    margin-bottom: 5px;
  }
  .about-h3{
    margin-top: 35px;
    margin-bottom: 5px;
  }
  .ratings{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
  }
  .ratings .happy-clients, .winning-cases{
    width:130px;
    height: 130px;
    padding: 10px;
    background-color: #FAFAFA;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 50%;
  }
  .ratings .happy-clients:hover, .winning-cases:hover{
    background-color: #D6D6D8;
  }
 
  .eval{
    /* display: inline-block; */
    /* width: 70px; */
    /* margin-bottom: -30px; */
    margin-left: 25px;
    margin-right: auto;
    font-size: 40px;
    color: crimson;
  }
  .ratings .happy-clients p, .winning-cases p{
    margin-top: 20px;margin-left: 5px;
  }
.resume{display: block;
    /* background-color: bisque; */
    width: 500px;
    flex-basis: 65%;
    /* margin-top: -10%; */
}
.low-front{
position: absolute;
margin-top: 50px;
border:15px solid #FAFAFA;
border-color: rgba(250, 250, 250, 0.4);/*to make the border transparent*/
margin-left: 75px;
}
.low-back{
    float: right;
    margin-top: 20px;
    margin-right: 80px;
}

#services{
    width: 100%;
    height: 615px;
    background-color:#fff;
    padding: 7% 5% 0;
   margin-bottom: 10px; 
}
.section-header{
    display: block;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    font-size: 25px;
}
.services-container{
    display: flex;
    align-items: center;
   justify-content: space-between;
}
.services-imig{
    width: 300px;
    height: 300px;
    /* border: 1px solid crimson; */
    background-color: #F9F9FB;
    padding-left: 10px;
    padding-right: 10px;
    margin-right: 10px;
}
.ico{
    padding: 10px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    width: 110px;
    margin-top: 10px;
    background-color: #fff;
}
.ico:hover{
    background-color: #D6D6D8;
}
.ico img{
    margin-left: -5px;
    border-radius: 10px;
}
.services-imig h3{
    margin-bottom: 10px;
}
#contact{
    width: 100%;
    height: 650px;
    padding: 7% 5% 0;
    margin-bottom: 0;
    background-color: rgba(224, 241, 241, 0.904);
    flex-wrap: wrap;
}
.contact-container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* border: 1px solid black; */
    padding-left: 5px;
    padding-right: 5px;
    height: 500px;

}
.form-container{
    flex-basis: 45%;
    /* border: 1px solid green; */
    height: 400px;
    margin-top: 17px;
    flex-wrap: wrap;
    }
form{
    margin-top: 50px;
    margin-left: 20px;
    margin-right: 20px;
    flex-wrap: wrap;
}
form input{
    margin-bottom: 10px;
    height: 33px;
    padding: 5px;
    border-radius: 10px;
   /* background-color: #262626; */
   outline: none;
   border: 0;
}
form .input-name{
    width: 98%;
}
form .input-others{
    width: 48%;
}
.others2{
    margin-left: 7px;
}
textarea{
    /* background-color: #262626; */
    width: 98%;
    height: 150px;
    padding: 10px;
    outline: none;
    /* background-color: darkgray; */
    resize: none;
    border: 0;
    border-radius: 10px;
    overflow: hidden;/*to hide the scroll bar*/
}
.button{
    width: 120px;
    height: 40px;
    padding: 10px;
    margin: 10px auto;
    background: rgb(255, 255, 255); 
    border-radius: 10px;
    cursor: pointer;

}
.address-wrapper{
    height: 400px;
    flex-basis: 50%;
    margin-left: 10px;
    padding: 5px;
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
}

#map-9cd199b9cc5410cd3b1ad21cab2e54d3{
    width: 240px;
    height: 240px;
    margin-left: auto;
    margin-right: auto;
    /* border: 1px solid blue; */
    margin-top: 30px;
}
.addr{
    width: 250px;
   /* border: 1px solid black; */
   height: 350px;
   margin-left: 10px;
}
address{
    flex: 1;
    padding-left: 25px;
    padding-right: 25px;
    margin-top: 20px;

}
/* .add-hr{
    margin-top: 10px;
} */
.cont-add{
    width: 180px;
    /* border-bottom: 3px solid #000; */
    padding-bottom: 20px;
    font-size: 13px;
}
.soc-med{

    padding-left: 10px;
    padding-bottom: 20px;
    border: 1px solid aliceblue;
    margin: 30px 5px 5px 5px;
    font-size: 13px;
}
.soc-med h4{
    margin-top: 5px;
    margin-left: 40px;
    margin-bottom: 5px;
}
.soc-med table{
    margin-left: 5px;
    margin-top: 10px;
}
.soc-med tr{
    display: inline-block;
    margin: 10px;
}

.soc-med table tr td img{
    height: 25px;
    width: 25px;
    border-radius: 50%;
}
table.tel{
    display: inline-block;
     width: 200px;
    /* background-color: #ecc2c2; */
    margin-top: 10px;
    margin-left: 10px;
    margin-right: -10px;
    /* border: 1px solid green;  */
    /* margin-bottom: 10px; */
    padding-top: 0;
}
table.tel tr{
    margin-top: 0;
    margin-bottom: 0;
}
.tel td a{
    text-decoration: none;
}
.fab, .fa-tty, .fa-phone-alt{
    color: crimson;
    font-size: 20px;
}

footer{
    display:flex;
    align-items: center;
    justify-content: space-between;
    clear: both;
    width: 100%;
    height: 100px;
    padding: 10px;
    background: #000;
    color: #fff;
    text-align: center;
    font-size: small;
}
footer .left{
    margin-left: 100px;
}
footer .right{
    margin-right: 100px;
}
nav .fas{
    display: none;
    width: 20px;
    height: 20px;
    font-size: 30px;
   }
   
   .sp a{
    text-decoration: none;
   }
   /*-----------------------Success page-------------------------------*/
   .succ-main{
    width: 400px; height: auto;
     margin:150px auto; padding:10px; border: 1px solid green;
     box-shadow: 2px 0 2px;

   }
   .success{
    display: block;
    width: 60px;
    height: 60px;
    margin: 20px auto;
   }
 /*-----------------------Success page-------------------------------*/

/*media query*/
@media only screen and (max-width:600px){
    body{
        font-size: 10px;
        overflow-x: hidden; 
        /* margin-right: 0; */
    }
    #header{
        width: 100%;
    display: block;
    height: 500px;
    background-image: url('../img/D-law2.jpg');
    background-repeat: no-repeat;
    background-position: 50px 90px; 
    }
    .logo img{
        width:150px;
        height: 60px;
        margin-top: 15px;
    }
    .header-text{
        margin-left: 20px;
        margin-top: -5px;
    }
    .profile{
        margin-top: 80px;
        margin-left: 10px;
        font-size: 10px;
        font-weight:300;
        height: 30px;
        width: 110px;
        text-align: center;
        padding: 5px 10px;
    }
    .hero{
        width: 220px;
        margin-top: -50px;
        margin-left: 8px;
        padding: 10px;
    }

    .hero p{
        font-size: 12px;
        margin-top: 10px;
    }
    .pwrap{
        margin-top: 20px;

    }
    .container{
     width: 100%; 
        height: 250px;
    }
    .fa-bars{
        display: block;
        position: fixed;
        top: 5px;
        left: 5px;
        /* background-color: aqua; */
    }
    nav .fas{
        display: block;
        width: 20px;
        height: 20px;
        font-size: 25px;
        cursor: pointer;
    }
    nav ul {
        position: fixed;
        top: 0;
         left: -280px; 
        width: 260px;
        height: 100vh;
        background-color: #000;/*aqua;*/
        background-color:#18afaf;
        padding-top: 10px;
        overflow: hidden;
        z-index: 100;
        transition: 0.7s;
        padding: 5px;
       
    }
    nav ul li{
        display: block;
        margin: 20px;
        border-bottom: 1px solid #000;
    }
    nav ul li a{
        font-size: 14px;
        margin-left: 70px;
        margin-top: -20px;

    }
    nav ul .fas{
        position: absolute;
        top: 5px;
        left: 205px;
        cursor: pointer;
    }
    .hero h1{
        font-size: 20px;
        top: -100px;
    }
    nav ul .btn{
        margin-right: 77px;
        margin-top: 20px;
    }
    nav ul .ulLogo{
        display: block;
    }
    ul .ulLogo img{
        width: 170px;
        height: 30px;
        margin-left: 40px;
        margin-right: auto;
        margin-top: 340px;
    }
    ul .ulLogo .cprght{
        /* margin-left: 5px; */
        font-size: 11px;
    }
    .developer{
        margin-left: 45px;
        color: crimson;
        font-size: small;
    }
    .developer a{
        text-decoration: none;
        font-size: 12px;
        color: #fff;
        font-weight: 400;
    }
    .developer a:hover{
        background-color: #d28181;
        padding: 5px;
        color: #000;
        border-radius: 6px;
    }
    
    .jelili{
        margin-bottom: 12px;
    }
    /*Profile section*/
    #profile{
        width: 100%; 
        height: 630px;
        display: block;

    }
    .profile-container{
        display: block;
        font-size: 13px;
    }
    .ratings .happy-clients, .winning-cases{
        width:95px;
        height: 95px;
    }
    .ratings .happy-clients{
        margin-left: 60px;
    }
    .ratings .winning-cases{
        margin-right: 60px;
    }
    .eval{
        position: absolute;
        font-size: 25px;
        margin-left: 15px;
       margin-top: 40px;
    }
    .ratings p{
        font-size: 12px;
       
    }
    .happy-clients p, .winning-cases p{
        margin-left: 0;
    }
    .resume{
        width: 300px;
        margin-top: 20px;
        margin-top: 0;
    }
    .resume img{
        width: 195px;
        height: 221px;
    }
    .low-front{
        margin-left: 20px;
        margin-top: 50px;

    }
    .low-back{
        margin-right: -20px;
    }
    .section-header{
     
        margin-left: 80px;
        margin-right: auto;
        
        font-size: 18px; 
    }
    .services-container{
        display: block;
        height: 630px;
    }
    #services{
        position: relative;
        /* display: block; */
        width: 100%;
        height: 980px;
    }
    .services-container{
        width: auto;
        height: auto;
        margin-right: auto;
        margin-left: 70px;

    }
    .services-imig{
        width: 250px;
        height: 220px;
        padding-top: 5px;
        margin-bottom: 5px;
    }

    /* .services-imig{
        width: 300px;
        height: 300px;
       
        background-color: #F9F9FB;
        padding-left: 10px;
        padding-right: 10px;
        margin-right: 10px;
    } */
    .ico{
         width: 90px;
        height: 90px;
        margin-top: 10px;
        margin-right: auto;
        margin-left: auto; 
    }
    .ico img{
        width: 70px;
        height: 70px;
        margin-left: 0px;
    }
    .services-imig h3{
        margin: 10px auto 10px 75px;
        /* margin-bottom: 10px; */
    }
    /*------------------------Contact section-------------*/
    #contact{
        flex-wrap: wrap;
        display: block;
        width: 100%; 
        height: 850px;
        overflow: hidden;
    }
    #contact h2{
        margin-left: 10px;
    }
    .form-container{
        height: 230px;
    }
    .contact-container{
        display: block;
        height:750px;
        width: 300px;
        border: 1px solid black;
        margin-left: 40px;
    }
    form{
        margin-left: 45px;
        margin-right: 45px;
        margin-top: 30px;
    }
    form input{
        height: 15px;
        /* outline:dimgrey; */
        padding: 10px;
    }
    form .input-name{
        width: 100%;
        border-radius: 5px;
    }
    form .input-others{
        width: 100%;
        border-radius: 5px;
    }
     form .others2{
        margin-left: 0px;
    } 
    textarea{
        /* background-color:rgba(205, 211, 211, 0.5); */
        width: 100%;
        height: 60px;
        padding: 5px;
        resize: none;
        overflow-y:scroll;
    }
    .button{
        display: block;
        text-wrap: wrap;
        height: 20px;
        padding: 5px;
        width: 60%;
       
        margin-left: 0px;
        margin-right: 40px;
        line-height: 5px;
        }
    .address-wrapper{
        display: block;
        width: 250px; 
        flex-wrap: wrap;
        height: 510px;
        margin-left: 25px;
        margin-top: -30px;
        position: relative;
        outline: none;
        border-style: none;
        border: 1px solid rgb(235, 82, 214); 
    }
    setting{
        width: 200px;
        height: 200px;
    }
    #map-9cd199b9cc5410cd3b1ad21cab2e54d3{
        max-width: 220px;
        max-height: 200px;
        margin-left: 10px;
        margin-right: auto;
        margin-top: 10px;
        border: 1px solid rgb(235, 82, 214);  
        /* border: 1px solid aliceblue; */
    }
    .addr{
        border: 1px solid #ecc2c2;
        margin:20px auto 0;
        height: 255px;
        width: 230px;
    }
    .cont-add{
        width: 210px;
        margin-top: 20px;
        margin-left: -15px;
        padding-left: 5px;
        padding-bottom: 5px;
        border: 1px solid #a9a9a9; 
     }
     .soc-med{
        border: 1px solid #a9a9a9;  
        margin-left: 10px;
        height: 150px;
        width: 210px;

     }
    .soc-med h4{
        margin-left: 40px;
        margin-right: auto;
    }
    .soc-med ul{
        margin-left: 80px;
    }
    .soc-med table{
        width: 185px;
        margin-left: 5px;
        margin-top: 10px;
        /* border: 1px solid black; */
    }

    .soc-med table tr{
        display: inline-block;
        margin: 3px;
    }
  .soc-med table tr td img{
    height: 25px;
    width: 25px;
    border-radius: 60%;
  }
table.tel{
    margin-left: 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-top: 10px;
}
table.tel tr{
    margin-top: 0;
    margin-bottom: 0;
}

    footer{
        display: block;
        height: auto;
        width: 100%; 
        margin-top: 0px;
        font-size: 11px;
    }
    footer .left{
        margin-left: 0;
        margin-bottom: 10px;
    }
    footer .right{
        margin-right: 0;
    }
    /*-----------------------Success page-------------------------------*/
      .succ-main{
    width: 250px;
    height: 350px; 
   }
   .succ-main p{
    margin-top: 60px;
   }
  
 /*-----------------------Success page-------------------------------*/
}