/* ============================================================
   JUSTO MIMESSI — Link in Bio
   iOS Liquid Glass Design System
   ============================================================ */

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

:root {
  --accent:      #e0ff4f;
  --dark:        #0a0a12;
  --white:       #ffffff;
  --radius-btn:  20px;
  --font:        'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --ease:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   LAYOUT — glass card floating over background
   ============================================================ */
.page {
  width: calc(100% - 24px);
  max-width: 460px;
  min-height: calc(100dvh - 24px);
  margin: 12px auto;
  padding: 0 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 28px;
  overflow: hidden;

  /* Liquid glass dark */
  background: rgba(12, 12, 20, 0.48);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.14);

  animation: pageEnter 0.55s var(--ease-out) both;
}

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

/* ============================================================
   BACKGROUNDS
   ============================================================ */
.bg-image {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -2;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.bg-overlay--dark {
  background: linear-gradient(180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.70) 100%
  );
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 4px;
  width: 100%;
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: #333;
  box-shadow:
    0 0 0 2.5px rgba(255,255,255,0.22),
    0 0 0 6px rgba(255,255,255,0.06),
    0 14px 36px rgba(0,0,0,0.5);
}

.profile__name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
}
.profile__name--dark { color: #111; }

.profile__subtitle {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-top: 5px;
  letter-spacing: 0.01em;
}
.profile__subtitle--dark { color: rgba(0,0,0,0.42); }

/* ============================================================
   SOCIAL ICONS — glass circles
   ============================================================ */
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;

  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 4px 16px rgba(0,0,0,0.28);
}
.social-icon:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 8px 24px rgba(0,0,0,0.38);
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

.social-icon--dark {
  background: rgba(0,0,0,0.06);
  color: #222;
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 4px 12px rgba(0,0,0,0.08);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: calc(100% + 40px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.12) 30%,
    rgba(255,255,255,0.12) 70%,
    transparent
  );
  margin: 18px 0 2px;
}
.divider--dark {
  background: linear-gradient(90deg,
    transparent,
    rgba(0,0,0,0.10) 30%,
    rgba(0,0,0,0.10) 70%,
    transparent
  );
}

/* ============================================================
   BUTTONS — iOS liquid glass
   ============================================================ */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, opacity 0.18s;
  position: relative;
  overflow: hidden;
  animation: floatBtn 4s ease-in-out infinite;
}
.buttons .btn:nth-child(1) { animation-delay: 0s; }
.buttons .btn:nth-child(2) { animation-delay: 0.55s; }
.buttons .btn:nth-child(3) { animation-delay: 1.1s; }
.buttons .btn:nth-child(4) { animation-delay: 1.65s; }
.buttons .btn:nth-child(5) { animation-delay: 2.2s; }
.buttons .btn:nth-child(6) { animation-delay: 2.75s; }
.buttons .btn:nth-child(7) { animation-delay: 3.3s; }

@keyframes floatBtn {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}
.btn:hover  { animation-play-state: paused; transform: translateY(-3px) !important; }
.btn:active { transform: translateY(0px) scale(0.985) !important; }

/* Shimmer on colored buttons */
.btn--primary::after,
.btn--dj-primary::after,
.btn--youtube::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { left: -120%; opacity: 0; }
  12%  { opacity: 1; }
  38%  { left: 170%; opacity: 0; }
  100% { left: 170%; opacity: 0; }
}

/* Primary — accent yellow glass */
.btn--primary {
  background: linear-gradient(135deg,
    rgba(224,255,79,0.94) 0%,
    rgba(195,230,35,0.90) 100%
  );
  color: #111;
  border: 1px solid rgba(255,255,255,0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 4px 20px rgba(224,255,79,0.20),
    0 2px 8px rgba(0,0,0,0.22);
}
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 8px 32px rgba(224,255,79,0.32),
    0 4px 16px rgba(0,0,0,0.28);
}

/* Secondary — dark glass */
.btn--secondary {
  background: rgba(255,255,255,0.09);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 4px 16px rgba(0,0,0,0.26);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 8px 24px rgba(0,0,0,0.32);
}

/* YouTube red */
.btn--youtube {
  background: linear-gradient(135deg,
    rgba(255,10,10,0.92) 0%,
    rgba(200,0,0,0.88) 100%
  );
  color: #fff;
  border: 1px solid rgba(255,110,110,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,160,160,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 20px rgba(255,0,0,0.20),
    0 2px 8px rgba(0,0,0,0.22);
}
.btn--youtube:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,180,180,0.38),
    0 8px 28px rgba(255,0,0,0.32),
    0 4px 16px rgba(0,0,0,0.28);
}

/* Dark (light pages) */
.btn--primary-dark {
  background: linear-gradient(135deg,
    rgba(10,10,20,0.90) 0%,
    rgba(28,28,48,0.86) 100%
  );
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 4px 20px rgba(0,0,0,0.20),
    0 2px 8px rgba(0,0,0,0.14);
}
.btn--secondary-dark {
  background: rgba(0,0,0,0.05);
  color: #222;
  border: 1px solid rgba(0,0,0,0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.90),
    0 2px 12px rgba(0,0,0,0.07);
}
.btn--secondary-dark:hover { background: rgba(0,0,0,0.09); }

/* DJ purple glass */
.btn--dj-primary {
  background: linear-gradient(135deg,
    rgba(124,58,237,0.88) 0%,
    rgba(91,33,182,0.84) 100%
  );
  color: #fff;
  border: 1px solid rgba(167,139,250,0.32);
  box-shadow:
    inset 0 1px 0 rgba(200,180,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.14),
    0 4px 20px rgba(124,58,237,0.32),
    0 2px 8px rgba(0,0,0,0.28);
}
.btn--dj-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(200,180,255,0.38),
    0 8px 32px rgba(124,58,237,0.48),
    0 4px 16px rgba(0,0,0,0.32);
}
.btn--dj-secondary {
  background: rgba(139,92,246,0.10);
  color: #d8b4fe;
  border: 1px solid rgba(139,92,246,0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(200,180,255,0.14),
    0 4px 16px rgba(0,0,0,0.28);
}
.btn--dj-secondary:hover {
  background: rgba(139,92,246,0.18);
  box-shadow:
    inset 0 1px 0 rgba(200,180,255,0.22),
    0 8px 24px rgba(124,58,237,0.22),
    0 4px 16px rgba(0,0,0,0.28);
}

.btn__icon { flex-shrink: 0; }
.btn__icon svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ============================================================
   PROOF BADGE
   ============================================================ */
.proof-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.73rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
  text-align: center;
}
footer a { color: inherit; text-decoration: none; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.12s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .profile__name  { font-size: 1.6rem; }
  .profile__avatar { width: 104px; height: 104px; }
  .page { width: calc(100% - 32px); margin: 16px auto; min-height: calc(100dvh - 32px); }
}
