/*---------- VARIABLES CSS ----------*/
:root {
  /*Color mode HSL(hue, saturation, lightness)*/
  /* --hue: 319;
  --sat: 90%;
  --lig: 80%; */

  --hue: 352;
  --sat: 68%;
  --lig: 76%;

  --body-color: hsl(350, 69%, 89%);
  --container-color: hsl(0, 0%, 100%);
  --first-color-alt: hsl(var(--hue), var(--sat), calc(var(--lig) - 4%));
  --first-color: hsl(var(--hue), var(--sat), var(--lig));
  --text-color: #000000;
  --title-color: hsl(var(--hue), 12%, 15%);

  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Roboto", sans-serif;
  --h1-font-size: 1.85rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
}

@media screen and (min-width: 968px) {
  :root {
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

body {
  background-color: var(--body-color);
  color: var(--first-color-alt-2);
  font-display: optional;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  height: 100vh;
  width: 100%;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: 500;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  height: auto;
  max-width: 100%;
}

/*---------- Reausable CSS Classes ----------*/
.photo-background {
  background-image: url("../img/back.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  margin: 0 auto;
  max-width: 1014px;
}

.glassmorphism-effect {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  background-color: hsl(0, 0%, 100%, 0.5);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
}

.container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 968px;
  padding: 1rem;
  overflow-y: auto;
}

/*---------- PROFILE ----------*/
.profile {
  padding-top: 3rem;
}

.profile__data {
  text-align: center;
}

.profile__photo {
  align-items: flex-end;
  background: linear-gradient(
    180deg,
    hsla(var(--hue), var(--sat), var(--lig), 1) 0%,
    hsla(var(--hue), var(--sat), var(--lig), 0.2) 100%
  );
  border-radius: 50%;
  display: flex;
  height: 150px;
  justify-content: center;
  overflow: hidden;
  width: 150px;
}

.profile__border {
  border-radius: 50%;
  border: 4px solid var(--first-color);
  display: grid;
  height: 165px;
  justify-self: center;
  margin-bottom: 0.75rem;
  place-items: center;
  width: 165px;
}

.profile__name {
  font-size: var(--h1-font-size);
  margin-bottom: 1.25rem;
}

.profile__profession {
  font-size: var(--small-font-size);
  font-weight: 400;
  margin-bottom: 1.25rem;
  text-align: center;
  width: 100%;
}

.profile__social {
  width: 100%;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile__buttons {
  width: 100%;
}

.credits {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  font-weight: 300;
  margin-top: 2.25rem;
  text-align: center;
  width: 100%;
}
.credits__link {
  border-bottom: 1px dotted black;
}

.container a:link {
  color: var(--text-color);
}
/*---------- BUTTONS ----------*/
.button__social {
  margin: 0.5rem;
}

.button {
  align-items: center;
  backdrop-filter: blur(16.5px);
  background-color: var(--first-color);
  background: var(--first-color);
  border-radius: 0.5rem;
  border-radius: 10px;
  box-shadow: 0px 10px 15px -3px hsla(var(--hue), var(--sat), var(--lig), 0.3);
  color: var(--text-color);
  column-gap: 0.5rem;
  display: inline-flex;
  font-size: var(--normal-font-size);
  font-weight: 400;
  height: 3.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 1.15rem 1.5rem;
  transition: 0.3s;
  width: 100%;
  /* box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1); */
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*---------- TOOLTIP ----------*/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
