:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 158, 217, 0.2), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(37, 211, 102, 0.16), transparent 30%),
    linear-gradient(145deg, #0c1422 0%, #070b14 55%, #0b111b 100%);
}

body::before {
  content: "";
  position: fixed;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.012),
    0 0 0 160px rgba(255, 255, 255, 0.009);
  pointer-events: none;
}

.contacts {
  position: relative;
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
  perspective: 900px;
}

.contact {
  --accent: #35aee2;
  --accent-dark: #168acd;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 22px 24px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(120deg, var(--accent-dark), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  animation: arrive 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease,
    filter 260ms ease;
}

.contact--whatsapp {
  --accent: #36d977;
  --accent-dark: #159447;
  animation-delay: 90ms;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120%;
  left: -25%;
  width: 45%;
  height: 340%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(24deg);
  transition: left 550ms ease;
}

.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  right: -58px;
  bottom: -100px;
  border: 26px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.contact svg {
  width: 58px;
  height: 58px;
  padding: 15px;
  fill: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 19px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 1.2rem;
  transition:
    transform 260ms ease,
    background 260ms ease;
}

.contact:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    0 32px 72px color-mix(in srgb, var(--accent-dark) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: saturate(1.08);
}

.contact:hover::before {
  left: 115%;
}

.contact:hover .arrow {
  background: rgba(255, 255, 255, 0.22);
  transform: translate(2px, -2px) rotate(8deg);
}

.contact:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 5px;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 420px) {
  .contact {
    grid-template-columns: 52px 1fr auto;
    min-height: 92px;
    padding: 19px;
    border-radius: 24px;
  }

  .contact svg {
    width: 52px;
    height: 52px;
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact {
    animation: none;
  }

  .contact,
  .contact::before,
  .arrow {
    transition: none;
  }
}
