@font-face {
  font-family: Tourney;
  src: url(../assets/fonts/tourney/Tourney-SemiBold.otf);
}

@font-face {
  font-family: Montserrat;
  src: url(../assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf);
}

:root {
  --primary-color: #3bd26c;
  --secundary-color: #1a2b33;
  --background-color: #12151a;
  --text-white: #ffffff;
  --text-gray: #9b9b9b;
  --text-black: #000000;

  --shape-dark: #000000;
  --shape-light: #ffffff;
  --shape-opacity: 0.2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--background-color);
}

html {
  scroll-behavior: smooth;
  transition: 0.3s ease;
}

body {
  font-family: montserrat, sans-serif;
  background-color: var(--background-color);
  color: var(--text-white);
  overflow-x: hidden;

  font-weight: 400;
  line-height: 1.3;
}

header nav {
  position: fixed;
  display: flex;
  width: 100dvw;
  height: fit-content;
  justify-content: flex-end;
  z-index: 9;
  transition: top 0.3s;
  gap: 1em;

  /* From https://css.glass */
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);

  a {
    padding: 10px 15px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 1rem 0;
    transition: all 0.3s ease-out;
    font-weight: 600;
  }
  a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
  }

  a:last-of-type {
    /* color: var(--text-black); */
    border: 2px solid var(--text-white);
    border-radius: 5px;
    z-index: 3;
    margin-right: 2rem;
  }
  a:last-of-type:hover {
    background-color: var(--text-black);
    color: var(--primary-color);
    border: 2px solid var(--text-black);
  }
}

#home {
  width: 100dvw;
  height: 80dvh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  background-color: var(--background-color);

  a {
    transition: all 0.3s ease-out;
    margin-top: 5em;
    font-weight: 600;
  }

  a:hover {
    background-color: var(--text-black);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }
}

h1 {
  opacity: 0;

  font-size: 2rem;
  line-height: 3rem;

  span {
    font-size: 4rem;
    margin-bottom: 20px;
  }
  strong {
    font-family: Tourney, sans-serif;
    color: var(--primary-color);
  }
}

.homeLeft {
  grid-area: 1 / 1 / 4 / 3;

  width: 70%;
  margin-left: 10dvw;
  margin-top: 15dvh;

  p {
    display: block;
    width: 60%;
    height: fit-content;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 3em;
  }

  a {
    background-color: var(--primary-color);
    text-transform: uppercase;
    color: var(--text-white);
    text-decoration: none;
    padding: 1em;
    margin: 4em 0;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
  }
}

.homeRight {
  grid-area: 1 / 3 / 4 / 4;
  background-color: var(--primary-color);
  width: 100%;
}

.subtitle {
  background-color: var(--primary-color);
  color: var(--text-black);
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 2em;
  font-weight: bold;
}

.image-wrapper {
  grid-area: 1 / 2 / 3 / 4;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;

  img {
    max-height: 100%;
  }

  #imageCircle {
    height: 90%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #adc3c5;
    opacity: var(--shape-opacity);
    position: absolute;
    z-index: -1;
  }

  #imageSmallCircle {
    position: absolute;
    width: 15%;
    aspect-ratio: 1;
    background-color: var(--shape-light);
    opacity: 0.4;
    border-radius: 50%;
    left: 10%;
    top: 30%;
    z-index: 10;
  }
}

@media only screen and (max-width: 700px) {
  header nav {
    justify-content: space-evenly;
    align-items: center;
    width: 90dvw;
    margin-left: 5dvw;

    a {
      padding: 0;
      font-size: 0.9em;
    }

    a:last-of-type {
      margin-right: 0;
      padding: 0.5em;
    }
  }

  #home {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 15em;
    height: fit-content;
  }

  .homeLeft {
    grid-area: 1 / 1 / 2 / 2;
    width: 90dvw;
    margin-left: 5dvw;

    p {
      width: 100%;
    }
  }

  .image-wrapper {
    grid-area: 2 / 1 / 3 / 2;
    margin-left: 10em;

    img {
      max-height: 100%;
    }

    #imageCircle {
      height: 80%;
      z-index: -1;
    }
  }

  .homeRight {
    display: none;
  }
}

/* --------------------------------------------------------------------------------- */
/* ----------------------------------- Shapes Left --------------------------------- */
/* --------------------------------------------------------------------------------- */

.shapesLeft {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hexagon1,
.hexagon2 {
  position: absolute;
  opacity: var(--shape-opacity);
  filter: invert(1);
}

.hexagon1 {
  width: 200px;
}

.hexagon2 {
  width: 80px;
  margin-top: 7em;
  margin-left: 7em;
  opacity: 0.5;
}

@media only screen and (max-width: 700px) {
  .shapesLeft {
    z-index: 0;
    width: 0;
  }
}

/* --------------------------------------------------------------------------------- */
/* ----------------------------------- Shapes Right -------------------------------- */
/* --------------------------------------------------------------------------------- */

.shapesRight {
  position: absolute;
  top: 10%;
  left: 80%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hexagon3,
.hexagon4 {
  position: absolute;
  opacity: var(--shape-opacity);
}

.hexagon3 {
  width: 250px;
}

.hexagon4 {
  width: 100px;
  top: 180px;
  left: 30px;
  opacity: 0.3;
}

.circle1 {
  position: absolute;
  background: var(--shape-dark);
  opacity: var(--shape-opacity);
  aspect-ratio: 1;
  width: 4dvw;
  top: 50%;
  left: 10%;
  border-radius: 50%;
}

.waves {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: -1em;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.2;

  svg:nth-of-type(2) {
    margin-top: -5em;
    margin-left: -5em;
    animation-delay: 3s;
  }
}

.wave {
  animation: moveTheWave 20s linear infinite;
  stroke-dasharray: 0 16 101 16;
  scale: 2;
}

@keyframes moveTheWave {
  0% {
    stroke-dashoffset: 0;
    transform: translate3d(0, 0, 0);
  }

  100% {
    stroke-dashoffset: -133;
    transform: translate3d(-90px, 0, 0);
  }
}
