@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,600&display=swap");
* {
  box-sizing: border-box;
}
html {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  flex-flow: wrap;
  margin: 0;
  height: 100%;
  background: url("img/bg.jpg") no-repeat fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

.marginBot {
  margin-bottom: 150px;
}

.universeM {
  width: 35%;
}

.text-deconone {
  text-decoration: none;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
}

.cta-wrapper a img {
  transition: 1s; /* transition always applies */
}

.wrapper {
  display: flex;
  justify-content: center;
}

.cta {
  display: flex;
  padding: 10px 35px;
  text-decoration: none;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 25px;
  color: white;
  background: #2f254ed0;
  transition: 1s;
  box-shadow: 6px 6px 0 black;
  transform: skewX(-10deg);
}

.cta:focus {
  outline: none;
}

.cta:hover {
  transition: 0.5s;
  color: white;
  box-shadow: 10px 10px 0 #41334f;
}

.cta span:nth-child(2) {
  transition: 0.5s;
  margin-right: 0px;
}

.cta:hover span:nth-child(2) {
  transition: 0.5s;
  margin-right: 30px;
}

span {
  transform: skewX(15deg);
}

span:nth-child(2) {
  width: 15px;
  margin-left: 30px;
  position: relative;
}

/**************SVG****************/

path.one {
  transition: 0.4s;
  transform: translateX(-60%);
}

path.two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover path.three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover path.one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover path.two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

/* Hovering on both the logo and <a> */
/* Hovering on both the logo inside the row and the <a> */
.cta-wrapper:hover .cta {
  box-shadow: 10px 10px 0 #41334f;
}

.cta-wrapper:hover a img {
  transform: scale(110%);
}

.cta-wrapper:hover .cta span:nth-child(2) {
  margin-right: 30px;
}

.cta-wrapper:hover .cta path.one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta-wrapper:hover .cta path.two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

.cta-wrapper:hover .cta path.three {
  animation: color_anim 1s infinite 0.2s;
}
/* SVG animations */

@keyframes color_anim {
  0% {
    fill: white;
  }
  50% {
    fill: #41334f;
  }
  100% {
    fill: white;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-position: center;
  }

  .marginBot {
    margin-bottom: 60px;
  }

  .universeM {
    width: 60%;
  }

  .cta {
    padding: 12px 20px;
    font-size: 18px;
    box-shadow: 4px 4px 0 black;
  }

  .cta:hover {
    box-shadow: 6px 6px 0 #41334f;
  }

  .cta span:nth-child(2) {
    margin-left: 15px;
    margin-right: 0;
  }

  .cta-wrapper:hover .cta span:nth-child(2),
  .cta:hover span:nth-child(2) {
    margin-right: 15px;
  }

  .cta-wrapper {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }

  .cta-wrapper a img {
    width: 80px;
    height: auto;
  }

  /* Disable some animations for better mobile UX */
  .cta:hover path.one,
  .cta:hover path.two,
  .cta:hover path.three,
  .cta-wrapper:hover .cta path.one,
  .cta-wrapper:hover .cta path.two,
  .cta-wrapper:hover .cta path.three {
    animation: none;
    transform: translateX(0%);
    fill: white;
  }

  /* Optional: reduce skew effect */
  .cta {
    transform: none;
  }

  span {
    transform: none;
  }
}
