*,
::after,
::before {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

body {
  background-color: black;
}

.container-main {
  height: 70vh;
  width: 100%;
  display: flex;
  justify-content: center;
  background: url(../img/products/repair-2.jpeg);
  background-position: top;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.566);
  background-blend-mode: multiply;
}

.sub-container {
  margin-top: 100px;
  height: 100%;
  width: 100%;
  color: white;
  text-align: center;
}

.sub-container h1 {
  font-size: 60px;
  margin-bottom: 30px;
}

.sub-container p {
  font-size: 25px;
}

@media (max-width: 1081px) {
  .container-main {
    height: 80vh;
  }
}

@media (max-width: 811px) {
  .sub-container {
    width: 70vw;
  }
}

@media (max-width: 450px) {
  .container-main {
    height: 80vh;
  }

  .sub-container h1 {
    font-size: 36px;
  }

  .sub-container p {
    font-size: 18px;
    margin: 50px 0px;
  }
}

@media (max-width: 326px) {
  .container-main {
    height: 100vh;
  }

  .sub-container h1 {
    font-size: 27px;
  }

  .sub-container p {
    font-size: 15px;
  }
}

/* css after second-container */
.main {
  height: 65vh;
  width: 100vw;
  margin-top: 100px;
  overflow: hidden;
}

.second-main {
  height: 70vh;
}

.sub {
  padding: 90px;
  background-color: rgb(12, 12, 12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.txt {
  width: 40vw;
  color: white;
}

.txt h3 {
  font-weight: 600;
  font-size: 35px;
}

.txt p {
  font-weight: 600;
  font-size: 18px;
  text-align: justify;
}

.image img {
  width: 40vw;
  box-shadow: 2px 5px 5px 4px rgba(14, 18, 36, 0.32);
}

.sixth-main {
  margin-top: 200px;
}

@media (max-width: 1181px) {
  .sub {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .txt {
    width: 80vw;
    order: 2;
    margin-top: 20px;
  }

  .image img {
    height: 60vh;
    width: 80vw;
    order: 1;
    margin-bottom: 20px;
  }

  .main {
    padding: 50px 0px;
    height: 120vh;
  }

  .txt h3 {
    text-align: center;
    padding-bottom: 10px;
  }

  .second-sub-container,
  .third-sub-container,
  .fourth-sub-container,
  .fifth-sub-container {
    padding: 30px 0px;
    background-color: rgb(12, 12, 12);
  }
}

@media (max-width: 811px) {
  .main {
    padding: 50px 0px;
    height: 95vh;
  }

  .image img {
    height: 38vh;
  }

  .second-sub-container {
    height: 95vh;
  }

  .third-sub-container {
    height: 85vh;
  }

  .fourth-sub-container {
    height: 90vh;
  }

  .fifth-sub-container {
    height: 80vh;
  }
}

@media (max-width: 450px) {
  .main {
    height: 100%;
    margin-top: 50px;
  }

  .image img{
    height: 25vh;
    width: 90vw;
  }

  .txt h3 {
    margin: 30px 0px;
    font-size: 25px;
  }

  .second-sub-container {
    height: 100%;
    padding: 50px 0px;
  }

  .third-sub-container {
    height: 100%;
    padding: 50px 0px;
  }

  .fourth-sub-container {
    height: 100%;
    padding: 50px 0px;
  }

  .fifth-sub-container {
    height: 100%;
    padding: 50px 0px;
  }
}



@media (max-width: 376px) {
  
  .image img{
    height: 30vh;
    width: 90vw;
  }

  .txt h3 {
    margin: 30px 0px;
    font-size: 28px;
  }

  .txt p {
    text-align: center;
    font-size: 16px;
  }
  
}

/* sixth container css */

.sixth-sub-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.sub-container-item img {
  width: 100%;
  height: 45vh;
  display: block;
  width: 40vw;
  background-position: center;
  filter: brightness(75%);
}

.sub-container-item img:hover {
  filter: brightness(50%);
}
.sub-container-item {
  display: inline-block;
  position: relative;
  margin: 2px;
}

.sub-container-item h2 {
  position: absolute;
  z-index: 99;
  top: 50%;
  left: 27%;
  color: white;
}

.btn-container {
  display: flex;
  justify-content: center;
  padding: 50px 0px 100px;
}

.btn-container .home-page-button {
  background-color: rgb(0, 174, 255);
}

.btn-container .home-page-button a {
  color: white;
}

.btn-container .home-page-button:hover {
  background-color: rgb(0, 110, 255);
}

.item-2 h2 {
  left: 16%;
}

.item-3 h2 {
  left: 23%;
}

.item-4 h2 {
  left: 35%;
}

@media (max-width: 1181px) {
  .item-1 h2 {
    left: 20%;
  }

  .item-2 h2 {
    left: 10%;
  }

  .item-3 h2 {
    left: 11%;
  }

  .item-4 h2 {
    left: 30%;
  }

  .sub-container-item img {
    height: 40vh;
  }

  .sub-container-item h2 {
    top: 45%;
  }
}

@media (max-width: 811px) {
  .sixth-main {
    padding: 30px;
  }

  .sub-container-item img {
    height: 20vh;
  }

  .item-1 h2 {
    left: 8%;
  }

  .item-2 h2 {
    left: 3%;
  }

  .item-3 h2 {
    left: 4%;
  }

  .item-4 h2 {
    left: 30%;
  }
}

@media (max-width: 450px) {
  .sixth-sub-container {
    display: block;
  }

  .sub-container-item img {
    width: 90vw;
    height: 25vh;
  }

  .sixth-sub-container h2 {
    font-size: 20px;
  }

  .item-1 h2 {
    left: 15%;
  }

  .item-2 h2 {
    left: 8%;
  }

  .item-3 h2 {
    left: 12%;
  }

  .item-4 h2 {
    left: 30%;
  }
}
