/* global styling */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  background: rgb(255, 255, 255);
  font-family: "Poppins", sans-serif;
}
h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 4.8rem;
}
h3 {
  font-size: 3rem;
}
h4,
h5 {
  font-size: 2.8rem;
}
p,
li,
button,
label,
input {
  font-size: 2rem;
}
a {
  text-decoration: none;
  color: rgb(255, 255, 255);
}
button {
  font-size: 2rem;
  padding: 2rem 6rem;
  border: none;
  background: #28394e;
  color: rgb(255, 255, 255);
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}
button:hover {
  background: #090e14;
}

/* nav section with hero */

.main-head {
  min-height: 10vh;
  background-color: #131c27;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 4;
}
nav {
  padding: 2rem;
  width: 90%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}
nav .logo {
  flex: 2 1 40rem;
  font-family: "Pattaya", sans-serif;
  font-weight: 400;
}
nav ul {
  flex: 1 1 40rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}
.hero {
  color: rgb(255, 255, 255);
  min-height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent),
    url("./img/landing-page.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 0rem;
}

.hero h3 {
  padding: 2rem;
  text-align: center;
  font-weight: 400;
}

/* locations section */

#locations {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent),
    url("./img/new-york-page.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0rem;
}
.locations-head {
  width: 90%;
  margin: auto;
}
.locations-head h2 {
  text-decoration: underline;
  text-decoration-thickness: 0.5rem;
  padding: 2rem 0;
}
.locations-head h3 {
  padding: 2rem 0;
  font-weight: 400;
}
.cloud {
  position: absolute;
  top: 0%;
  right: 0%;
  height: 50rem;
  pointer-events: none;
}
.moving-cloud-1 {
  opacity: 0.7;
  animation: cloudAnimation 3s infinite alternate ease-in-out;
}
.moving-cloud-2 {
  animation: cloudAnimation 3.5s infinite alternate ease-in-out;
  opacity: 0.6;
  z-index: -1;
  top: 15%;
}
@keyframes cloudAnimation {
  from {
    transform: translate(10%, -10%);
  }
  to {
    transform: translate(0%, 0%);
  }
}

/* benefits section */

.benefits-head {
  text-align: center;
  padding: 2rem 0;
  min-height: 30vh;
  color: rgb(255, 255, 255);
  background: #131c27;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.benefits-head h3 {
  padding: 3rem;
}
.cards {
  width: 90%;
  margin: auto;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  padding: 5rem 0rem;
}
.card {
  margin: 2rem 4rem;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.5), 0px 20px 20px rgba(0, 0, 0, 0.5);
  min-height: 40vh;
  flex: 1 1 30rem;
  max-width: 50rem;
}
.card-icon {
  height: 15vh;
  padding: 2rem 0;
  background: #28394e;
}
.cards img {
  height: 100%;
}
.card h4,
.card p {
  padding: 1rem;
}

/* contact section */

#contact {
  min-height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent),
    url("./img/contact-mountain.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 0rem;
}
.form-wrapper {
  color: rgb(255, 255, 255);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(19, 28, 39, 0.7);
  border-radius: 2rem;
  width: 70%;
  margin: auto;
}
.form-wrapper h2 {
  padding: 4rem 0;
}
.name-form,
.email-form {
  margin: 4rem 0;
}
.form-wrapper button {
  margin-top: 4rem;
  width: 100%;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}
form {
  width: 100%;
}
.form-wrapper label {
  font-weight: bold;
  margin-right: 2rem;
}
.form-wrapper input {
  padding: 1rem 5rem;
  border-radius: 0.6rem;
}

footer {
  padding: 0 5%;
  min-height: 10vh;
  background-color: #131c27;
  color: rgb(255, 255, 255);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
footer h5 {
  flex: 1 1 30rem;
  padding: 2rem 0;
}
footer .social-icons {
  list-style: none;
  flex: 2 1 40rem;
  display: flex;
  justify-content: space-between;
}
/* media query */

@media screen and (max-width: 950px) {
  html {
    font-size: 45%;
  }
  .main-head .logo {
    text-align: center;
    padding: 0 0 1rem 0;
  }
  .hero {
    text-align: center;
  }
  .locations-head h3 {
    color: rgb(255, 255, 255);
    background: rgba(19, 28, 39, 0.8);
    padding: 1rem;
  }
  .moving-cloud-1 {
    opacity: 1;
    z-index: -1;
  }
  .moving-cloud-2 {
    z-index: -2;
  }
  .form-wrapper {
    width: 90%;
  }
  footer h5 {
    text-align: center;
  }
}
@media screen and (max-width: 420px) {
  .form-wrapper {
    width: 95%;
  }
}
@media screen and (max-width: 250px) {
  html {
    font-size: 25%;
  }
}
