:root {
  --company-red: #e93325;
  --white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Title */

.title__container__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
  align-content: center;
  flex-wrap: wrap;
  background-color: black;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/images/products/switchroom/switchroom_1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 45%;
  height: 31.5vh;
  text-align: center;
}

.title__container__main p {
  color: #fff;
  font-size: 1.8rem;
  /* font-weight: bold; */
  /* font-style: italic; */
  margin-top: 20px;
  z-index: 2;
  width: 87%;
  margin-bottom: 20px;
  text-shadow: 1px 1px 10px #000;
}

@media screen and (max-width: 1200px) {
  .title__container__main p {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .title__container__main p {
    font-size: 1.2rem;
  }
}

.title__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
  align-content: center;
  flex-wrap: wrap;
  /* background-color: rgb(255, 249, 242); */
  background-color: rgb(245, 245, 245);
  /* background-color: var(--company-red); */
  height: 50vh;
  text-align: center;
}

.title__container p {
  color: #000;
  /* color: var(--white); */
  font-size: 1.5rem;
  font-style: italic;
  margin-top: 20px;
  z-index: 2;
  width: 80%;
}

.title__container h1 {
  color: #000;
  /* color: var(--white); */
  font-size: 6rem;
  z-index: 2;
}

.navbar {
  background: #fff;
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999; /* BIG number just to ensure it's on top */
}
.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 50px;
}
#navbar__logo {
  display: flex;
  align-content: baseline;
  text-decoration: none;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 2rem;
  margin-top: 0.2rem;
}
#navbar__logo span {
  font-family: Arial;
  background-color: #000;
  background-size: 100%;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  display: inline-block;
  align-content: center;
}

#navbar__logo img {
  height: 3.3rem;
  object-fit: contain;
  display: block;
  align-content: flex-end;
}
.fa-gem {
  margin-right: 0.5rem;
}
.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 0.8rem;
  height: 100%;
}

.navbar__links.active {
  color: #e93325;
  font-weight: bold;
}
.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #000;
  color: #fff;
}
.button:hover {
  background: #e93325;
  color: #fff;
  transition: all 0.3s ease;
}
.navbar__links:hover {
  color: #e93325;
  transition: 0.3s ease;
}

/* Adding a media-query to make the website responsive for tablets and phones */
@media screen and (max-width: 960px) {
  .navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 2000px;
    padding: 0;
  }
  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.5s ease;
    height: 60vh;
    z-index: -1;
    background: #fff;
  }
  .navbar__menu.active {
    background: #fff;
    top: 100%;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: 60vh;
    font-size: 1.6rem;
  }
  #navbar__logo {
    padding-left: 25px;
  }
  .navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background: #000;
  }
  .navbar__item {
    width: 100%;
  }
  .navbar__links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }
  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }
  .navbar__btn {
    padding-bottom: 2rem;
  }
  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80px;
    margin: 0;
  }
  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
  }
  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* This is the CSS for the Landing Page area */
.main {
  background-color: #fff;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.main__container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 50px;
  left: 0%;
  right: 0%;
}

.main__content {
  position: relative; /* Changed from absolute */
  bottom: auto;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.7); /* Slight transparency */
  padding: 37px;
  color: white;
  z-index: 1;
  left: 0%;
  right: 0%;
  border-radius: 6px;
}

.main__btn {
  align-self: center;
}

.main__content h1 {
  font-size: 3.5rem;
  background-color: #e93325;
  background-image: linear-gradient(to top, #e93325 0%, #c40000 100%);
  background-size: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.main__content p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.main__btn {
  font-size: 1rem;
  background: #000;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  color: #fff;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  outline: none;
}

.main__btn a {
  position: relative;
  z-index: 2;
  color: #fff;
  text-decoration: none;
}

.main__btn:hover {
  background: #e93325;
}

.main__video--container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.main__video--container img {
  position: absolute;
  top: 35%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 1;
}

#main__video {
  position: absolute;
  top: 44.5%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 1;
}

/* Mobile Responsible aspect */

@media screen and (max-width: 768px) {
  .main__container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
    height: 90vh;
    padding: 0 20px;
  }

  .main__content {
    padding: 24px;
    width: 100%;
    margin-top: 2rem;
    border-radius: 10px;
  }

  .main__content h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .main__content p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }

  .main__btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    margin-top: 1.5rem;
  }

  .main__video--container {
    height: 100%; /* Ensure full coverage on mobile */
  }
}

@media screen and (max-width: 480px) {
  .main__content {
    padding: 16px;
    margin-top: 1.5rem;
  }

  .main__content h1 {
    font-size: 1.4rem;
  }

  .main__content p {
    font-size: 1rem;
  }

  .main__btn {
    padding: 10px 24px;
    font-size: 1rem;
    margin-top: 1.2rem;
    font-weight: bold;
  }
}

/* Service (Homepage) */

