/* ==========================================
   RESET
========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #ffffff;

  background:
    linear-gradient(
      rgba(3, 10, 18, 0.60),
      rgba(3, 8, 16, 0.78)
    ),
    url("background.png") center center / cover fixed;

  overflow-x: hidden;
}


/* Dark vignette */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(circle at 50% 30%,
      transparent 0%,
      rgba(0, 0, 0, 0.1) 40%,
      rgba(0, 0, 0, 0.72) 100%);

  z-index: 0;
}


/* ==========================================
   PAGE
========================================== */

.page {
  position: relative;
  z-index: 1;

  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 70px 20px 80px;
}

.container {
  width: 100%;
  max-width: 600px;
}


/* ==========================================
   PROFILE
========================================== */

.profile {
  text-align: center;

  margin-bottom: 45px;

  animation: fadeUp 0.8s ease both;
}

.avatar-wrapper {
  width: 150px;
  height: 150px;

  margin: 0 auto 25px;

  padding: 4px;

  border-radius: 50%;

  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.35));

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45);
}

.avatar {
  width: 100%;
  height: 100%;

  display: block;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid rgba(12, 22, 35, 0.9);
}

.profile h1 {
  font-size: clamp(2rem, 6vw, 3rem);

  font-weight: 600;

  letter-spacing: -1.5px;

  margin-bottom: 14px;

  text-shadow:
    0 3px 25px rgba(0, 0, 0, 0.5);
}

.interests {
  color: rgba(255, 255, 255, 0.62);

  font-size: 1rem;

  font-weight: 400;

  letter-spacing: 0.3px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 12px;
}

.interests span:not(:last-child)::after {
  content: "•";

  margin-left: 12px;

  color: rgba(255, 255, 255, 0.35);
}


/* ==========================================
   LINK CARDS
========================================== */

.links {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.link-card {
  position: relative;

  width: 100%;
  min-height: 83px;

  display: flex;
  align-items: center;

  gap: 20px;

  padding: 15px 24px;

  text-align: left;
  text-decoration: none;

  color: white;

  border-radius: 22px;

  border: 1px solid rgba(255, 255, 255, 0.13);

  background:
    linear-gradient(135deg,
      rgba(15, 28, 43, 0.78),
      rgba(9, 18, 29, 0.72));

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  overflow: hidden;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;

  animation: fadeUp 0.7s ease both;
}


/* Light streak */

.link-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 60%;
  height: 100%;

  background:
    linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);

  transition: left 0.6s ease;
}

.link-card:hover::before {
  left: 150%;
}

.link-card:hover {
  transform:
    translateY(-3px) scale(1.01);

  border-color:
    rgba(255, 255, 255, 0.25);

  background:
    linear-gradient(135deg,
      rgba(24, 41, 61, 0.9),
      rgba(11, 24, 38, 0.88));

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3);
}


/* Staggered appearance */

.link-card:nth-child(1) {
  animation-delay: 0.08s;
}

.link-card:nth-child(2) {
  animation-delay: 0.14s;
}

.link-card:nth-child(3) {
  animation-delay: 0.20s;
}

.link-card:nth-child(4) {
  animation-delay: 0.26s;
}

.link-card:nth-child(5) {
  animation-delay: 0.32s;
}

.link-card:nth-child(6) {
  animation-delay: 0.38s;
}

.link-card:nth-child(7) {
  animation-delay: 0.44s;
}

.link-card:nth-child(8) {
  animation-delay: 0.50s;
}


/* ==========================================
   ICONS
========================================== */

.icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  font-size: 1.7rem;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.25);
}


/* Instagram */

.instagram {
  background:
    radial-gradient(circle at 30% 110%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
}


/* X */

.twitter {
  background: #050505;
}


/* Twitch */

.twitch {
  background: #9146ff;
}


/* YouTube */

.youtube {
  background: #ff0033;
}


/* Discord */

.discord {
  background: #5865f2;
}


/* Steam */

.steam {
  background:
    linear-gradient(135deg,
      #162f4a,
      #071c2f);
}


/* Letterboxd */

.letterboxd {
  background: #202830;

  gap: 2px;
}

.letterboxd-dot {
  width: 11px;
  height: 11px;

  border-radius: 50%;
}

.orange {
  background: #ff8000;
}

.green {
  background: #00e054;
}

.blue {
  background: #40bcf4;
}

/* ==========================================
   LINK TEXT
========================================== */

.link-content {
  flex: 1;

  min-width: 0;
}

.link-title {
  font-size: 1.05rem;

  font-weight: 500;

  margin-bottom: 6px;
}

.link-description {
  color: rgba(255, 255, 255, 0.5);

  font-size: 0.84rem;

  line-height: 1.35;
}

.arrow {
  color: rgba(255, 255, 255, 0.78);

  font-size: 1rem;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.link-card:hover .arrow {
  transform: translateX(5px);

  color: white;
}

/* ==========================================
   FOOTER
========================================== */

footer {
  width: 100%;

  margin-top: 55px;

  text-align: center;

  color: rgba(255, 255, 255, 0.62);

  animation:
    fadeUp 0.8s 0.45s ease both;
}

.footer-text {
  font-family: "Caveat", cursive;

  font-size: 1.3rem;

  margin-bottom: 25px;

  color: rgba(255, 255, 255, 0.72);
}

.footer-icons {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 27px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 1.15rem;
}

.footer-icons::before,
.footer-icons::after {
  content: "";

  width: 85px;
  height: 1px;

  background:
    linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.35));
}

.footer-icons::after {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.35),
      transparent);
}


