@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap");
@import url("https://v1.fontapi.ir/css/Shabnam");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== رنگ ها ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #5f01af;
  --text-color: #000;

  /*========== تایپوگرافی ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Space Grotesk", sans-serif;
  --body-font-fa: "Shabnam", sans-serif;
  --biggest-font-size: 2.375rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 5rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== کد های اولیه ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font-fa);
  font-size: var(--normal-font-size);
  font-weight: 500;
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.header {
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: 100;
}
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo,
.nav__toggle {
  color: var(--text-color);
  display: inline-flex;
}
.nav__logo {
  font-weight: 700;
  font-family: var(--body-font);
}
.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}
.nav__menu {
  position: fixed;
  background-color: var(--first-color);
  left: 0;
  top: -100%;
  width: 100%;
  padding: 5rem 0 4rem;
  border-radius: 0 0 1.5rem 1.5rem;
  box-shadow: 0 2px 4px hsla(38, 4%, 15%, 0.15);
  transition: 0.4s;
}
.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}
.nav__link {
  color: #fff;
}
.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* نمایش دادن منو */
.show-menu {
  top: 0;
}