.services {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.services h1 {
  background-color: #e93325;
  background-image: linear-gradient(to right, #e93325 0%, #c40000 100%);
  background-size: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 4rem;
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.services__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.services__card {
  margin: 1rem;
  height: 480px;
  width: 400px;
  border-radius: 20px;
  background-size: cover;
  position: relative;
  text-shadow: 1px 1px 3px #000;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s ease;
}
.services__card:nth-child(1) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    url("assets/images/products/switchroom/switchroom_1.jpg");
  background-position: 45%;
}
.services__card:nth-child(2) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url("assets/images/products/data-center/data-center_1.jpg");
}
.services__card:nth-child(3) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url("assets/images/products/kiosk/kiosk_1.jpg");
  background-position: 80%;
}
.services__card:nth-child(4) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url("assets/images/products/Blast Resistant/3.jpg");
  background-position: 50%;
}
.services__card:nth-child(5) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url("assets/images/products/skids/skid_1.jpg");
  background-position: center center;
}
.services__card:nth-child(6) {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url("assets/images/products/Containerized/Picture1.jpg");
  background-position: 60%;
}
.services h2 {
  position: absolute;
  top: 330px;
  left: 30px;
  font-size: 1.5rem;
}
.services__card p {
  position: absolute;
  top: 360px;
  left: 30px;
}
.services__card button {
  color: #fff;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #e93325;
  position: absolute;
  top: 390px;
  left: 30px;
  font-size: 1rem;
  cursor: pointer;
}
.services__card a {
  position: relative;
  z-index: 2;
  color: #fff;
  text-decoration: none;
}
.services__card button:hover {
  background: #000;
  color: #fff;
  transition: all 0.3s ease;
}
.services__card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 51, 37, 0.55);
  transition: all 0.3s ease;
  cursor: pointer;
}

@media screen and (max-width: 960px) {
  .services {
    height: auto;
  }

  .services h1 {
    font-size: 3rem;
    margin-top: 1rem;
  }
}
@media screen and (max-width: 480px) {
  .services {
    height: auto;
  }

  .services h1 {
    font-size: 1.2rem;
  }
  .services__card {
    width: 300px;
  }
}

/* Customer Section CSS (use code from the above section) */

.customers {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.customers h1 {
  background-color: #e93325;
  background-image: linear-gradient(to right, #e93325 0%, #c40000 100%);
  background-size: 100%;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
  font-size: 4rem;
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.customers__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 2000px;
}

.customer__card {
  height: 200px;
  width: 230px;
  border-radius: 12px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.customer__card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 51, 37, 0.55);
}

.customer__card img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 960px) {
  .customers h1 {
    font-size: 3rem;
  }
}
@media screen and (max-width: 480px) {
  .customers h1 {
    font-size: 1.2rem;
  }
}

/* Footer CSS */

.footer__container {
  background-color: #f5f5f5;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#footer__logo {
  color: #000;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
  font-family: Arial;
}

.footer__links {
  width: 100%;
  max-width: 2000px;
  display: flex;
  justify-content: center;
}

.footer__link--wrapper {
  display: flex;
}

.footer__link--items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 50px;
  text-align: left;
  width: 200px;
  box-sizing: border-box;
}

.footer__link--items h2 {
  margin-bottom: 16px;
}

.footer__link--items > h2 {
  color: #000;
}

.footer__link--items a {
  color: #000;
  text-decoration: none;
  margin-bottom: 0.5rem;
  border-bottom-width: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer__link--items a:hover {
  border-bottom: 1px solid #e93325;
  color: #e93325;
  transform: all 0.2 s ease;
}

/* Bottom part of the footer */
.social__media {
  max-width: 2000px;
  width: 100%;
}

.social__media--wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 0 auto;
}

.footer__logo {
  color: #000;
  justify-self: flex-start;
  margin-left: 20px;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer__logo a {
  font-weight: bold;
  align-content: baseline;
}

.footer__logo img {
  display: flex;
  align-content: baseline;
  text-decoration: none;
  gap: 1rem;
  cursor: pointer;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.website__rights {
  color: #000;
}

@media screen and (max-width: 820px) {
  .footer__links {
    padding-top: 2rem;
  }

  #footer__logo {
    margin-bottom: 2rem;
  }

  .footer__logo img {
    margin-bottom: 1.3rem;
  }

  .website__rights {
    margin-bottom: 2rem;
  }

  .footer__link--wrapper {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .footer__link--items {
    margin: 0;
    padding: 10px;
    width: 100%;
  }
}

/* Customer Map */

.map__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 2000px;
}

.map__container img {
  width: 80%;
  height: auto;
  border-radius: 12px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.map__container img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(233, 51, 37, 0.55);
}

@media screen and (max-width: 480px) {
  .title__container__main p {
    font-size: 1rem;
    width: 90%;
    word-wrap: break-word;
    line-height: 1.4;
  }
}

@media screen and (max-width: 480px) {
  .title__container__main {
    background-size: 150% auto; /* Zoom out image horizontally */
    background-position: center center;
    height: auto; /* Let it grow with content instead of fixed height */
    padding: 1.5rem 0;
  }

  .title__container__main p {
    font-size: 1rem;
    width: 90%;
    word-wrap: break-word;
    line-height: 1.4;
  }
}
