/* ================================================
   LINKTREE — style.css
   Theme: Dark glass · Electric accents · Minimal
   ================================================ */

:root {
  --bg:          #0a0a0f;
  --card-bg:     rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text:        #f0eeff;
  --muted:       #7b7a96;

  --ig-start:    #f58529;
  --ig-end:      #dd2a7b;
  --wa-color:    #25d366;
  --email-color: #5b9cf6;

  --radius:      20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
}

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND FX ───────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(221, 42, 123, 0.18) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.glow-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(91, 156, 246, 0.14) 0%, transparent 70%);
  bottom: -80px; left: -60px;
}

/* ── CARD ─────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 48px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);

  animation: cardIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── AVATAR ───────────────────────────────────── */
.avatar-wrap {
  position: relative;
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.1s ease both;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ig-start), var(--ig-end), var(--email-color));
  z-index: -1;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #1a1a28;
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* ── IDENTITY ─────────────────────────────────── */
.name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeUp 0.5s 0.15s ease both;
}

.handle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 36px;
  font-style: italic;
  animation: fadeUp 0.5s 0.2s ease both;
}

/* ── LINKS ────────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 0 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.035);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

/* Shine sweep on hover */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.5s ease;
}
.link-btn:hover::before { left: 160%; }

.link-btn:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255,255,255,0.15);
}

/* Staggered entrance */
.links .link-btn:nth-child(1) { animation: fadeUp 0.5s 0.25s ease both; }
.links .link-btn:nth-child(2) { animation: fadeUp 0.5s 0.35s ease both; }
.links .link-btn:nth-child(3) { animation: fadeUp 0.5s 0.45s ease both; }

/* ── Per-link accent colors ─── */
.link-ig:hover {
  background: linear-gradient(135deg, rgba(245,133,41,0.12), rgba(221,42,123,0.12));
  border-color: rgba(221,42,123,0.35);
  box-shadow: 0 8px 32px rgba(221,42,123,0.2);
}
.link-ig .link-icon { color: var(--ig-end); }

.link-wa:hover {
  background: rgba(37, 211, 102, 0.10);
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.18);
}
.link-wa .link-icon { color: var(--wa-color); }

.link-email:hover {
  background: rgba(91, 156, 246, 0.10);
  border-color: rgba(91, 156, 246, 0.35);
  box-shadow: 0 8px 32px rgba(91, 156, 246, 0.18);
}
.link-email .link-icon { color: var(--email-color); }

/* ── Link parts ─── */
.link-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.link-icon svg {
  width: 20px; height: 20px;
}
.link-btn:hover .link-icon { background: rgba(255,255,255,0.1); }

.link-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
}

.link-sub {
  font-size: 0.72rem;
  color: var(--muted);
  grid-column: 2;
  grid-row: 2;
  font-style: italic;
}

/* Arrow */
.link-arrow {
  font-size: 1rem;
  color: var(--muted);
  grid-row: 1 / 3;
  grid-column: 4;
  transition: transform var(--transition), color var(--transition);
}
.link-btn:hover .link-arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* ── FOOTER ───────────────────────────────────── */
.footer-txt {
  margin-top: 32px;
  font-size: 0.72rem;
  color: rgba(123,122,150,0.5);
  letter-spacing: 0.04em;
  animation: fadeUp 0.5s 0.55s ease both;
}

/* ── UTILITY ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 40px 20px 28px; border-radius: 24px; }
  .link-btn { padding: 14px 16px; }
}