* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
}

/* Header */

header {
  background-image: url("images/page.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.header-title h1 {
  font-size: 60px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

header nav ul {
  list-style: none;
  font-weight: 500;
}

header nav ul li {
  display: inline;
  margin: 0 15px;
  font-size: 20px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 15px;
  column-gap: 15px;
  padding: 50px 0 0 40px;
}

/* Burger menu */

.open {
  display: flex !important;
}

.close {
  display: none !important;
}

.container_burger {
  display: none;
  justify-content: flex-end;
  cursor: pointer;
}

.burger {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  width: 30px;
  height: 18px;
  z-index: 50;
  margin: 2%;
}

.burger span {
  height: 2px;
  width: 80%;
  transform: scale(1);
  background-color: #ffffff;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  transition: all 0.3s ease 0s;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.burger.active span {
  transform: scale(0);
}

.burger.active::before {
  top: 50%;
  transform: rotate(-45deg) translate(0, -50%);
}

.burger.active::after {
  bottom: 50%;
  transform: rotate(45deg) translate(0, 50%);
}

/* About Section */

#about {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/images/about.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.about {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about p {
  color: #ffffff;
  font-size: 20px;
}

/*Destinations Section*/

#destinations {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
    url("/images/destination.png") center/cover;
}

#destinations h2,
#about h2 {
  font-size: 50px;
  text-align: center;
  padding: 30px;
  color: #fff;
}

.destination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  row-gap: 30px;
  column-gap: 30px;
  margin-bottom: 50px;
}

.destination img {
  width: 500px;
}

.destination h3 {
  text-align: center;
  font-size: 35px;
  padding-bottom: 20px;
  color: #fff;
}

.destination p {
  text-align: center;
  font-size: 20px;
  color: #fff;
}

/*Slider container*/

.gallery {
  font-size: 35px;
  text-align: center;
  margin-top: 40px;
  color: #333;
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
}

.swiper-slide img {
  display: block;
  width: 100%;
}

/*Numbers Section*/

.block {
  background-color: #020c21;
}

.block h2 {
  text-align: center;
  padding-top: 9rem;
  font-size: 35px;
  color: #fff;
}

.counter-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  align-items: center;
  height: 540px;
  width: max-content;
  margin: auto;
}

.counter-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #f0f8ff;
  padding: 16px;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: 0.3s all ease-out;
}

.counter-icon {
  font-size: 35px;
  color: #4b3cfb;
}

.counter-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.counter-value,
.counter-sign,
.counter-name {
  color: #2a2b2c;
}

.counter-value {
  font-weight: 600;
  font-size: 37px;
}

.counter-sign {
  font-size: 35px;
  font-weight: 400;
}

.counter-name {
  font-size: 17px;
  line-height: 1.2;
}

/*Contact Section*/

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
}

form label,
form input,
form textarea {
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  padding: 10px;
}

form button {
  padding: 10px 20px;
  background-color: #9d8386;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background-color: #724e3c;
}

/*Footer*/

footer {
  background: #9d8386;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}

footer a {
  text-decoration: none;
  color: #000;
}

@media screen and (max-width: 1024px) {
  .wrapper {
    width: 85vw;
  }
  .container {
    height: 26vmin;
    width: 26vmin;
    font-size: 12px;
  }
}

@media screen and (max-width: 968px) {
  .counter-container {
    grid-template-columns: repeat(2, 240px);
    padding: 9rem 0;
  }
}

@media screen and (max-width: 768px) {
    header, #about {
        background-attachment: scroll;
    }

    #about {
        min-height: 100%;
    }
    
  .wrapper {
    width: 90vw;
    flex-wrap: wrap;
    gap: 30px;
  }
  .container {
    width: calc(50% - 40px);
    height: 30vmin;
    font-size: 14px;
  }

  .container_burger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    row-gap: 20px;
    position: fixed;
    height: 100%;
    left: 0;
    right: 0;
    padding: 50px 40px;
    background-color: #00bdd5;
    animation: burgerAnimation 0.4s;
    z-index: 10;
  }

  @keyframes burgerAnimation {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .header-title h1 {
    font-size: 30px;
    letter-spacing: normal;
  }

  #about h2 {
    font-size: 35px;
  }

  .about p {
    font-size: 20px;
  }
}

@media screen and (max-width: 600px) {
  ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  li {
    padding: 10px;
  }

  .counter-container {
    grid-template-columns: repeat(1, 240px);
    height: 100%;
    padding: 1rem 0;
  }

  .block h2 {
    padding-top: 4rem;
  }

  .about {
    transform: none;
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 0 10px;
  }

  .destination img {
    width: 340px;
    padding-bottom: 10px;
  }

  .reverse {
    flex-direction: column-reverse;
    padding-bottom: 20px;
  }
}

@media screen and (max-width: 500px) {
  .wrapper {
    gap: 15px;
  }
  .container {
    width: 100%;
    height: 25vmin;
    font-size: 8px;
  }

  #destinations h2,
  #about h2 {
    font-size: 30px;
  }

  .destination h3 {
    font-size: 20px;
  }

  .destination p {
    font-size: 15px;
  }

  .gallery {
    font-size: 25px;
  }
}