/* ==========================================
   DISCORD MODAL
========================================== */

.modal {
  position: fixed;

  inset: 0;

  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(2, 6, 12, 0.72);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;

  z-index: 1;

  width: 100%;
  max-width: 460px;

  padding: 42px 35px 35px;

  border-radius: 26px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  background:
    linear-gradient(145deg,
      rgba(22, 38, 55, 0.96),
      rgba(7, 17, 27, 0.97));

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.55);

  text-align: center;

  transform: translateY(20px) scale(0.97);

  transition: transform 0.25s ease;
}

.modal.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.65);

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 50%;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.modal-close:hover {
  color: white;

  background: rgba(255, 255, 255, 0.12);
}

.modal-icon {
  width: 70px;
  height: 70px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  font-size: 2rem;

  background:
    linear-gradient(135deg,
      #487e9f,
      #17354a);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-card h2 {
  font-size: 1.8rem;

  margin-bottom: 8px;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.55);

  font-size: 0.95rem;

  margin-bottom: 30px;
}

.detail {
  display: flex;
  align-items: center;

  gap: 15px;

  padding: 15px 17px;

  text-align: left;

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 255, 255, 0.07);
}

.detail>i {
  width: 25px;

  text-align: center;

  font-size: 1.1rem;

  color: rgba(255, 255, 255, 0.7);
}

.detail div {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.detail span {
  color: rgba(255, 255, 255, 0.42);

  font-size: 0.72rem;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.detail strong {
  font-size: 0.95rem;

  font-weight: 500;
}

.modal-note {
  color: rgba(255, 255, 255, 0.47);

  line-height: 1.6;

  font-size: 0.82rem;
}

.discord-button {
  font-family: inherit;

  appearance: none;
  -webkit-appearance: none;
}


/* Discord icon inside modal */

.discord-modal-icon {
  background: #5865f2;
}


/* Username box */

.discord-username {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 15px;

  padding: 16px 18px;

  margin-top: 5px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  text-align: left;
}


.discord-user-info {
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 5px;
}


.discord-label {
  color: rgba(255, 255, 255, 0.42);

  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}


.discord-user-info strong {
  color: white;

  font-size: 1rem;

  font-weight: 500;
}


/* Copy button */

.copy-button {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.7);

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.copy-button:hover {
  color: white;

  background: rgba(88, 101, 242, 0.35);

  transform: scale(1.05);
}


.copy-button.copied {
  color: white;

  background: rgba(88, 101, 242, 0.55);
}


/* "Copied!" message */

.copy-message {
  height: 20px;

  margin-top: 12px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 0.78rem;

  opacity: 0;

  transform: translateY(-4px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.copy-message.visible {
  opacity: 1;

  transform: translateY(0);
}


/* ==========================================
   ANIMATION
========================================== */

@keyframes fadeUp {

  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  body {
    background-attachment: scroll;
  }

  .page {
    padding: 45px 15px 55px;
  }

  .avatar-wrapper {
    width: 125px;
    height: 125px;
  }

  .profile {
    margin-bottom: 35px;
  }

  .profile h1 {
    font-size: 2.2rem;
  }

  .interests {
    font-size: 0.87rem;

    gap: 7px;
  }

  .interests span:not(:last-child)::after {
    margin-left: 7px;
  }

  .link-card {
    min-height: 76px;

    padding: 13px 17px;

    gap: 15px;

    border-radius: 19px;
  }

  .icon {
    width: 47px;
    height: 47px;

    font-size: 1.5rem;
  }

  .link-title {
    font-size: 0.98rem;
  }

  .link-description {
    font-size: 0.76rem;
  }

  footer {
    margin-top: 45px;
  }

  .modal-card {
    padding:
      40px 22px 28px;
  }

}


/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}