@font-face {
  font-family: Poppins;
  src: url(Poppins-Medium.ttf);
}
html {
  border: 0;
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
}
body {
  width: 100%;
  height: 100vh;
  background-color: rgb(32, 35, 48);
  overscroll-behavior: contain;
}
.hero-content {
  height: 100vh;
}
.text {
  color: white;
  font-size: 2em;
  text-align: center;
  height: 40%;
  width: 80%;
  position: absolute;
  top: 90%;
  left: 50%;
  animation: text-anim 1.5s ease forwards 5.3s;
  transform: translate(-50%, -100%);
  opacity: 0;
}
@keyframes text-anim {
  from {
    opacity: 0;
    transform: translate(-50%, 40vh);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}
#logo {
  stroke-linecap: square; /*Prevents Missing Pixels*/
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fill 0.5s ease forwards 5.1s;
}
/*Each Path is a letter with a different stroke length that are animated in order every 0.3s*/
#logo path:nth-child(1) {
  stroke-dasharray: 717;
  stroke-dashoffset: 717;
  animation: line-anim 2s ease forwards 0.3s;
}
#logo path:nth-child(2) {
  stroke-dasharray: 465;
  stroke-dashoffset: 465;
  animation: line-anim 2s ease forwards 0.6s;
}
#logo path:nth-child(3) {
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  animation: line-anim 2s ease forwards 0.9s;
}
#logo path:nth-child(4) {
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  animation: line-anim 2s ease forwards 1.2s;
}
#logo path:nth-child(5) {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: line-anim 2s ease forwards 1.5s;
}
#logo path:nth-child(6) {
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  animation: line-anim 2s ease forwards 1.8s;
}
#logo path:nth-child(7) {
  stroke-dasharray: 522;
  stroke-dashoffset: 522;
  animation: line-anim 2s ease forwards 2.1s;
}
#logo path:nth-child(8) {
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  animation: line-anim 2s ease forwards 2.7s;
}
#logo path:nth-child(9) {
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  animation: line-anim 2s ease forwards 3s;
}
#logo path:nth-child(10) {
  stroke-dasharray: 570;
  stroke-dashoffset: 570;
  animation: line-anim 2s ease forwards 3.3s;
}
/*Animates paths to visibility*/
@keyframes line-anim {
  to {
    stroke-dashoffset: 0px;
  }
}
/*Animates the whole word to be visible */
@keyframes fill {
  to {
    fill: white;
  }
  from {
    fill: transparent;
  }
}
/*SVG Animations Demo*/
.svg-animation {
  width: 100%;
  background-color: #eaeaea;
  text-align: center;
  position: relative;
}
.svg-animation p {
  color: white;
  font-size: 3em;
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translateX(-50%) translateY(-50%);
  font-family: Poppins;
}
#wheel,
#wheel_2 {
  animation: wheel 0.5s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
/*Interactable content*/
.hover-demo {
  position: relative;
  display: block;
  width: 100%;
  height: 50vw;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}
.hover-text,
.cursor-text {
  color: white;
  text-align: center;
  width: 100%;
}
.middle {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.interaction-card {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  width: 22vw;
  height: 30vw;
  display: block;
}
.card1 {
  left: 20%;
}
.card2 {
  left: 50%;
}
.card3 {
  left: 80%;
}
.front,
.back {
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  transition: transform 0.6s linear;
}
.front img {
  height: 100%;
}
.front {
  transform: perspective(600px) rotateY(0deg);
}
.back {
  background: #f1f1f1;
  transform: perspective(600px) rotateY(180deg);
}
.back-content {
  color: #2c3e50;
  text-align: center;
  width: 100%;
}
.sm {
  margin: 20px 0;
}
.sm i {
  display: inline-flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  color: #2c3e50;
  font-size: 24px;
  transition: 0.4s;
  border-radius: 50%;
}
.sm i:hover {
  background: #2c3e50;
  color: white;
}
.interaction-card:hover > .front {
  transform: perspective(600px) rotateY(-180deg);
}
.interaction-card:hover > .back {
  transform: perspective(600px) rotateY(0deg);
}

@keyframes wheel {
  to {
    transform: rotate(-360deg);
  }
}
/*Cursor Section */
.cursor-wrapper {
  width: 100%;
  height: 40vh;
  display: block;
  position: relative;
}

.cursorContent {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 50%;
}

.hover-this {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  padding: 50px;
  -webkit-transform: translateY(-50px);
  transform: translateY(-50px);
}

span {
  display: inline-block;
  font-weight: 300;
  color: #fff;
  font-size: 36px;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-transition: -webkit-transform 0.1s linear;
  transition: -webkit-transform 0.1s linear;
  transition: transform 0.1s linear;
  transition: transform 0.1s linear, -webkit-transform 0.1s linear;
}

.cursor {
  opacity: 0; /*Starts invisible is visilbe on section*/
  pointer-events: none;
  position: fixed;
  padding: 0.3rem;
  background-color: #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.clicked {
  -webkit-animation: cursor 0.3s forwards;
  animation: cursor 0.3s forwards;
}

@-webkit-keyframes cursor {
  to {
    padding: 1rem;
    -webkit-transform: translate(-40%, -40%) scale(8);
    transform: translate(-40%, -40%) scale(8);
    background-color: transparent;
    border: 3px solid #fff;
  }
}

@keyframes cursor {
  to {
    padding: 1rem;
    -webkit-transform: translate(-40%, -40%) scale(8);
    transform: translate(-40%, -40%) scale(8);
    background-color: transparent;
    border: 3px solid #fff;
  }
}

.hover-this:hover ~ .cursor {
  -webkit-transform: translate(-50%, -50%) scale(10);
  transform: translate(-50%, -50%) scale(10);
}
/*3d image*/
.perspective-wrapper {
  perspective: 10vw;
}
.perspective-img {
  width: 50%;
  margin-left: 25%;
  margin-bottom: 10%;
  transform: rotate3d(1, 1, 1, 3deg);
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
}
.perspective-img:hover {
  transform: rotate3d(-1, -1, -1, 3deg);
}
.perspective-text {
  color: white;
  text-align: center;
  margin-bottom: 5%;
}

@media (min-width: 900px) {
  .cursorContent {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
  }
}

@media (max-width: 900px) {
  .cursorContent {
    top: 30%;
  }
  .cursor-wrapper {
    margin-bottom: 10vh;
  }
  .hover-this {
    width: 100%;
    padding: 20px 0;
    display: inline-block;
  }
}
@media only screen and (max-width: 1200px) {
  .interaction-card {
    top: 60%;
  }
  .back-content h2 {
    font-size: 2em;
  }
}
@media only screen and (max-width: 1000px) {
  #logo {
    width: 800px;
  }
}
@media only screen and (max-width: 800px) {
  #logo {
    width: 600px;
  }
}
@media only screen and (max-width: 600px) {
  .hero-content p {
    font-size: 1.25em;
    top: 65%;
  }
  .card1,
  .card3 {
    display: none;
  }
  .interaction-card {
    height: 100vw;
    width: 80vw;
    top: 57%;
  }
  .hover-demo {
    height: 130vw;
  }
  .hover-text h1,
  .cursor-text h1,
  .perspective-text h1 {
    font-size: 2.5em;
  }
  #logo {
    top: 20%;
    width: 80%;
  }
  .hero-content {
    height: 40vh;
  }
  .svg-animation p {
    font-size: 1.5em;
  }
}
