*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  scroll-behavior: smooth;
}

*:focus {
  outline: none;
}

html {
  font-size: 50%;
  scrollbar-width: normal;
  scrollbar-color: green;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: none;
  max-width: 100vw;
  -youbkit-touch-callout: none;
  -youbkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Anek Odia", sans-serif;
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding-top: 3rem;
  align-items: center;
  font-weight: 800;
}

.nav_1 {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding-top: 5rem;
  align-items: center;
  font-weight: 800;
}

.nav_links {
  position: relative;
}

.nav_contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  font-size: 1.7rem;
  color: black;
}

.nav_contact div i {
  font-size: 4rem;
  font-weight: 800;
}

.nav_contact .phone {
  margin-left: -3rem;
  text-align: center;
}

.nav i {
  margin-left: 2rem;
  font-size: 2.5rem;
  color: black;
}

.nav i:hover {
  color: rgb(70, 70, 70);
}

.nav img {
  height: 8rem;
}

.nav_1 a {
  margin-left: 5rem;
  font-size: 2rem;
  text-decoration: none;
  color: black;

  transition: all 0.3s ease;
  cursor: pointer;
}

.nav_1 a:hover {
  color: rgb(70, 70, 70);
}
.section_1 {
  height: 25rem;
  width: 100vw;
  z-index: -1;
}

.service_drop {
  position: absolute;
  top: 3rem;
  left: 57%;
  width: 30rem;
  background-color: #d1d1d1;
  color: black;
  z-index: 1;
  display: none;
  opacity: 0;
  transition: all 0.8s ease-in-out;
}

.service_drop p {
  margin-left: -4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  color: black;
}

.service_drop a:hover {
  color: rgb(61, 61, 61);
}

.service_class:hover + .service_drop {
  display: block;
  opacity: 1;
}

.service_drop:hover {
  display: block;
  opacity: 1;
}

.gallery_drop {
  position: absolute;
  top: 3rem;
  left: 30%;
  width: 26rem;
  background-color: #d1d1d1;
  color: black;
  z-index: 1;
  display: none;
  opacity: 0;
  transition: all 0.8s ease-in-out;
}

.gallery_drop p {
  margin-left: -4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  color: black;
}

.gallery_drop a:hover {
  color: rgb(61, 61, 61);
}

.gallery_class:hover + .gallery_drop {
  display: block;
  opacity: 1;
}

.gallery_drop:hover {
  display: block;
  opacity: 1;
}

.head_section {
  width: 100vw;
  height: 50vh;
  z-index: -1;
  background-image: url("../assets/injectionmoulding.jpeg");
  filter: grayscale(50%);
  background-size: cover;
  background-position: center;
}
.head_section h1 {
  position: absolute;
  font-size: 5rem;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  background-color: rgba(2, 2, 2, 0.549);
  padding: 2rem 4rem;
  border-radius: 4px;
  box-shadow: 0px 2px 4px black;
}

.section_2 h4 {
  margin-top: 10rem;
  font-weight: 600;
  font-size: 4rem;
  color: black;
  text-align: center;
  width: 85vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.section_2 p {
  margin-top: 5rem;
  font-size: 3rem;
  color: black;
  text-align: center;
  width: 90vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.moulding_content {
  width: 75vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 10rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-items: center;
  align-content: center;
  text-align: center;
  row-gap: 5rem;
  margin-bottom: 5rem;
}

.sub_headings img {
  height: 20rem;
  width: 20rem;
  border-radius: 50%;
  background-size: cover;
}

.sub_headings h6 {
  margin-top: 2rem;
  font-size: 3rem;
  font-weight: 600;
}

/* menu ////////////////////////////////////////////// */

.menu_btn {
  display: none;
  font-size: 5rem;
  z-index: 9999999;
  color: black;
}

.menu_options {
  position: absolute;
  padding: 3rem 5rem;
  right: 5rem;
  top: 10rem;
  background-color: rgb(53 53 53 / 58%);
  color: black;
  z-index: 999;
  display: flex;
  justify-content: space-around;
  width: 60vw;
  flex-direction: column;
  gap: 3rem;
}

.menu_options a {
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  padding: 2rem 3rem;
  border-radius: 5px;
  background-color: #c9c9c9;
  color: black;
  font-size: 2rem;
  font-weight: 800;
  font-family: inherit;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.467);
  backdrop-filter: blur(5px);
  z-index: 99;
}

/* media query ///////////////////////////////////////////////// */

@media only screen and (max-width: 1200px) {
  .moulding_content {
    width: 90vw;
  }
  .head_section {
    background-position-x: center;
  }
}

@media only screen and (max-width: 950px) {
  html {
    font-size: 45%;
  }
  .moulding_content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (max-width: 730px) {
  html {
    font-size: 40%;
  }
}

@media only screen and (max-width: 650px) {
  html {
    font-size: 35%;
  }
}

@media only screen and (max-width: 570px) {
  html {
    font-size: 32%;
  }
}

@media only screen and (max-width: 440px) {
  html {
    font-size: 33%;
  }
  .nav_contact,
  .nav_1,
  .social {
    display: none;
  }
  .menu_btn {
    display: block;
  }
  .nav {
    justify-content: space-between;
    padding: 3rem 5rem;
  }
  .nav:nth-child(1) {
    order: 2;
  }
  .moulding_content {
    grid-template-columns: 1fr 1fr;
  }
        .head_section {
          margin-top: -8rem;
        }
}

@media only screen and (max-width: 400px) {
  html {
    font-size: 30%;
  }
}
