:root {
  --bg: #050505;
  --panel: rgba(12, 12, 12, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f4f4;
  --muted: #9c9c9c;
  --accent: #d9d9d9;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  user-select: none;
  -webkit-user-select: none;

  cursor: default;
}

a,
button,
img {
  -webkit-user-drag: none;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.background {
  position: fixed;
  inset: -5%;

  z-index: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.46) 42%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    url("assets/background.png") center center / cover no-repeat;

  filter:
    grayscale(18%)
    contrast(1.08);

  opacity: 0.47;

  transform: scale(1.06);

  animation:
    breathe 14s ease-in-out infinite alternate;
}


/* =========================================================
   GRAIN
   ========================================================= */

.grain {
  position: fixed;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  opacity: 0.12;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}


/* =========================================================
   VIGNETTE
   ========================================================= */

.vignette {
  position: fixed;
  inset: 0;

  z-index: 2;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      transparent 20%,
      rgba(0, 0, 0, 0.25) 58%,
      rgba(0, 0, 0, 0.86) 100%
    );
}


/* =========================================================
   PAGE
   ========================================================= */

.page {
  position: relative;

  z-index: 3;

  min-height: 100vh;

  width: min(1000px, calc(100% - 40px));

  margin: auto;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  padding: 60px 0 32px;
}


/* =========================================================
   PROFILE CARD
   ========================================================= */

.profile-card {
  width: min(780px, 100%);

  min-height: 380px;

  display: grid;

  grid-template-columns: 310px 1fr;

  background:
    linear-gradient(
      135deg,
      rgba(12, 12, 12, 0.88),
      rgba(5, 5, 5, 0.66)
    );

  border: 1px solid var(--line);

  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);

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

  animation:
    cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* =========================================================
   PORTRAIT
   ========================================================= */

.portrait-wrap {
  position: relative;

  min-height: 380px;

  overflow: hidden;

  background: #090909;
}

.portrait-wrap::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 52%,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.82)
    );
}

.portrait {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center top;

  filter:
    contrast(1.04)
    saturate(0.78);

  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}

.profile-card:hover .portrait {
  transform: scale(1.035);

  filter:
    contrast(1.08)
    saturate(0.92);
}


/* =========================================================
   PROFILE CONTENT
   ========================================================= */

.profile-content {
  padding: 50px 48px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}


/* =========================================================
   ONLINE
   ========================================================= */

.topline {
  display: flex;

  align-items: center;

  gap: 9px;

  font:
    600 10px/1
    "Montserrat",
    sans-serif;

  letter-spacing: 0.25em;

  color: #bdbdbd;
}

.status-dot {
  width: 6px;
  height: 6px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #39ff88;

  box-shadow:
    0 0 6px rgba(57, 255, 136, 0.8),
    0 0 12px rgba(57, 255, 136, 0.55),
    0 0 20px rgba(57, 255, 136, 0.25);
}


/* =========================================================
   NAME
   ========================================================= */

h1 {
  margin: 14px 0 3px;

  display: flex;

  align-items: center;

  gap: 8px;

  font:
    800 clamp(42px, 7vw, 72px) / 0.9
    "Montserrat",
    sans-serif;

  letter-spacing: -0.065em;
}

.flag {
  display: inline-flex;

  font-family:
    "Segoe UI Emoji",
    "Apple Color Emoji",
    sans-serif;

  font-size: 0.36em;

  line-height: 1;

  letter-spacing: 0;

  transform: translateY(2px);
}


/* =========================================================
   HANDLE
   ========================================================= */

.handle {
  margin: 0;

  color: #777;

  font-size: 13px;

  letter-spacing: 0.03em;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.divider {
  width: 100%;

  height: 1px;

  margin: 28px 0 23px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.26),
      transparent
    );
}


/* =========================================================
   QUOTE
   ========================================================= */

.quote {
  margin: 0;

  max-width: 420px;

  font:
    500 clamp(17px, 2.2vw, 22px) / 1.45
    "Montserrat",
    sans-serif;

  letter-spacing: -0.025em;

  color: #e9e9e9;
}


/* =========================================================
   TAGS
   ========================================================= */

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 24px;
}

