* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root {
  --text-color: #ffffff;
  --bg-url: url(./assets/bg-mobile.jpg);
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgba(255, 255, 255, 0.02);
  --social-hover: rgba(255, 255, 255, 0.2);
  --bg-url-switch: url(./assets/moon-stars.svg);
}
.light {
  --text-color: #000000;
  --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);
  --social-hover: rgba(0, 0, 0, 0.2);
  --bg-url-switch: url(./assets/sun.svg);
}

body {
  /*background-image: url(./assets/bg-mobile.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover; */

  /*background: color image repeat position/size ;*/
  background: #000000 var(--bg-url) top center/cover;
  height: 100%;
  transition: background 0.7s ease;
  overflow: hidden;
}
body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}
.container {
  width: 100%;
  max-width: 588px;
  margin: 56px auto 0px;
  padding: 0 24px;
  animation: slideLeft 1s ease-in-out;
}
@keyframes slideLeft {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 100;
  }
}
.profile {
  text-align: center;
  padding: 24px;
}
.profile img {
  width: 112px;
  border-radius: 50%;
  border: 3px solid #818181;
}
.profile p {
  font-weight: 500;
  line-height: 24px;
}
/* switch */
.switch {
  width: 64px;

  position: relative;
  margin: 4px auto;
  animation: position 2s ease;
}
.switch button {
  width: 32px;
  height: 32px;
  background: white var(--bg-url-switch) no-repeat center;
  border-radius: 50%;
  border: 0;
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.7s ease;
}
.light .switch button {
  transform: translateX(100%) translateY(-50%);
}
.switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

/*links */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
  animation: position 2s ease-in-out;
}
@keyframes position {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }
  50% {
    transform: translateY(-15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
ul li a:hover {
  background: var(--surface-color-hover);
  border: 1.5px solid var(--text-color);
}
.social-icons {
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  animation: position 3s ease-in-out;
}
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 16px;
  transition: background 0.2s ease;
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--social-hover);
  border-radius: 50%;
}
/* media queries */
@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/bg-desktop.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-desktop-light.jpg);
  }
}
