/* ARE YOU CHECKING OUT MY STYLE? */
:root {
  --myCyan: rgb(0, 182, 182);
  --myDarkCyan: rgb(45, 126, 126);
}
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.cyan {
  color: rgba(0, 182, 182, 1);
}

@keyframes parallax {
  to {
    transform: translateY(calc(var(--parallax-scroll) * 10px))
      scale(calc(abs(var(--parallax-scroll)) * -0.001));
  }
}

header {
  --parallax-scroll: 20;
  animation: parallax ease-out;
  animation-timeline: scroll();
  min-height: 90vh;
}

.logo {
  width: 400px;
  --parallax-scroll: -40;
  animation: parallax ease-in-out;
  animation-timeline: scroll();
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

h1 {
  font-size: 4rem;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: #333;
}

header > p {
  font-size: 1.5rem;
  color: #666;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}
@keyframes card_in {
  from {
    opacity: 0;
    transform: translateY(-100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.card {
  margin-top: 2rem;
  padding-top: 2rem;
  min-height: 40vh;
  overflow: hidden;
  border: 1rem solid var(--myCyan);
  border-radius: 2rem;
  z-index: -20;
  animation: 1s card_in ease-in-out;
  animation-timeline: view(block 95% 0%);
  box-shadow: 0px 20px 40px black;
}

.card > hr,
.card > p {
  display: block;
  margin: 2em auto;
  width: 90%;
  font-size: 1.5rem;
}

.card > a {
  border-radius: 0.5rem;
  color: white;
  text-decoration: none;
  display: block;
  width: 50%;
  margin: 1em auto;
  padding: 1em;
  background-color: var(--myDarkCyan);
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2rem;
  transition: 250ms ease;
  box-shadow: 0 0 0 black;
  position: relative;
  overflow: hidden;
  height: 2rem;
  line-height: 2rem;
}

.card > a::before {
  content: "→";
  font-size: 2rem;
  line-height: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--myCyan);
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2rem;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0% 100%);
  transition: 400ms ease;
}

.card > a:hover::before {
  width: 30%;
}

.card > a:hover {
  background-color: var(--myDarkCyan);
  transform: translateY(-0.1rem);
  box-shadow: 0 0.2rem 0.3rem black;
}

.card > a span {
  display: inline-block;
  transition: transform 400ms ease;
}
.card > a:hover span {
  transform: translateX(40px);
}

@keyframes moveSide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-280px);
  }
}

.card > img {
  animation: moveSide 15s ease-in-out infinite alternate;
}

footer {
  margin: 4rem;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
}

@media (max-width: 1000px) {
  h1 {
    font-size: 6rem;
  }
  h2 {
    font-size: 5rem;
  }
  h3 {
    font-size: 2rem;
  }
  p {
    font-size: 3rem;
  }

  header > p {
    font-size: 3rem;
  }

  .card > a {
    letter-spacing: 0.3rem;
    font-size: 2rem;
    border-radius: 1rem;
  }
  .card > a::before {
    padding-top: 2rem;
    padding-bottom: 2rem;
    line-height: 2rem;
  }
}

@keyframes rotahto {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.lost {
  animation: rotahto 5s linear infinite;
}

/* 
  Could this CSS be better?
  Yes, of course it could.
  Do I care?
  Yes.
  Enough to fix it?
  Nope.
*/
