/*
From Uiverse.io by Pravins01 - https://uiverse.io/Pravins01/odd-fly-66
MIT License, Copyright (c) gharsh11032000, gharsh11032000 (Harsh Gupta), Pravins01
*/

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: #000;
  border-color: transparent;
  color: #fff;
}

.contact-card-frame {
  position: absolute;
  z-index: -2;
  inset: -4px;
  overflow: hidden;
  border-radius: 17px;
  pointer-events: none;
}

.contact-card-frame::before {
  position: absolute;
  inset: -150%;
  content: '';
  background: linear-gradient(-45deg, #e81cff 42%, #40c9ff 58%);
  transition: transform .6s cubic-bezier(.175, .885, .32, 1.275);
}

.contact-card::before,
.contact-card::after {
  position: absolute;
  content: '';
  pointer-events: none;
  border-radius: inherit;
  inset: 0;
}

.contact-card::before {
  z-index: -1;
  background: #000;
}

.contact-card::after {
  z-index: -3;
  background: linear-gradient(-45deg, #fc00ff, #00dbde);
  transform: scale(.96);
  filter: blur(20px);
  opacity: .72;
  transition: filter .6s ease;
}

.contact-card:is(:hover, :focus-within) .contact-card-frame::before {
  transform: rotate(-90deg) scaleX(1.34) scaleY(.77);
}

.contact-card:is(:hover, :focus-within)::after { filter: blur(30px); }

.contact-card .contact-role {
  color: #f09aff;
  font-weight: 600;
}

.contact-card .contact-email,
.contact-card .contact-qr { color: #cbd4e0; }
.contact-card .contact-email { display: block; align-content: center; }
.contact-card a:hover { color: #82e0ff; }
.contact-card a:focus-visible { outline-color: #82e0ff; }

.contact-card .contact-qr { border-inline-start-color: #405064; }
.contact-card .contact-qr img { border-radius: 4px; }

@media (max-width: 520px) {
  .contact-card { column-gap: 12px; }
  .contact-card .contact-email { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card:is(:hover, :focus-within) .contact-card-frame::before { transform: none; }
}
