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

:root {
  --text-color: white;
  --bg-url: url(../assets/bg-mobile.png);
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgba(255, 255, 255, 0.05);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg: url(../assets/moon-stars.svg);
}

.shine {
  --text-color: black;
  --bg-url: url(../assets/bg-mobile-light.png);
  --stroke-color: rgba(0, 0, 0, 0.5);
  --surface-color: rgba(0, 0, 0, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg: url(../assets/sun.svg);
}

body {
  background: var(--bg-url) no-repeat top center/cover;
  height: 100vh;
  transition: 0.5s;
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

.container {
  width: 90%;
  max-width: 588px;
  margin: 3.5rem auto 0;
}

.profile {
  text-align: center;
  padding: 1.5rem;
}

.profile img {
  /* display: block; */
  width: 150px;
  transition: all 0.5s ease;
}

.profile p {
  font-weight: 500;
  line-height: 1.5rem;
  margin-top: 0.5rem;
}

.profile a {
  text-decoration: none;
}

.switch {
  position: relative;
  width: 4rem;
  margin: 10px auto;
  cursor: pointer;
}

.switch button {
  width: 2rem;
  height: 2rem;
  background: white var(--switch-bg) no-repeat center;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1;
  animation: slider-back 0.2s;
}

.switch button:hover {
  outline: 8px solid var(--highlight-color);
  cursor: pointer;
}

.shine .switch button {
  animation: slider-forward 0.3s forwards;
}

.switch span {
  display: block;
  width: 4rem;
  height: 1.5rem;
  border-radius: 999rem;
  border: 1px solid var(--stroke-color);
  background-color: var(--surface-color);
  --webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

.container ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.container li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.5rem;
  border: 1px solid var(--stroke-color);
  border-radius: 0.5rem;
  background-color: var(--surface-color);
  --webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.container li a:hover {
  border: 1.5px solid var(--text-color);
  background-color: var(--surface-color-hover);
}

.social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 1.5rem;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 50%;
  transition: 0.3s;
}

.social a:hover {
  background-color: var(--highlight-color);
}

.footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsivo */
@media (min-width: 700px) {
  :root {
    --bg-url: url(../assets/bg-desktop.png);
  }
  .shine {
    --bg-url: url(../assets/bg-desktop-light.png);
  }
}

/* animações */
@keyframes slider-forward {
  from {
    left: 0;
  }
  to {
    left: 50%;
  }
}

@keyframes slider-back {
  from {
    left: 50%;
  }
  to {
    left: 0;
  }
}
