.index-main {
  width: 100%;
  height: calc(100vh - 100px);
  background-color: #1a253a;
  margin-top: 50px;
  background-image: url(img/created/compressed_img/web_banner_thumbnail_2.jpg);
  background-size: 70vh cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.main-banner-video {
  object-fit: cover;
}

.main-banner-video video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  vertical-align: middle;
}

video {
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: inherit;
  width: 100%;
  z-index: 0;
  overflow-clip-margin: content-box;
  overflow: clip;
}

main .main-intro h1 {
  font-size: 7rem;
  line-height: 1.1;
}

main p {
  font-size: 5rem;
  line-height: 1.75;
  max-width: 700px;
}

main a {
  margin-top: 30px;
  font-size: 2.5rem;
  display: block;
  background-color: var(--site-color-01);
  padding: 10px 20px;
  width: fit-content;
  border-radius: 10px;
}

main a:hover {
  background-color: var(--site-color-01-hover);
  transition: ease-in-out 10ms;
}

.main-intro {
  justify-content: center;
  align-items: center;
  text-align: center;
  display: none;
}

.main-intro img {
  width: 1px;
}

/*CATEGORY SECTION*/

.index-category {
  width: 100%;
  padding: 60px 0;
  background-color: #fff;
  display: flex;
  justify-content: center;
  column-gap: 50px;
  flex-wrap: wrap;
}

.index-category p {
  color: #000;
  text-align: center;
  padding-bottom: 40px;
  flex-basis: 100%;
  text-transform: uppercase;
  font-size: 2.2rem;
}

.index-category-box {
  width: 20rem;
  height: 20rem;
  background-color: #111;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 20px;
}

.index-category-box:nth-child(2) {
  background-image: url(/img/created/compressed_img/truck_mount_img.jpg);
  background-position: left;
}

.index-category-box:nth-child(3) {
  background-image: url(/img/created/chiplock-btn.png);
}

.index-category-box:nth-child(4) {
  background-image: url(/img/created/compressed_img/flagger_me.jpg);
  background-position: center;
}

.index-category-box:nth-child(5) {
  background-image: url(/img/created/compressed_img/culdesac2.3.jpg);
  background-position: center;
  /*
  background-image: url(../img/PatentsSM.png);
  */
}

.dark-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000;
  opacity: 0.5;
  transition: all ease-in-out 150ms;
  border-radius: 20px;
}

.index-category-box:hover .dark-overlay {
  opacity: 0;
}

.index-category-box h3 {
  font-size: 2.2rem;
  line-height: 1.5;
  text-align: center;
  text-shadow: -2px 2px 4px #000;
  z-index: 100;
}

/*About Section*/

.index-about {
  width: 100%;
  padding: 85px 0;
  background-color: #242424;
}

.index-about-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 60px;
}

.index-about-img img {
  width: 300px;
  border-radius: 20px;
}

.index-about-text {
  flex-basis: 455px;
}

.index-about-text p {
  padding: 20px 0;
}

.index-about-text a {
  font-size: 1.8rem;
  display: block;
  background-color: var(--site-color-01);
  padding: 10px 20px;
  width: fit-content;
  border-radius: 10px;
}

.index-about-text a:hover {
  background-color: var(--site-color-01-hover);
  transition: ease-in-out 15ms;
}

/* video aspect ratio for responsiveness */

/* Styles for devices with an aspect ratio of 16:9 or wider */
@media (min-aspect-ratio: 16/9) {
  /* Add your styles here */
}

/* Styles for devices with an aspect ratio of 4:3 or narrower */
@media (max-aspect-ratio: 4/3) {
  /* Add your styles here */
}

/* MOBILE VERSION */

