:root {
  --bg: #2c0e36;
  --card-bg: #9c27b0;
  --text: #ffffff;
  --btn-bg: rgba(255, 255, 255, 0.15);
  --btn-hover: rgba(255, 255, 255, 0.25);
  --accent: #ff80ab;
  --radius: 18px;
  --card-placeholder: linear-gradient(180deg, #7b1fa2 0%, #4a148c 100%);
}

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

html,
body {
  min-height: 100vh;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  position: relative;
}

.bg-blur {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  background: linear-gradient(180deg, #6b1e75 0%, #9c27b0 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 24px;
  background: linear-gradient(
    to bottom,
    rgba(156, 39, 176, 0) 50%,
    rgba(156, 39, 176, 0.65) 75%,
    rgba(156, 39, 176, 0.98) 100%
  );
  text-align: center;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.username {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 14px;
}

.bio {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 12px;
  line-height: 1.5;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.socials a:hover {
  transform: translateY(-3px) scale(1.05);
  opacity: 0.95;
}

.socials a svg {
  width: 42px;
  height: 42px;
}

.link-cards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px 20px;
}

.link-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--card-placeholder);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.65) 100%);
  border-radius: var(--radius);
  pointer-events: none;
}

.link-card:hover,
.link-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  outline: none;
}

.link-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.link-icon svg {
  width: 18px;
  height: 18px;
}

.link-title {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 2;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .card {
    border-radius: 0;
    max-width: 100%;
  }

  h1 {
    font-size: 1.75rem;
  }

  .link-card {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 481px) {
  body {
    justify-content: center;
    padding: 30px 12px;
  }
}
