/*********** Card Stuff ***************************/



.center {
  margin: auto;
  width: 50%;
  padding: 10px;
}

.rounded-card {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  transition: 0.5s;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.rounded-card:hover {
  width: 100%;
  height: 300px;
}

.rounded-card .square {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rounded-card .square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4200ff 0%, #ff914d 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: 0.5s;
}

.rounded-card:hover .square::before {
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%);
  transition: 0.5s;
}

.rounded-card .circle .logo {
  position: relative;
  width: auto;
  height: 200px;
  transition: 0.5s;
  transition-delay: 0.5s;
}

.rounded-card:hover .circle .logo {
  transform: scale(0);
  transition-delay: 0s;
}

.rounded-card:hover .rounded-card-content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
  transition-delay: 0.5s;
}

.rounded-card .card-image {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%) scale(0);
  height: 250px;
  transition: 0.5s;
}

.rounded-card:hover .card-image {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}

.rounded-card-content {
  position: relative;
  width: 50%;
  left: 10%;
  padding: 20px 20px 20px 40px;
  opacity: 0;
  transition: 0.5s;
  transform: scale(0);
  visibility: hidden;
}

.rounded-card-content h2 {
  color: #fff;
  text-transform: uppercase;
}

.rounded-card:hover .rounded-card-content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
  transition-delay: 0.5s;
}

.rounded-card .card-image {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%) scale(0);
  height: 250px;
  transition: 0.5s;
}

.rounded-card:hover .card-image {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}

@media (max-width: 991px) {
  .rounded-card {
    align-items: flex-start;
  }

  .rounded-card:hover {
    height: 80%;
  }

  .rounded-card:hover .card-image {
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%) scale(1);
    height: 250px;
    bottom: 30px;
    opacity: 0;
  }

  .rounded-card .rounded-card-content {
    width: 100%;
    left: 0;
    padding: 40px;
    top: 50%;
  }
}

/*********** Card Stuff ***************************/

.sqcard {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  transition: 0.5s;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sqcard:hover {
  width: 100%;
  height: 300px;
}

.sqcard .square {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sqcard .square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4200ff 0%, #ff914d 100% );
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: 0.5s;
}

.sqcard:hover .square::before {
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%);
  transition: 0.5s;
}

.sqcard .square .logo {
  position: relative;
  width: auto;
  height: 200px;
  transition: 0.5s;
  transition-delay: 0.5s;
}

.sqcard:hover .square .logo {
  transform: scale(0);
  transition-delay: 0s;
}

.sqcard:hover .sqcard-content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
  transition-delay: 0.5s;
}

.sqcard .card-image {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%) scale(0);
  height: 250px;
  transition: 0.5s;
}

.sqcard:hover .card-image {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}

.sqcard-content {
  position: relative;
  width: 50%;
  left: 10%;
  padding: 20px 20px 20px 40px;
  opacity: 0;
  transition: 0.5s;
  transform: scale(0);
  visibility: hidden;
}

.sqcard-content h2 {
  color: #fff;
  text-transform: uppercase;
}

.sqcard:hover .sqcard-content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
  transition-delay: 0.5s;
}

.sqcard .card-image {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%) scale(0);
  height: 250px;
  transition: 0.5s;
}

.sqcard:hover .card-image {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}

@media (max-width: 991px) {
  .sqcard {
    align-items: flex-start;
  }

  .sqcard:hover {
    height: 80%;
  }

  .sqcard:hover .card-image {
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%) scale(1);
    height: 250px;
    bottom: 30px;
    opacity: 0;
  }

  .sqcard .sqcard-content {
    width: 100%;
    left: 0;
    padding: 40px;
    top: 50%;
  }
}
