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

:root {
  --c1: #2B328C;
  --c2: #202569;
  --c3: #141740;
  --c4: #4651E3;
  --c5: #3A42BA;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--c3) 0%, var(--c2) 30%, var(--c1) 60%, var(--c5) 85%, var(--c4) 100%);
  background-attachment: fixed;
  perspective: 800px;
  cursor: default;
}

/* the main box/rectangle idfg how to call it */
.box {
  width: 650px;
  max-width: 90vw;
  min-height: 380px;
  background: rgba(10, 12, 40, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(70, 81, 227, 0.12);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  gap: 24px;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

/* content area that swaps between main and panel */
.content-area {
  flex: 1;
  position: relative;
  min-height: 300px;
}

/* left side stuff */
.main {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.top {
  display: flex;
  align-items: flex-start;
}

/* profile pic */
.pfp {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* name + bio */
.bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 28px;
}

.bio h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.bio .desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.7;
}

/* social links */
.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  flex-shrink: 0;
  width: 32px;
}

.icons a,
.icons button {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  padding: 0;
}

.icons a:hover,
.icons button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.icons .discord-btn i { font-size: 17px; }
.icons .discord-btn:hover i { color: #5865F2; }

.icons .codeberg-btn svg { width: 17px; height: 17px; fill: #555; transition: fill 0.2s; display: block; }
.icons .codeberg-btn:hover svg { fill: #2185D0; }

.icons .github-btn i { font-size: 17px; }
.icons .github-btn:hover i { color: #fff; }

.icons .source-btn i { font-size: 16px; }
.icons .source-btn:hover i { color: var(--c4); }

/* ---- os stuff ---- */
.panel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.box.show-panel .main {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.box.show-panel .panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.panel-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.os-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.os-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.os-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(70, 81, 227, 0.3);
  color: #fff;
}

.os-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.os-item span {
  white-space: nowrap;
}

.os-divider {
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.5px;
}

.os-label {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.os-item-tried {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/*  notes */
.panel-right {
  flex: 1;
  display: flex;
}

.notes {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  overflow-y: auto;
}

/* switch back to main page */
.toggle-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 40, 0.5);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.toggle-btn:hover {
  background: rgba(70, 81, 227, 0.3);
  color: #fff;
}

/* copy notification popup */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- mobile ---- */
@media (max-width: 680px) {
  body {
    padding: 16px;
    min-height: 100dvh;
  }

  .box {
    flex-direction: column;
    padding: 24px 20px;
    min-height: 350px;
    gap: 0;
  }

  .content-area {
    min-height: 300px;
    position: relative;
  }

  .main {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .panel {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    flex-direction: column;
    gap: 16px;
  }

  .box.show-panel .main {
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .box.show-panel .panel {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .box.show-panel .icons {
    display: none;
  }

  .box.show-panel .panel-right {
    display: none;
  }

  .pfp {
    width: 80px;
    height: 80px;
    font-size: 26px;
  }

  .bio {
    margin-top: 16px;
  }

  .bio h1 {
    font-size: 20px;
  }

  .bio .desc {
    font-size: 14px;
  }

  .panel-right {
    min-height: auto;
  }

  .notes {
    min-height: 100px;
  }

  .os-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  .os-item svg {
    width: 18px;
    height: 18px;
  }

  .os-row {
    gap: 10px;
  }

  .icons {
    flex-direction: row;
    width: auto;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .toggle-btn {
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}
