/* ============================================
   BIOLINK — Noir Editorial Design System
   Palette: #0F0F0F · #1A1A1A · #E8E4DF · #D4AF6A
   Fonts: Cormorant Garamond + Outfit
   ============================================ */

:root {
  --bg:        #0A0A0A;
  --surface:   #141414;
  --surface2:  #1E1E1E;
  --border:    rgba(212, 175, 106, 0.15);
  --border-h:  rgba(212, 175, 106, 0.45);
  --gold:      #D4AF6A;
  --gold-dim:  #A8864A;
  --text:      #E8E4DF;
  --text-muted:#9A9490;
  --text-dim:  #5A5652;
  --white:     #FAFAF8;
  --radius:    16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Particle Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Noise Texture Overlay ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ══════════════════════════════════════
   PROFILE SECTION
══════════════════════════════════════ */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease both;
}

/* ── Avatar ── */
.avatar-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 20px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border: 2px solid var(--bg);
}

/* Animated gradient ring */
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #D4AF6A,
    #A8864A,
    #F0D090,
    #C8963A,
    #D4AF6A
  );
  animation: spinRing 4s linear infinite;
  z-index: 2;
}

.avatar-ring.ring-2 {
  inset: -8px;
  opacity: 0.25;
  animation: spinRing 6s linear infinite reverse;
  background: conic-gradient(
    from 90deg,
    transparent 40%,
    #D4AF6A 50%,
    transparent 60%
  );
}

.avatar-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,106,0.18) 0%, transparent 70%);
  z-index: 1;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── Name & Bio ── */
.username {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 6px;
  text-align: center;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-align: center;
}

.bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  max-width: 300px;
  margin-bottom: 24px;
}

/* ── Social Icons ── */
.socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212,175,106,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,175,106,0.2);
}

.social-icon:hover::before { opacity: 1; }
.social-icon:hover svg { transform: scale(1.1); }

/* ══════════════════════════════════════
   LINKS SECTION
══════════════════════════════════════ */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Link Card ── */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;

  /* Staggered entrance */
  opacity: 0;
  transform: translateY(20px);
}

.link-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer sweep on hover */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(212,175,106,0.07) 50%,
    transparent 80%
  );
  transition: left 0.55s ease;
  pointer-events: none;
}

.link-card:hover::before { left: 160%; }

/* Left glow bar */
.link-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0;
  transition: var(--transition);
}

.link-card:hover {
  border-color: var(--border-h);
  background: var(--surface2);
  transform: translateX(4px);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    0 0 0 1px rgba(212,175,106,0.1),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.link-card:hover::after { opacity: 1; }

/* Featured card */
.link-card.featured {
  background: linear-gradient(135deg, #1C1810 0%, #141414 60%);
  border-color: rgba(212,175,106,0.3);
}

.link-card.featured::after { opacity: 0.6; }

/* NEW badge */
.link-card[data-label]::before {
  content: none;
}

.link-card[data-label] .link-title::after {
  content: attr(data-label);
  display: none;
}

.link-card.featured .link-text::before {
  content: 'NEW';
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 20px;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

/* ── Link Icon ── */
.link-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(212,175,106,0.08);
  border: 1px solid rgba(212,175,106,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: var(--transition);
}

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

.link-card:hover .link-icon {
  background: rgba(212,175,106,0.14);
  border-color: rgba(212,175,106,0.3);
  transform: scale(1.05);
}

/* ── Link Text ── */
.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.link-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ── Arrow ── */
.link-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: var(--transition);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-card:hover .link-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  animation: fadeUp 1s ease 0.6s both;
}

.heart {
  color: var(--gold);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

/* ══════════════════════════════════════
   ENTRANCE ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 36px 16px 48px; }
  .username  { font-size: 1.7rem; }
  .link-card { padding: 14px 16px; }
  .link-icon { width: 38px; height: 38px; }
  .link-icon svg { width: 16px; height: 16px; }
}

/* ── Selection ── */
::selection {
  background: rgba(212,175,106,0.25);
  color: var(--white);
}