/* Links Card */
.links-card {
  width: 60%;
  position: relative;
  max-width: 800px;
  min-width: 400px;
  margin: auto;
  background: #191c29;
  box-shadow: 0px 10px 80px #fff;
  padding: 25px;
  border-radius: 25px;
  height: 400px;
}

/* Links Img */
.links-card-img {
  width: 350px;
  height: 360px;
  border-radius: 20px;
  transform: translateX(-60px);
  overflow: hidden;
}

.links-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

.card {
  background: #191c29;
  padding: 4px;
  position: relative;
  color: rgb(88 199 250 / 0%);
}

.card:hover {
  color: rgb(255 0 0 / 100%);
  transition: color 1s;
}

.card::before {
  content: "";
  width: 104%;
  height: 102%;
  border-radius: 8px;
  background-image: linear-gradient(
    var(--rotate),
    rgb(0, 0, 0) 10.6%,
    rgb(255, 0, 0) 97.7%
  );
  position: absolute;
  z-index: -1;
  top: -1%;
  left: -2%;
  animation: spin 3s linear infinite;
  opacity: 0;
}

.card:hover:before,
.card:hover:after {
  opacity: 100%;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

/* Promo Links */
.links-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.links-wrapper {
  width: 450px;
}

.links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px auto;
  max-width: 380px;
}

.link-item h2,
p {
  font-size: 16px;
  font-weight: 400;
  margin: -15px;
  letter-spacing: 0.2px;
}

.btn {
  height: 60px;
  color: #fff;
  border-radius: 5px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  position: relative;
  line-height: 32px;
  border: none;
  background: lightslategrey;
}

.btn:hover {
  color: #ff0000;
  background: transparent;
}
.btn:before,
.btn:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 2px;
  width: 0;
  background: #ff0000;
  transition: 400ms ease all;
}
.btn:after {
  right: inherit;
  top: inherit;
  left: 0;
  bottom: 0;
}
.btn:hover:before,
.btn:hover:after {
  width: 100%;
  transition: 800ms ease all;
}

.link-img {
  width: 50px;
  height: 50px;
  border: 1px solid white;
  border-radius: 50%;
  margin-left: -15px;
}

/* Responsive */
@media only screen and (max-width: 475px) {
  /* For mobile phones: */
  /* Header */
  section {
    margin: 60px auto;
  }
  h1 {
    font-size: 80px;
  }
  .profile-img {
    width: 70%;
    margin: auto;
  }
  /* Socials */
  .social-btns {
    position: relative;
    margin: 0px 40px;
    flex-wrap: wrap;
  }
  .links-card {
    min-width: 300px;
    height: 470px;
    padding: 10px;
  }
  .links-content {
    flex-direction: column;
    height: 440px;
  }
  .links-card-img {
    width: 280px;
    transform: none;
  }
  .links-wrapper {
    width: 300px;
  }
  .links-img {
    margin-left: -20px;
  }
  .link-item h2,
  p {
    font-size: 12px;
  }
  .share-btn li a {
    width: 30px;
    height: 30px;
    padding-top: 6px;
  }
}

@media only screen and (max-width: 768px) {
  /* Tablets / Ipads */
  .links-card {
    width: 80%;
  }
  .btn {
    width: 270px;
  }
}

@media only screen and (max-width: 1200px) {
  /* Desktop */
  .container {
    max-width: 1140px;
  }
}
