/* ===========================
   Vital Life Connection
   Linktree Page Stylesheet
   Font: DM Sans
   Primary: #5B0D76
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --purple:        #5B0D76;
  --purple-mid:    #8B2FA8;
  --purple-light:  #C47EDB;
  --purple-pale:   #EDD6F5;
  --rose:          #F4C6E7;
  --white:         #FFFFFF;
  --card-bg:       rgba(255, 255, 255, 0.78);
  --card-border:   rgba(91, 13, 118, 0.12);
  --card-shadow:   0 4px 24px rgba(91, 13, 118, 0.10);
  --card-hover-shadow: 0 8px 36px rgba(91, 13, 118, 0.22);
  --radius:        18px;
  --transition:    0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ── Body & Background ── */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--purple);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 15% 0%,   #F7DEFF 0%, transparent 55%),
    radial-gradient(ellipse 100% 60% at 90% 20%,  #FADADD 0%, transparent 50%),
    radial-gradient(ellipse 90%  70% at 50% 100%, #EDD6F5 0%, transparent 60%),
    linear-gradient(160deg, #FDFAFF 0%, #F9EFF9 40%, #FFF5FB 70%, #FDFBFF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 72px;
}

/* ── Decorative blobs (pure CSS, no images) ── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.18;
}
body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--purple-light), transparent 70%);
  top: -120px; left: -160px;
}
body::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  bottom: -100px; right: -120px;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Avatar ── */
.avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 0;
  background: none;
  margin-bottom: 18px;
  box-shadow: none;
  animation: floatIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  display: block;
}

/* ── Name ── */
.profile-name {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 14px;
  text-align: center;
  animation: fadeUp 0.6s 0.1s both;
}

/* ── Social Icons ── */
.socials {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.2s both;
}
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91, 13, 118, 0.08);
  color: var(--purple);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.socials a:hover {
  background: var(--purple);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: 0 4px 18px rgba(91, 13, 118, 0.35);
}
.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Link Cards ── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--purple);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
  animation: fadeUp 0.55s both;
}

/* Staggered animation delays */
.link-card:nth-child(1) { animation-delay: 0.25s; }
.link-card:nth-child(2) { animation-delay: 0.33s; }
.link-card:nth-child(3) { animation-delay: 0.41s; }
.link-card:nth-child(4) { animation-delay: 0.49s; }
.link-card:nth-child(5) { animation-delay: 0.57s; }
.link-card:nth-child(6) { animation-delay: 0.65s; }
.link-card:nth-child(7) { animation-delay: 0.73s; }

.link-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--card-hover-shadow);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(91, 13, 118, 0.28);
}

/* ── Card Thumbnail ── */
.card-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--purple-pale), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ── Card Label ── */
.card-label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--purple);
}

/* ── Card Arrow ── */
.card-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91, 13, 118, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: var(--purple-mid);
}
.link-card:hover .card-arrow {
  background: var(--purple);
  color: var(--white);
  transform: translateX(3px);
}
.card-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Footer ── */
.footer {
  margin-top: 44px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--purple-light);
  letter-spacing: 0.04em;
  opacity: 0.7;
  animation: fadeUp 0.6s 0.8s both;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: scale(0.7) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .profile-name { font-size: 1.4rem; }
  .avatar-wrap  { width: 82px; height: 82px; }
  .card-label   { font-size: 0.93rem; }
}
