@charset "UTF-8";
/* Estilos globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1419;
  --dark-bg: #0a0e14;
  --line: #fafafa;
  --normal-blue: #39bae6;
}

html {
  scroll-behavior: smooth;
}

/* --- Acessibilidade --- */
@media (max-width: 1080px) {
  html {
    font-size: 93.75%;
    /* 15px */
  }
}
@media (max-width: 720px) {
  html {
    font-size: 87.5%;
    /* 14px */
  }
}
/* --- Estilizações básicas para desenvolvimento --- */
body {
  font-size: sans-serif;
  background-color: #0a0e14;
  font-family: "Roboto", sans-serif;
}

body, input, button, textarea {
  font-family: "Lexend", sans-serif;
}

p {
  font-family: "Lexend", sans-serif;
  color: lightgrey;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: lightgrey;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

button {
  cursor: pointer;
}

/* --- Mobile menu --- */
@media (max-width: 999px) {
  /* Body */
  body {
    overflow-x: hidden;
  }

  /* Header */
  header {
    /* Menu mobile dentro de nav */
    /* Sticky deixa de existir */
  }
  header nav {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--bg);
    width: 50vw;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
  }
  header ul {
    flex-direction: column;
    position: relative;
    top: 110px;
  }
  header ul li {
    margin: 25px;
    opacity: 0;
  }
  header #mobile-menu {
    display: block !important;
    cursor: pointer;
    position: relative;
    top: 40px;
    left: 50%;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in;
  }
  header.sticky {
    padding: 40px 80px !important;
    background: var(--bg) !important;
  }
  header.sticky a, header.sticky .logo {
    color: var(--line) !important;
  }

  /* Navbar responsiva */
  nav.active {
    transform: translateX(0);
  }
  nav.active #mobile-menu {
    transform: translateX(-55%);
    left: 100%;
  }

  #mobile-menu.active .line-1 {
    transform: rotate(-45deg) translate(-8px, 8px);
  }

  #mobile-menu.active .line-2 {
    opacity: 0;
  }

  #mobile-menu.active .line-3 {
    transform: rotate(45deg) translate(-5px, -7px);
  }

  /* Animação nos li's dentro de nav */
  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
