:root {
  --bg: #06080d;
  --bg-2: #0d111a;
  --card: rgba(10, 13, 20, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #aab2c2;
  --accent: #86e7ff;
  --success: #44b36d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Alfa Slab One', 'Segoe UI', sans-serif;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0 40px;
  background:
    radial-gradient(1000px 540px at 20% 5%, rgba(134, 231, 255, 0.12), transparent 58%),
    radial-gradient(800px 420px at 90% 95%, rgba(68, 179, 109, 0.08), transparent 60%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 100%);
}

.biolink {
  width: min(820px, 92vw);
  max-height: calc(100vh - 130px);
  overflow: hidden;
  color: var(--text);
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.14s ease, background-color 0.2s ease;
}

.biolink:hover {
  background: rgba(12, 16, 24, 0.84);
}

.tilt {
  display: inline-block;
  transition: transform 0.22s ease;
}

.tilt:hover {
  transform: translateY(-2px);
}

#wrapper,
canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.video-background {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  opacity: 0.2;
  transform: translate(-50%, -50%);
  filter: saturate(0.75) brightness(0.5);
}

.button {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 11, 0.93);
  border: none;
  color: #ffffff;
  font-size: clamp(19px, 2.8vw, 26px);
  cursor: pointer;
  border-radius: 0;
  padding: 0;
  margin: 0;
  letter-spacing: 0.04em;
  transition: opacity 0.35s ease;
  z-index: 40;
}

.button:hover {
  opacity: 0.9;
}

.my-photo {
  width: 9.7rem;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border: 2px solid rgba(255, 255, 255, 0.28);
  padding: 3px;
}

.my-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(134, 231, 255, 0.42);
  border-color: var(--accent);
}

a {
  text-decoration: none;
  color: inherit;
}

.home__name {
  color: #fff;
  font-family: 'Alfa Slab One', 'Segoe UI', sans-serif;
  margin-bottom: 4px;
  font-size: clamp(34px, 4.5vw, 44px);
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(134, 231, 255, 0.28);
}

.home__desc {
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
  min-height: 1.4rem;
  font-size: 15px;
}

.typewriter {
  border-right: 2px solid rgba(134, 231, 255, 0.7);
  padding-right: 6px;
}

.badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0.35rem 0.45rem;
  gap: 0.25rem;
}

.badges svg {
  cursor: pointer;
  width: 22px;
  height: 22px;
}

.tooltip {
  z-index: 100;
  position: relative;
  display: inline-block;
}

.tooltip:before {
  z-index: 100;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: 12px;
  content: attr(data-text);
  position: absolute;
  top: -148%;
  right: -190%;
  margin-top: 15px;
  width: 84px;
  padding: 0.35rem;
  border-radius: 10px;
  background: rgba(8, 11, 17, 0.95);
  color: #fff;
  transform: translateY(-50%);
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tooltip:hover:before {
  display: block;
}

.views.tooltip:before {
  top: auto;
  right: auto;
  left: 50%;
  bottom: calc(100% + 8px);
  margin-top: 0;
  transform: translateX(-50%);
  width: auto;
  min-width: 90px;
  white-space: nowrap;
  text-align: center;
}

.tooltip svg {
  z-index: 101;
  display: block;
  margin: auto;
}

.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 16, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  width: min(360px, 90vw);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 231, 255, 0.45);
}

.server-info {
  display: flex;
  align-items: center;
}

.server-info img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-right: 10px;
}

.server-name {
  font-weight: 700;
  color: #f2f6ff;
  font-size: 13px;
}

.join-button {
  background: linear-gradient(180deg, #3fb86f, #32995c);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.join-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.sosmed {
  margin-bottom: 0.9rem;
  width: min(460px, 90vw);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sosmed a {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sosmed a:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 231, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.sosmed i {
  font-size: 1.4rem;
  color: white;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.sosmed i:hover {
  color: #ff4040;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

.sosmedins i:hover {
  color: #e9c456;
}

.sosmedgit i:hover {
  color: #ffffff;
}

.sosmeddc i:hover {
  color: #7ca9ff;
}

.sosmedspot i:hover {
  color: #58ff72;
}

.sosmedtwc i:hover {
  color: #9d77ff;
}

.copyright {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 1rem 0;
  color: #bcc5d8;
  font-size: 0.75rem;
  z-index: 10;
}

.views {
  position: fixed;
  bottom: 8px;
  left: 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dce5f3;
  font-size: 0.75rem;
  z-index: 10;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 18, 0.72);
  cursor: default;
}

.icon-eye {
  width: 18px;
  height: 18px;
  color: #dce5f3;
}

.toggle-music-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(8, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  width: 50px;
  height: 50px;
  z-index: 25;
}

.toggle-music-button:hover {
  border-color: rgba(134, 231, 255, 0.55);
  transform: translateY(-1px);
}

.toggle-music-button i {
  font-size: 22px;
  color: #ffffff;
}

@media (max-width: 768px) {
  body {
    justify-content: flex-start;
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .biolink {
    width: min(94vw, 420px);
    max-height: none;
    margin-top: 0;
    padding: 18px;
  }

  .my-photo {
    width: 8.2rem;
  }

  .home__name {
    font-size: clamp(30px, 8vw, 38px);
  }

  .server-card {
    width: 100%;
  }

  .views {
    left: 1px;
    bottom: 1px;
    z-index: 1;
    padding: 3px 3px;
    transform: none;
  }

  .copyright {
    position: static;
    margin-top: 10px;
    transform: none;
  }
}