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

:root {
  --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);
  --switch-track-bg: linear-gradient(120deg, rgba(76, 39, 105, 0.85), rgba(44, 18, 64, 0.85));
  --switch-track-border: rgba(255, 255, 255, 0.45);
  --switch-knob-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  --switch-knob-border: rgba(0, 0, 0, 0.25);
}

.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);
  --switch-track-bg: linear-gradient(120deg, rgba(227, 227, 227, 0.9), rgba(203, 203, 203, 0.9));
  --switch-track-border: rgba(0, 0, 0, 0.12);
  --switch-knob-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  --switch-knob-border: rgba(0, 0, 0, 0.1);
}

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

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

#container {
  width: 100%;
  max-width: 588px;
  margin: 56px auto 0px;
  padding: 0 24px;
}

#profile {
  text-align: center;
  padding: 24px;
}

#profile img {
  width: 112px;
}

/* Profile */
#profile p {
  font-weight: 500;
  line-height: 24px;
  margin-top: 8px;
}

/* Switch */
#switch {
  position: relative;
  width: 80px;
  height: 40px;
  margin: 4px auto;
}

#switch span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: var(--switch-track-bg);
  border: 1px solid var(--switch-track-border);
  border-radius: 9999px;
  pointer-events: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  z-index: 0;
}

#switch button {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  background-image: var(--switch-bg-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36%;
  border: 1px solid var(--switch-knob-border);
  border-radius: 50%;
  box-shadow: var(--switch-knob-shadow);
  transform: translateY(-50%);
  transition: left 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

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

.light #switch button {
  left: calc(100% - 44px);
}

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

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px 0;
}

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

  padding: 16px 24px;

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

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

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

  transition: background 0.2s;
}
/* pseudo-selector */
ul li a:hover {
  background: var(--surface-color-hover);
  border: 1.5px solid var(--text-color);
}

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

  padding: 24px 0;

  font-size: 24px;
}

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

  transition: background 0.2s;
  border-radius: 50%;
}

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

footer {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
}
/* Media queries */
@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/bg-desktop.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-desktop-light.jpg);
  }
}