.tags span {
  padding: 7px 10px;

  border:
    1px solid rgba(255, 255, 255, 0.12);

  background:
    rgba(255, 255, 255, 0.035);

  color: #9f9f9f;

  border-radius: 5px;

  font:
    600 9px/1
    "Montserrat",
    sans-serif;

  letter-spacing: 0.13em;
}


/* =========================================================
   LINKS
   ========================================================= */

.links {
  display: flex;

  gap: 22px;

  margin-top: 34px;
}

.link {
  color: #888;

  text-decoration: none;

  font:
    500 11px/1
    "Montserrat",
    sans-serif;

  letter-spacing: 0.04em;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.link span {
  color: #d8d8d8;

  margin-right: 6px;
}

.link:hover {
  color: white;

  transform: translateY(-1px);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  margin-top: 25px;

  color:
    rgba(255, 255, 255, 0.28);

  font:
    600 8px/1
    "Montserrat",
    sans-serif;

  letter-spacing: 0.18em;
}

.footer-dot {
  padding: 0 7px;

  color:
    rgba(255, 255, 255, 0.16);
}

#visitorCount {
  color:
    rgba(255, 255, 255, 0.42);
}


/* =========================================================
   VOLUME CONTROL
   ========================================================= */

.volume-control {
  position: fixed;

  top: 22px;
  left: 22px;

  z-index: 100;

  height: 48px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 5px 9px 5px 5px;

  background:
    rgba(8, 8, 8, 0.82);

  border:
    1px solid rgba(255, 255, 255, 0.14);

  border-radius: 9px;

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

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.45);

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.volume-control:hover {
  background:
    rgba(12, 12, 12, 0.94);

  border-color:
    rgba(255, 255, 255, 0.22);
}


/* =========================================================
   VOLUME BUTTON
   ========================================================= */

.volume-button {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: flex;

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

  padding: 0;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 7px;

  background:
    rgba(255, 255, 255, 0.055);

  color: white;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.volume-button:hover {
  background:
    rgba(255, 255, 255, 0.10);

  transform: scale(1.04);
}

.volume-button:active {
  transform: scale(0.96);
}

.volume-button svg {
  width: 15px;
  height: 15px;
}


/* =========================================================
   VOLUME SLIDER
   ========================================================= */

.volume-slider-container {
  width: 100px;

  height: 36px;

  display: flex;

  align-items: center;

  overflow: visible;
}

#volumeSlider {
  width: 100px;

  height: 20px;

  display: block;

  margin: 0;
  padding: 0;

  appearance: none;
  -webkit-appearance: none;

  background: transparent;

  outline: none;

  cursor: pointer;
}


/* =========================================================
   CHROME / EDGE / SAFARI TRACK
   ========================================================= */

#volumeSlider::-webkit-slider-runnable-track {
  width: 100px;

  height: 4px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.20);
}


/* =========================================================
   CHROME / EDGE / SAFARI THUMB
   ========================================================= */

#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;

  width: 10px;
  height: 10px;

  margin-top: -3px;

  padding: 0;

  border: none;

  border-radius: 50%;

  background: #ffffff;

  cursor: pointer;

  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.35);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.25);

  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.55);
}


/* =========================================================
   FIREFOX TRACK
   ========================================================= */

#volumeSlider::-moz-range-track {
  width: 100px;

  height: 4px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.20);
}


/* =========================================================
   FIREFOX THUMB
   ========================================================= */

#volumeSlider::-moz-range-thumb {
  width: 10px;
  height: 10px;

  border: none;

  border-radius: 50%;

  background: #ffffff;

  cursor: pointer;

  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.35);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

  .page {
    width: min(100% - 24px, 520px);

    padding-top: 30px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    min-height: 320px;

    height: 320px;
  }

  .portrait-wrap::after {
    background:
      linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.75),
        transparent 55%
      );
  }

  .profile-content {
    padding: 32px 27px 35px;
  }

  .links {
    gap: 15px;

    flex-wrap: wrap;
  }

  .volume-control {
    top: 14px;

    left: 14px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes breathe {

  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.10);
  }

}

@keyframes cardIn {

  from {
    opacity: 0;

    transform:
      translateY(20px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}