/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(221, 100%, 50%);
  --title-color: hsl(230, 75%, 15%);
  --text-color: hsl(230, 12%, 40%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(230, 100%, 97%);
  --border-color: hsl(230, 25%, 80%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Syne", sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
  --z-modal: 1000;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1023px) {
  :root {
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
}


body {
  background-color: var(--body-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}




header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 2px 16px hsla(230, 75%, 32%, .15);
  z-index: var(--z-fixed);

  .container {
    max-width: 1120px;
    margin-inline: 1.5rem;
  }

  ul {
    list-style: none;
  }

  a {
    text-decoration: none;
  }

  .nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav__logo img {
    height: 30px;
  }

  .nav__toggle,
  .nav__close {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .4s;
  }

  :is(.nav__logo, .nav__toggle, .nav__link):hover {
    color: var(--first-color);
  }

  /* Navigation for mobile devices */
  @media screen and (max-width: 1023px) {
    .nav__menu {
      position: fixed;
      top: -100%;
      left: 0;
      background-color: var(--body-color);
      box-shadow: 0 8px 16px hsla(230, 75%, 32%, .15);
      width: 100%;
      padding-block: 4.5rem 4rem;
      transition: top .4s;
    }
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
    text-align: center;
  }

  .nav__link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
  }

  .nav__close {
    position: absolute;
    top: 1.15rem;
    right: 1.5rem;
  }

  /* Show menu */
  .show-menu {
    top: 0;
  }

  @media screen and (min-width: 1023px) {
    .nav__logo img {
      height: 50px;
    }

    .nav {
      height: calc(var(--header-height) + 2rem);
      column-gap: 3rem;
    }

    .nav__close,
    .nav__toggle {
      display: none;
    }

    .nav__menu {
      margin-left: auto;
    }

    .nav__list {
      flex-direction: row;
      column-gap: 3rem;
    }

  }

  @media screen and (min-width: 1150px) {
    .container {
      margin-inline: auto;
    }
  }
}

main {
  margin-top: var(--header-height);
  padding: 20px;
  min-height: 100vh;

  @media screen and (min-width: 1023px) {
    margin-top: calc(var(--header-height) + 2rem);
  }
}


footer {
  box-shadow: 0 2px 16px hsla(230, 75%, 32%, .15);
  display: flex;
  justify-content: space-between;

  a {
    text-decoration: none;
    color: var(--text-color);
    padding: 20px;
  }

  a:hover {
    color: var(--first-color);
  }

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