* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  font-size: 62.5%;
}

/* Hamburger Menu */
.hamburger-menu {
  width: 5rem;
  height: 5rem;
  position: fixed;
  top: 5rem;
  right: 10rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  cursor: pointer;
  transition: right 0.7s;
}

.change .hamburger-menu {
  right: 33rem;
}

.line {
  width: 100%;
  height: 0.2rem;
  background-color: #fff;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.2);
}

.hamburger-menu-close {
  position: absolute;
  left: 1rem;
  width: 10rem;
  height: 4rem;
  background-color: #e2b646;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: "Baloo Da 2", serif;
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  opacity: 0;
  visibility: visible;
  transition: all 0.2s;
}

.change .hamburger-menu:hover span {
  opacity: 1;
  visibility: visible;
}

.hamburger-menu span::before {
  content: "";
  position: absolute;
  border-left: 1rem solid transparent;
  border-right: 1rem solid #e2b646;
  border-bottom: 1rem solid transparent;
  border-top: 1rem solid transparent;
  top: 50%;
  left: -2rem;
  transform: translateY(-50%);
}

/* Banner */

.banner {
  position: absolute;
  top: 30%;
  left: 15%;
  z-index: 1;
}

.banner h1 {
  font-family: "Baloo Da 2", serif;
  font-size: 8rem;
  font-weight: 300;
  color: #fff;
  width: 50%;
  line-height: 9rem;
  letter-spacing: 0.2rem;
  text-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: moveBanner 1s 0.5s forwards;
}

.banner p {
  font-family: "Aleo", serif;
  font-size: 4rem;
  color: #fff;
  width: 70%;
  letter-spacing: 0.1rem;

  text-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: moveBanner 1s 0.7s forwards;
}

.banner button {
  width: fit-content;
  height: fit-content;
  white-space: nowrap;
  padding: 2rem 2rem;
  background-color: #c29525;
  border: none;
  border-radius: 10px;
  margin-top: 1.5rem;
  font-family: "Muli", serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 1;
  animation: moveBanner 1s 0.9s forwards;
  transition: all 0.2s;
  position: relative;
}
.banner button:hover {
  background-color: #e2b646;
  transform: translateY(-5px) !important;
  transition: transform 1.3s ease-out !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}
.banner button:hover::after {
  transform: translateY(2rem) scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.banner button:active,
.banner button:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.banner button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: all 0.4s;
  z-index: -1;
}
@keyframes moveBanner {
  0% {
    opacity: 1;
    transform: translateY(40rem) rotateY(-20deg);
  }
  100% {
    transform: translateY(0) rotateY(0);
    opacity: 1;
  }
}
@keyframes moveUpDown {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(0);
  }
}

.img-wrapper {
  width: 100%;
  height: 100%;
  background-color: rgba(247, 240, 240, 0.8);
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.3;
  animation: scale 25s;
}

