:root {
  --ff-primary: "Popins", sans-serif;
  --ff-secondary: "Arial";

  --fs-100: 0.85em;
  --fs-200: 1em;
  --fs-250: 1.25em;
  --fs-300: 2em;
  --fs-350: 3.5em;

  --fw-100: 600;
  --fw-200: 800;
  --fw-300: 900;

  --padding-inline: 6.25em;

  --primary-clr: #fff;
  --secondary-clr: #ccc;
  --accent-clr: #222;
}
/* general styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  background-image: url(./assets/home/background-home-desktop.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  font-family: var(--ff-primary);
  color: var(--primary-clr);
  display: grid;
  grid-template-rows: 10vh 90vh;
}

/* header */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2em;
}
.logo-wrapper {
  width: var(--padding-inline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-bar {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.line {
  background-color: gray;
  height: 2px;
  width: 36%;
  flex-basis: auto;
  border: 0;
  outline: none;
  /* z-index: 1; */
}
nav {
  position: relative;
  background-color: transparent;
  backdrop-filter: blur(100px);
  padding: 1em 1.5em;
  margin-left: -20px;
  width: 68%;
  justify-self: end;
  padding-right: var(--padding-inline);
  opacity: 0.8;
}
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
nav ul li {
  display: block;
  width: max-content;
  height: 100%;
  margin-left: 1.5em;
  list-style: none;
  text-align: right;
  position: relative;
}
nav ul li a {
  text-decoration: none;
  color: var(--secondary-clr);
  font-size: var(--fs-200);
  font-weight: var(--fw-100);
}
nav ul li a span {
  color: var(--primary-clr);
}
.active::after {
  content: "";
  height: 3px;
  width: 100%;
  background-color: var(--primary-clr);
  position: absolute;
  bottom: -1.05em;
  left: 0;
}

/* main */
.main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-inline: var(--padding-inline);
  padding-bottom: 5em;
}
.col {
  flex-basis: 40%;
  flex-grow: 1;
}
.col.right {
  display: flex;
  justify-content: flex-end;
}
.title {
  font-size: var(--fs-200);
  font-weight: var(--fw-200);
}
.title span {
  display: block;
  /* margin: .5em 0; */
  font-size: var(--fs-350);
  font-weight: var(--fw-300);
  text-transform: uppercase;
}
.content p {
  line-height: 1.5;
}
.explore {
  background-color: var(--primary-clr);
  width: 7em;
  height: 7em;
  border-radius: 100vmax;
  border: 0;
  font-size: var(--fs-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.explore p {
  color: var(--accent-clr);
  text-transform: uppercase;
  font-weight: var(--fw-200);
}
.explore:hover {
  transform: scale(1.05);
}
.icons {
  display: none;
}

@media (max-width: 560px) {
  body {
    background-image: url("./assets/home/background-home-mobile.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
  }
  nav {
    position: absolute;
    top: 0;
    right: -200px;
    background-color: #000;
    height: 100vh;
    width: 200px;
    z-index: 2;
    transition: 0.5s ease-in-out;
    opacity: 1;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    height: 50%;
  }
  nav ul li {
    margin: 0;
    padding: 0;
  }
  .close-icon-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 1.5rem;
  }
  header {
    justify-content: space-between;
  }
  .nav-bar {
    justify-content: flex-end;
    padding-right: var(--padding-inline);
    padding: 0;
  }

  .icons {
    display: block;
  }
  .line {
    display: none;
  }
  .menu-icon {
    margin-right: 20px;
    cursor: pointer;
  }
  /* main */
  .main {
    height: 100%;
    padding: 0 20px;
    margin: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .col.right {
    flex-direction: row;
  }

  .active::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  body {
    background-image: url("./assets/home/background-home-tablet.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: 100vh;
  }
  .header {
    justify-content: space-between;
  }
  .nav-bar {
    justify-content: flex-end;
    padding-right: var(--padding-inline);
    padding: 0;
  }
  .line {
    display: none;
  }
  nav ul li a span {
    display: none;
  }
  .main {
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 2rem;
  }
  .left {
    margin-top: 4rem;
    text-align: center;
  }
  .col.right {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
