@font-face {
  font-family: 'Roboto Flex';
  src: url('../assets/font/RobotoFlex.ttf');
  font-weight: 100-900;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('../assets/font/RobotoCondensed.ttf');
  font-weight: 100-900;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: inherit;
}

:root {
  font-family: 'Roboto Flex', sans-serif;
  font-size: clamp(15px, 0.8vw + 5px, 17px);

  scroll-behavior: smooth;
  scroll-padding-top: 2rem;

  --app-buffer: 1rem;
  --clr-primary: #FFF3D3;
  --clr-secondary: #E87039;
  --clr-accent: #02636D;
}

body {
  margin: 0;

  background-color: var(--clr-primary);
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Condensed', sans-serif;
}

header {
  height: 100vh;

  background-image: url('../assets/img/hero.jpg');
  background-position: center;
  background-size: cover;

  display: grid;
  place-content: center;

  nav {
    padding: 0 var(--app-buffer);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background-color: rgba(255,255,255,0.55);
    border-bottom: 2px solid rgba(255,255,255, 0.75);
    backdrop-filter: blur(3px);
  }

  ul {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;

    list-style-type: none;
  }

  li {
    padding: 0.5rem 0;

    a {
      font-family: 'Roboto Condensed', sans-serif;
      font-weight: 500;
      text-transform: uppercase;
      text-decoration: none;
      color: var(--clr-accent);
    }
  }

  h1 {
    opacity: 0;

    margin: 0;
    font-size: 3rem;
    animation: intro-h1 1s ease-in-out forwards;
  }

  p {
    opacity: 0;

    margin: 0.25rem 0;
    font-size: 1.75rem;
    animation: intro-p 750ms ease-in-out 1s forwards;
  }
}

main {
  padding: 2rem var(--app-buffer);

  h2, h3, h4, h5 {
    color: var(--clr-accent);
  }

  section#about {
    iframe {
      width: 100%;
      aspect-ratio: 2 / 1;
    }
  }

  .with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  section#contact {
    ul {
      margin: 0;
      padding: 0;

      list-style-type: none;

      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }

  form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;

    p {
      margin: 0;
      grid-column: 1 / 2;

      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    p.textarea {
      grid-column: 2 / 3;
      grid-row: 1 / 3;

      textarea {
        resize: none;
        flex-grow: 1;
      }
    }

    p.buttons {
      grid-column: 1 / 3;
      grid-row: 3 / 4;

      flex-direction: row;
      align-items: flex-start;
      justify-content: flex-end;
      gap: 1rem;
    }

    input,
    textarea,
    button {
      padding: 0.75rem;
      border-radius: 0.35rem;
      border: 1px solid rgb(211, 211, 211);
    }

    button {
      padding: 0.5rem 0.75rem;
      text-transform: uppercase;
      font-family: 'Roboto Condensed', sans-serif;
      font-weight: 500px;
      cursor: pointer;
    }
  }
}

footer {
  padding: 1rem 0;
  background-color: var(--clr-accent);

  p {
    margin: 0;
    color: white;
    text-align: center;
  }
}

@keyframes intro-h1 {
  0% {
    opacity: 0;
    transform: translateX(2rem);
  }
  100% {
    opacity: 1;
  }
}

@keyframes intro-p {
  0% {
    opacity: 0;
    transform: translateY(1rem);
  }
  100% {
    opacity: 1;
  }
}