@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-VariableFont_slnt,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 8%);
  flex-direction: column;
  padding: 24px;
  font-family: "Inter", sans-serif;
}

.profile {
  background-color: linear-gradiente(145deg, hsl(0, 0%, 14%), hsl(0, 0%, 10%));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 14px;
  width: 100%;
  max-width: 384px;
  text-align: center;
}

.profile h1 {
  font-size: 24px;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
}

.profile-photo-wrapper {
    position: relative;
    display: block;
    width: fit-content;
    margin: 32px auto;
    margin-top: 24px;
}

.availability {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 7px 12px;
    border: 1px solid rgba(199, 255, 61, 0.22);
    border-radius: 999px;
    background-color: rgba(199, 255, 61, 0.06);
    color: hsl(0, 0%, 100%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.availability__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: hsl(75, 94%, 57%);
  box-shadow: 0 0 8px rgba(199, 255, 61, 0.7);
}

.professional-role {
    margin-bottom: 8px;
    color: hsl(0, 0%, 65%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: hsl(75, 94%, 57%);
  font-size: 14px;
  font-weight: 600;
}

.profile-location img {
  display: block;
  width: 20px;
  height: 20px;
  position: static;
  transform: none;
}

.profile-location span {
  color: hsl(75, 94%, 57%);
}

.profile-description {
  font-size: 14px;
  font-weight: 400;
  color: hsl(0, 0%, 100%);
}

.profile-photo {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
}

.profile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.profile a {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: hsl(0, 0%, 20%);
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  position: relative;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.link-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: brightness(0) invert(1);
}

.profile a:hover .link-text {
  opacity: 0;
}

.profile a:hover .link-icon {
  opacity: 1;
}

.profile a {
  transition: background-color 0.9.1s ease;
}

.link-text,
.link-icon {
  transition: opacity 0.9.1s ease;
}

.profile a:hover,
.profile :focus-visible {
  background-color: hsl(75, 94%, 57%);
}

.profile a:hover .link-icon,
.profile a:focus-visible .link-icon {
  opacity: 1;
  filter: brightness(0);
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .profile {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .availability {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .profile-photo {
        width: 96px;
        height: 96px;
    }

    .professional-role {
        font-size: 10px;
    }

    .profile h1 {
        font-size: 22px;
    }

    .profile-description {
        font-size: 14px;
        line-height: 1.5;
    }

    profile a {
        padding: 24px 12px;
    }

    .profile-location {
        margin-top: 20px;
    }

}

/* Mouse e computador */
@media (hover: hover) and (pointer: fine) {
  .profile a:hover {
    background-color: hsl(75, 94%, 57%);
  }

  .profile a:hover .link-text {
    opacity: 0;
  }

  .profile a:hover .link-icon {
    opacity: 1;
    filter: brightness(0);
  }
}

/* Toque no celular */
@media (hover: none) and (pointer: coarse) {
  .profile a:active {
    background-color: hsl(75, 94%, 57%);
    transform: scale(0.98);
  }
}

  .profile a:active .link-text {
    opacity: 0;
  }

  .profile a:active .link-icon {
    opacity: 1;
    filter: brightness(0);
  }
}

/* Navegação pelo teclado */
.profile a:focus-visible {
  background-color: hsl(75, 94%, 57%);
  outline: 2px solid hsl(75, 94%, 57%);
  outline-offset: 3px;
}

.profile a:focus-visible .link-text {
  opacity: 0;
}

.profile a:focus-visible .link-icon {
  opacity: 1;
  filter: brightness(0);
}