* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  font-size: 62.5%;

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

.light {
  --text-color: black;
  --bg-url: url(../assets/bg-mobile-light.jpg);
  --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: url(../assets/sun.svg);
}

body {
  font-size: 1.6rem;
  background: var(--bg-url) no-repeat top center/cover;
  height: 100vh;
  overflow: hidden;
}

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

.container {
  width: 100%;
  max-width: 58.8rem;
  margin: 5.6rem auto 0rem;
  padding: 0 2.4rem;
}

/* profile */
#profile {
  text-align: center;
  padding: 2.4rem;
}

#profile img {
  width: 11.2rem;
}

#profile p {
  font-weight: 500;
  line-height: 2.4rem;
  margin-top: .8rem;
}

/* switch */
#switch {
  position: relative;
  width: 6.4rem;
  
  margin: .4rem auto;
}

#switch button {
  width: 3.2rem;
  height: 3.2rem;
  background: white var(--switch-bg-url) no-repeat center;
  border: 0;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);

  animation: slide-back .4s;
}

#switch button:hover {
  outline: .8rem solid var(--highlight-color);
}

#switch span {
  display: block;
  width: 6.4rem;
  height: 2.4rem;

  background: var(--surface-color);

  border: .1rem solid var(--stroke-color);
  border-radius: 999.9rem;
  
  backdrop-filter: blur(.4rem);
  -webkit-backdrop-filter: blur(.4rem);
}

.light #switch button {
  animation: slide-in .4s forwards;
}

/* links */
ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  padding: 2.4rem 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.6rem 2.4rem;

  background: var(--surface-color);
  border: .1rem solid var(--stroke-color);
  border-radius: .8rem;

  backdrop-filter: blur(.4rem);
  -webkit-backdrop-filter: blur(.4rem);

  text-decoration: none;
  font-weight: 500;

  transition: background 0.2s;
}

ul li a:hover {
  background: var(--surface-color-hover);
  border: .15rem solid var(--text-color);
}

/* social links */
#social-links {
  display: flex;
  justify-content: center;

  padding: 2.4rem 0;

  font-size: 2.4rem;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;

  transition: background 0.2s;
  border-radius: 50%;
}
#social-links a:hover {
  background: var(--highlight-color);
}

footer {
  padding: 2.4rem 0;
  text-align: center;
  font-size: 1.4rem;
}

/* media queries */
@media (min-width: 700px) {
  :root {
    --bg-url: url(../assets/bg-desktop.jpg);
  }

  .light {
    --bg-url: url(../assets/bg-desktop-light.jpg);
  }
}

/* animação */
@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 50%;
  }
}

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