@keyframes scale {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Sidebar */

.sidebar {
  width: 40rem;
  height: 100vh;
  position: fixed;
  top: 0;
  right: -40rem;
  background-color: #fff;
  transition: right 1.5s;
  z-index: 100;
}

.change .sidebar {
  right: 0rem;
}

/* icon bar disappear */
.bar-disappear {
  display: none;
}

.fa-2xl {
  font-size: 4em;
  line-height: 0.03125em;
}

/* Menu */
.menu {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-item {
  text-align: center;
}

.menu-link {
  font-family: "Baloo Da 2", serif;
  font-size: 4rem;
  color: #555;
  position: relative;
}

.menu-link::before {
  content: attr(data-content);
  position: absolute;
  top: 2px;
  left: 0;
  color: #c29525;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.3s ease-in-out;
}

.menu-link:hover::before {
  width: 100%;
}

/* Social Media in Menu */

.social-media {
  position: absolute;
  bottom: 4rem;
  width: 100%;
  display: flex;
  justify-content: center;
  flex: 1;
}
.social-media a {
  margin-right: 3rem;
}
/* about us section */

.about-us {
  width: 100%;
  background-color: #f5f5f5;
  padding-bottom: 15rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem 0 10rem 0;
}

.section-heading {
  font-family: "Muli", serif;
  font-size: 5rem;
  font-weight: 300;
  color: #4b4b4b;
  margin-bottom: 1rem;
}

.underline {
  width: 26rem;
  height: 0.3rem;
  background-color: #c29525;
}

.services {
  font-family: "Aleo";
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(6, 6rem);
  grid-row-gap: 4rem;
}

.service {
  width: 100%;
  margin-bottom: 2rem;
}

.service:nth-child(1) {
  grid-column: 3 / 6;
  grid-row: 1 / 2;
}

.service:nth-child(2) {
  grid-column: 3 / 6;
  grid-row: 4 / 5;
}

.service:nth-child(3) {
  grid-column: 12 / 15;
  grid-row: 4 / -1;
}

.service:nth-child(4) {
  grid-column: 12 / 15;
  grid-row: 1 / 3;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-header h3 {
  font-family: "Baloo Da 2", serif;
  font-size: 2.6rem;
  line-height: 2.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #17181b;
}

.service-text {
  white-space: pre-wrap;
  font-family: "Aleo", serif;
  font-size: 2rem;
  text-align: justify;
  color: #17181b;
}

.about-us-img-wrapper {
  grid-column: 7 / 11;
  grid-row: 2 / 6;
  width: 100%;
}

.about-us-img-wrapper img {
  object-fit: cover;
  padding: 5px 5px;
  background-color: rgb(230, 227, 226);
  box-shadow: 10px 10px 5px lightslategray;

  border-radius: 20px;
  filter: opacity(0.8);
}
/* infoline */
.infolist {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  list-style: none;
  justify-content: space-around;
  width: 100%;
  height: 30vh;
  margin-bottom: 5rem;
}

.infolist__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  text-align: center;
}

.infolist__item span {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: #000;
}

.infoline__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 7rem;
  font-size: 5rem;
  font-family: "Muli", serif;
  font-weight: 300;
  color: #4b4b4b;
}
/* Section description */

.section-description {
  /* This gives double spaces to Strapi editor */
  white-space: pre-wrap;
  margin: 0 auto;
  margin-top: 3rem;
  width: 60%;
  font-size: 2rem;
  text-align: center;
  line-break: normal;
}

/* The end of About Us section */

/* team section */
.team {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 0;
  background-color: #eee;
}

.cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  row-gap: 10rem;
  margin-bottom: 10rem;
}
.photo-grid > * {
  width: 100%;
  height: auto;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40rem;
  height: 40rem;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  position: relative;
  margin: 10px !important; /* Override inline styles */
  background: rgb(255, 255, 255) !important; /* Override inline styles */
  color: rgb(54, 73, 98) !important; /* Override inline styles */
  font-size: 16px !important; /* Override inline styles */
  line-height: 1.6 !important; /* Override inline styles */
  box-shadow: rgba(20, 26, 40, 0.2) 0px 7px 42px !important; /* Override inline styles */
  transform: none !important; /* Override inline styles */
}

.card-img-wrapper {
  width: 100% !important;
  height: 100% !important;
  background-color: #262626;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0.8;
  border-radius: 0.5rem;
  transition: opacity 0.3s;
}

.card:hover .card-img-wrapper img {
  opacity: 0.5;
}