@media only screen and (max-width: 600px) {
  main {
    display: block;
    align-items: flex-end;
    background-size: 70vh;
    overflow: hidden;
  }

  main .main-intro {
    padding: 12vh;
    text-shadow: -2px 2px 4px #000;
    background-color: #00000066;
    background-size: 70vh;
  }

  main .main-intro h1 {
    font-size: 4rem;
    line-height: 1.1;
    text-align: center;
  }

  main p {
    text-align: center;
    padding: 0 20px;
    font-size: 2.5rem;
    line-height: 1.25;
  }

  main a {
    margin: 30px auto;
    background-color: var(--site-color-01);
    font-size: 2.1rem;
  }

  .main-intro img {
    height: 25vh;
    width: 25vh;
    border-radius: 20px;
  }

  .main-banner-video {
    display: none;
  }

  .index-category {
    padding: 40px 0 20px;
    row-gap: 10px;
  }

  .index-category p {
    padding-bottom: 20px;
  }

  .index-category-box {
    width: calc(100% - 20px);
    height: 160px;
  }

  .index-category-box:nth-child(2) {
    background-image: url(/img/created/compressed_img/m1_other_user.jpg);
  }

  .index-category-box:nth-child(3) {
    background-image: url(/img/chiplock/chiplock.jpg);
    background-position: top;
  }

  .index-category-box:nth-child(4) {
    background-image: url(/img/created/compressed_img/flagger_me.jpg);
  }

  .index-category-box:nth-child(5) {
    background-image: url(/img/created/compressed_img/culdesac2.3.jpg);
  }

  .index-about-flex {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .index-about-img {
    width: 60%;
  }

  .index-about-img img {
    width: 100%;
  }

  .main-intro {
    display: block;
  }

  .index-about-text {
    flex-basis: 100%;
  }

  .index-about-text h2 {
    text-align: center;
  }

  .index-about-text p {
    text-align: center;
  }

  .index-about-text a {
    margin: 0 auto 10px;
  }
}

/* 601px */

@media only screen and (max-width: 601px) {
  main {
    display: block;
    align-items: flex-end;
    background-size: 70vh;
    overflow: hidden;
  }

  main .main-intro {
    padding: 12vh;
    text-shadow: -2px 2px 4px #000;
    background-color: rgba(0, 0, 0, 0.4);
    background-size: 70vh;
  }

  main .main-intro h1 {
    font-size: 4rem;
    line-height: 1.1;
    text-align: center;
  }

  main p {
    text-align: center;
    padding: 0 20px;
    font-size: 2.5rem;
    line-height: 1.25;
  }

  main a {
    margin: 30px auto;
    background-color: var(--site-color-01);
    font-size: 2.1 rem;
  }

  .main-intro img {
    height: 25vh;
    width: 25vh;
    border-radius: 20px;
  }

  .main-intro {
    display: block;
  }

  .main-banner-video {
    display: none;
  }

  .index-category {
    padding: 40px 0 20px;
    row-gap: 10px;
  }

  .index-category p {
    padding-bottom: 20px;
  }

  .index-category-box {
    width: calc(100% - 20px);
    height: 160px;
  }

  .index-category-box:nth-child(2) {
    background-image: url(/img/created/compressed_img/m1_other_user.jpg);
  }

  .index-category-box:nth-child(3) {
    background-image: url(/img/chiplock/chiplock.jpg);
  }

  .index-category-box:nth-child(4) {
    background-image: url(/img/created/compressed_img/flagger_me.jpg);
  }

  .index-category-box:nth-child(5) {
    background-image: url(/img/created/compressed_img/culdesac2.3.jpg);
  }

  .index-about-flex {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .index-about-img {
    width: 60%;
  }

  .index-about-img img {
    width: 100%;
  }

  .index-about-text {
    flex-basis: 100%;
  }

  .index-about-text h2 {
    text-align: center;
  }

  .index-about-text p {
    text-align: center;
  }

  .index-about-text a {
    margin: 0 auto 10px;
  }
}

/* 768px */

@media only screen and (max-width: 768px) {
  main {
    display: block;
    align-items: flex-end;
    background-size: 70vh;
    overflow: hidden;
  }

  main .main-intro {
    padding: 12vh;
    text-shadow: -2px 2px 4px #000;
    background-color: #00000066;
    background-size: 70vh;
  }

  main .main-intro h1 {
    font-size: 4rem;
    line-height: 1.1;
    text-align: center;
  }

  main p {
    text-align: center;
    padding: 0 20px;
    font-size: 2.5rem;
    line-height: 1.25;
  }

  main a {
    margin: 30px auto;
    background-color: var(--site-color-01);
    font-size: 2.1 rem;
  }

  .main-intro img {
    height: 25vh;
    width: 25vh;
    border-radius: 20px;
  }

  .main-intro {
    display: block;
  }

  .main-banner-video {
    display: none;
  }

  /* 992px */

  @media only screen and (max-width: 992px) {
    main {
      display: block;
      align-items: flex-end;
      background-size: 70vh;
      overflow: hidden;
    }

    main .main-intro {
      padding: 12vh;
      text-shadow: -2px 2px 4px #000;
      background-color: rgba(0, 0, 0, 0.4);
      background-size: 70vh;
    }

    main .main-intro h1 {
      font-size: 4rem;
      line-height: 1.1;
      text-align: center;
    }

    main p {
      text-align: center;
      padding: 0 20px;
      font-size: 2.5rem;
      line-height: 1.25;
    }

    main a {
      margin: 30px auto;
      background-color: var(--site-color-01);
      font-size: 2.1 rem;
    }

    .index-main {
      height: auto;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }

    .main-intro img {
      height: 25vh;
      width: 25vh;
      border-radius: 20px;
    }

    .main-intro {
      display: block;
      width: 100%;
    }

    .main-banner-video {
      display: none;
    }

    .index-about-img {
      border-radius: 4px;
      display: flex;
      overflow: hidden;
      position: relative;
    }
  }
}
