:root {
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --text: #ffffff;
  --sub: #a0a0a0;

  --button: #1f1f1f;
  --button-hover: #2a2a2a;
}

body.light {
  --bg: #eaeaea;
  --card: #ffffff;
  --text: #222;
  --sub: #777;

  --button: #e8e8e8;
  --button-hover: #dcdcdc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 30px 20px 20px;
  text-align: center;
}

#themeToggle {
  margin-bottom: 20px;
}

.pill {
  background: var(--button);
  border: none;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  background: var(--button-hover);
}

.secondary {
  margin-top: 10px;
}

.secondary:hover {
  font-weight: 700;
}

#themeToggle:hover {
  transform: scale(1.08);
}

.card {
  background: var(--card);
  border-radius: 25px;
  padding: 20px;
  height: 520px;
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  height: 100%;
}

.view.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#bioView > div {
  margin-bottom: 5px;
}

.profile-img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 12px;
}

h1 {
  font-size: 22px;
  margin-bottom: 5px;
}

p {
  color: var(--sub);
  margin-bottom: 5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  flex-grow: 1;
  align-content: center;
}

.grid a,
.icon-btn {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--button);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  color: var(--text);

  transition: 0.2s;
}

.icon-btn {
  border: none;
  cursor: pointer;
}

.grid a:hover,
.icon-btn:hover {
  transform: scale(1.1);
  background: var(--button-hover);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.5);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--card);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  width: 80%;
  max-width: 300px;
}

#modalText {
  margin-bottom: 15px;
  font-size: 18px;
}