/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0f12;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(94,252,232,0.25);
  --text-primary: #e8fffe;
  --text-secondary: rgba(200,255,250,0.5);
  --accent-1: #5efce8;   /* teal/tosca */
  --accent-2: #38bdf8;   /* sky blue */
  --accent-3: #2dd4bf;   /* teal darker */
  --featured-from: #0d7a6e;
  --featured-to: #0e9480;
  --cta-from: #16a34a;
  --cta-to: #059669;
  --radius: 20px;
  --radius-sm: 14px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ===========================
   ANIMATED BACKGROUND
=========================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  display: none;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #0d9488, transparent 70%);
  top: -15%; left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  bottom: -10%; right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #5efce8, transparent 70%);
  top: 40%; left: 60%;
  animation-delay: -9s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.08); }
}

/* ===========================
   CONTAINER
=========================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ===========================
   PROFILE
=========================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 4px;
}

.avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  position: relative;
  /* Static subtle glow (no animation on box-shadow = no layout thrash) */
  box-shadow: 0 0 30px rgba(94,252,232,0.4);
}

/* Composited pulse ring via pseudo-element: uses only transform+opacity (GPU layer) */
.avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(94,252,232,0.6);
  opacity: 0.7;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  display: block;
}

.avatar-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  font-weight: 700;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.15); opacity: 0.2; }
}

/* Name & Handle */
.profile-name {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.profile-handle {
  font-size: 0.9rem;
  color: var(--accent-1);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.profile-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 340px;
}

/* Social Pills */
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-pill svg {
  width: 18px; height: 18px;
}

.social-pill:hover {
  background: var(--surface-hover);
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(94,252,232,0.25);
}

/* ===========================
   STATS ROW
=========================== */
.stats-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.stat-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}

.link-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

/* Featured card */
.link-card.featured {
  background: linear-gradient(135deg, var(--featured-from), var(--featured-to));
  border-color: rgba(255,255,255,0.15);
}

.link-card.featured:hover {
  box-shadow: 0 16px 40px rgba(13,148,136,0.45);
  filter: brightness(1.08);
}

/* CTA card */
.link-card.cta {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  border-color: rgba(255,255,255,0.15);
}

.link-card.cta:hover {
  box-shadow: 0 16px 40px rgba(22,163,74,0.4);
  filter: brightness(1.08);
}

/* Icon */
.link-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: var(--transition);
}

.link-card:hover .link-icon {
  transform: scale(1.12) rotate(-5deg);
}

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

.link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.link-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* Arrow */
.link-arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.link-arrow svg {
  width: 18px; height: 18px;
  display: block;
}

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

/* ===========================
   FOOTER
=========================== */
.footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-top: 4px;
}

/* ===========================
   RIPPLE EFFECT
=========================== */
.ripple-el {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: scale(0);
  animation: ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 420px) {
  .container { padding: 36px 16px 48px; }
  .profile-name { font-size: 1.7rem; }
  .stats-row { gap: 8px; }
  .link-card { padding: 15px 16px; gap: 12px; }
}