.card-info {
  position: absolute;
  bottom: 0;
  padding: 2rem;
  text-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.card:hover .card-info {
  bottom: 2rem;
  opacity: 1;
  visibility: visible;
}

.card-info h2 {
  font-family: "Baloo Da 2", serif;
  font-size: 2.5rem;
  line-height: 2.5rem;
  font-weight: 300;
  color: #eee;
}

.card-info h3 {
  font-family: "Muli", serif;
  font-size: 2rem;
  font-weight: 500;
  color: #a52a2a;
  margin-bottom: 1rem;
}

.card-info p {
  font-family: "Baloo Da 2", serif;
  font-size: 1.4rem;
  line-height: 1.6rem;
  font-weight: 300;
  color: #eee;
  width: 80%;
  margin-bottom: 2rem;
}

.card-info button {
  width: 50%;
  height: 8%;
  background-color: black;
  border: none;
  font-family: "Baloo Da 2", serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0.1rem 0.8rem rgba(0, 0, 0, 0.4);
}
.align-center {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* The end of the team section */

/* contact section */

.contact {
  width: 100%;
  height: 100hv; /*adjust the height of the contact section */
  background-color: #272727;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0; /*add padding to the contact section */
}

.contact-heading {
  font-family: "Baloo Da 2", serif;
  font-size: 6rem;
  font-weight: 300;
  color: #272727;
  margin-bottom: 5rem;
  text-align: center;
}

/* contact section */

/* footer */

.footer {
  width: 100%;
  height: 15rem;
  background-color: #17181b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  width: 60%;
  display: flex;
  justify-content: space-between;
}

.copyright {
  font-family: "Baloo Da 2", serif;
  font-size: 1.6rem;
  color: #a7a7a7;
}

.social-list a {
  margin: 0 2rem;
}

.social-list i {
  font-size: 2rem;
  color: #a7a7a7;
}

.popup {
  background-color: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;

  z-index: 1000;
  opacity: 0; /* Use a value between 0 and 1 */
  visibility: visible;
  transition: all 0.3s;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /*For Safari */
  will-change: backdrop-filter;
}
/* Popup section */
.popup-visible {
  visibility: visible;
  opacity: 1;
}

.popup__content {
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  display: inline-block;
  text-align: end;
  overflow: hidden;
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 150%;
  height: auto;
  transform: translate(-50%, -50%) scale(0.25);
  transition: all 0.5s 0.2s;
}

.popup__close {
  color: white;
  position: absolute;
  top: 1%;
  right: 4%;
  font-size: 15rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  /* line-height: 1; */
}

.popup__close:hover {
  color: red;
}

.popup__content img {
  display: block;
  width: 100%;
  height: 100%;
}

.popup__link {
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

.color-toggle:active {
  background-color: greenyellow;
}
/* The end of Popup section */

@media (max-width: 1500px) {
  .about-us-img-wrapper {
    grid-row: 2 / -1;
  }

  .card {
    width: 34rem;
  }

  .footer-content {
    width: 80%;
  }
}

@media (max-width: 1440px) {
  .banner h1 {
    font-size: 6rem;
    line-height: 7rem;
  }

  .banner p {
    font-size: 3rem;
  }

  .banner button {
    width: 20rem;
    height: 5rem;
    font-size: 1.6rem;
  }

  .menu-link {
    font-size: 3rem;
  }

  .service:nth-child(1) {
    grid-column: 2 / 6;
  }

  .service:nth-child(2) {
    grid-column: 2 / 6;
  }

  .service:nth-child(3) {
    grid-column: 16 / 12;
  }

  .service:nth-child(4) {
    grid-column: 12 / 16;
  }

  .banner button {
    width: 20rem;
    height: 7rem;
  }

  .card {
    height: 30rem;
  }
}

@media (max-width: 1300px) {
  .team {
    padding-bottom: 5rem;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
  }

  .card {
    margin-bottom: 8rem;
    height: 30rem;
  }
  .contact {
    height: 100vh;
  }

  .contact-heading {
    margin-bottom: 2rem;
  }
}

.infolist {
  justify-content: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.infolist__item {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

@media (max-width: 1030px) {
  .hamburger-menu {
    position: fixed;
    top: 5rem;
    right: 5rem;
  }
  .banner h1 {
    font-size: 5rem;
    line-height: 6rem;
  }

  .banner p {
    font-size: 2.5rem;
  }

  .banner button {
    width: 18rem;
    height: 6rem;
    font-size: 1.5rem;
  }

  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service {
    width: 40rem;
    margin-bottom: 6rem;
  }
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    row-gap: 10rem;
    margin-bottom: 10rem;
  }

  .photo-grid > * {
    width: 100%;
    height: auto;
  }

  .about-us-img-wrapper {
    width: 40rem;
  }

  .about-us-img-wrapper img {
    width: 100%;
  }

  .infolist__item {
    width: (50% - 2rem);
    margin: 0 10px;
    flex: 0 0 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 50%;
    margin-top: 5rem;
  }

  .footer {
    height: 44rem;
  }

  .copyright {
    order: 1;
    margin-top: 3rem;
  }
}

@media (min-width: 480px) and (max-width: 770px) {
  /* Safari specific styles and Chrome */

  @media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
    .hamburger-menu {
      position: fixed;
      top: 2rem;
      right: 3rem;
    }
  }

  .banner {
    position: absolute;
    top: 10%;
    left: 19%;
  }
  .banner h1 {
    font-size: 4rem;
    line-height: 5rem;
  }

  .banner p {
    font-size: 2.5rem;
  }

  .banner button {
    width: fit-content;
    height: fit-content;
    white-space: nowrap;
    margin: 10% auto;
    display: inline-block;
    font-size: 3rem;
  }

  .photo-grid img {
    width: 100%;
  }

  .photo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .photo-grid img {
    width: 100%;
  }

  .footer {
    height: 44rem;
  }
  .footer-content {
    margin-top: 7rem;
  }
  .menu-link {
    font-size: 4rem;
  }
  .sidebar {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .header .img-wrapper img {
    height: 40vh !important;
  }

  .menu-link {
    font-size: 15rem;
  }
  html {
    font-size: 25%;
  }
  .hamburger-menu {
    width: 7rem;
    height: 7rem;

    z-index: 200;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    cursor: pointer;
    transition: right 0.7s;
  }
  .card {
    width: 40rem;
    height: 30rem;
  }
  /* Safari specific styles and Chrome */

  @media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
    .hamburger-menu {
      position: fixed;
      top: 1rem;
      right: 5rem;
    }
  }

  .header {
    position: relative;
    background-image: url("images/header-bg.jpg");
    background-size: cover;
    background-position: center;
    height: 40vh;
    width: 100%;
  }

  .banner {
    position: absolute;
    top: 39%;
    left: 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .banner h1 {
    font-family: "Baloo Da 2", serif;
    font-size: 8rem;
    font-weight: 300;
    color: #fff;
    width: 50%;
    line-height: 9rem;
    letter-spacing: 0.2rem;
    text-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: moveBanner 1s 0.5s forwards;
  }

  .banner p {
    width: 90%;
    font-size: 5rem;
    text-align: center;
  }

  .banner button {
    width: fit-content;
    height: fit-content;
    white-space: nowrap;

    margin: 10% auto;
    display: inline-block;
    font-size: 3rem;
  }

  .sidebar {
    width: 100%;
    right: -100%;
  }

  .service {
    width: 80%;
  }
  .service-header h3 {
    font-size: 3.6rem;

    font-weight: 600;
    text-align: center !important;
  }

  .service-text {
    font-family: "Aleo", serif;
    font-size: 3rem;
  }

  .section-heading {
    font-size: 5rem;
    font-family: "Muli", serif;
  }

  .section-description {
    font-size: 2.6rem;
    width: 80%;
  }

  .about-us-img-wrapper {
    width: 80%;
  }
  .card {
    width: 100%;
    height: auto;
  }

  .photo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .photo-grid img {
    width: 100%;
  }

  .photo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .photo-grid img {
    width: 100%;
  }

  .contact {
    width: 100%;
    height: 50vh;
  }

  .footer {
    margin-top: 0rem;
    height: 57rem;
  }

  .copyright {
    font-size: 3.6rem;
  }

  .popup {
    display: none;
  }

  /* infoline responsive */
  .infolist__item span {
    font-size: 2.5rem;
  }
}
