* {
  padding: 0px;
  margin: 0px;
  font-family: "Baloo Bhai", cursive;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: #f4f5e7;
    z-index: -1;
}
#navbar {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0px;
}
#navbar::before {
  content: "";
  background-color: black;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: -1;
  opacity: 0.5;
}
#logo {
  margin: 12px 35px;
}

#logo img {
  height: 55px;
  margin: 2px 6px;
  filter: invert(100%);
}
#navbar ul {
  display: flex;
}

#navbar ul li {
  font-size: 1.4rem;
  list-style: none;
}
#navbar ul li a {
  color: white;
  text-decoration: none;
  display: block;
  border-radius: 20px;
  padding: 3px 20px;
}
#navbar ul li a:hover {
  color: black;
  background-color: white;
}

#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3px 200px;
  height: 500px;
}
#home::before {
  content: "";
  position: absolute;
  background: url("images/bg1.jpg") no-repeat center center/cover;
  height: 600px;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: -1;
  opacity: 0.75;
}
#home h1 {
  color: white;
  text-align: center;
  font-size: 3.5rem;
  padding: 12px;
}
#home p {
  color: white;
  text-align: center;
  font-size: 1.4rem;
}
.btn {
  padding: 6px 25px;
  border: 2px solid white;
  background-color: brown;
  color: white;
  margin: 15px;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}
.btn:hover {
  background-color: red;
}
#services {
  display: flex;
  margin: 30px;
  text-align: center;
}
.heading {
  text-align: center;
  margin: 22px;
  padding-top: 12px;
  font-size: 2.5rem;
}

#services .box {
  border: 2px solid brown;
  padding: 30px;
  margin: 2px 25px;
  border-radius: 30px;
  background: #f2f2f2;
}
#services .box img {
  height: 120px;
  margin: auto;
  display: block;
  border-radius: 80px;
}
#contact {
  position: relative;
  height: 800px;
}
#contact::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 800px;
  z-index: -1;
  opacity: 0.6;
  background: url("images/bg3.jpg") no-repeat center center/cover;
}
#contact-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 34px;
}
#contact-box input,
#contact-box textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  font-size: 1.1rem;
}

#contact-box form {
  width: 35%;
}

#contact-box label {
  font-size: 1.3rem;
}
footer{
    background: black;
    color: white;
    padding: 9px 20px;
    text-align: center;
}
@media(max-width: 1170px){
    #navbar{
        flex-direction: column;
    }
    #navbar ul li a{
        font-size: 1rem;
        padding: 0px 8px;
        padding-bottom: 8px;
    }
    #home{
        height: 370px; 
        padding: 3px 28px;
    }
    
    #home::before{
        height: 480px; 
    }
    #home p{
        font-size: 13px;
    }
    #home h1{
        font-size: 35px;
    }
    #services{
        flex-direction: column;
    }
    #services .box { 
        padding: 14px;
        margin: 2px 0px; 
        margin-bottom: 20px;
    }
    #contact-box form{
        width:80%;
    }
    .btn{
        font-size: 21px;
        padding: 4px 8px;
    }
    footer{
        padding: 9px 25px;
        font-size: 13px;
    }
}