.socials-section {
  position: relative;
  padding: 8rem 2rem;
  background-color: #000;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

/* Decorative blobs */
.socials-section .blob {
  position: absolute;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  filter: blur(12rem);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.socials-section .blob-purple {
  background: #9b5de5;
  top: -8rem;
  left: -8rem;
}

.socials-section .blob-cyan {
  background: #00acee;
  bottom: -8rem;
  right: -8rem;
}

.socials-section .blob-pink {
  background: #ff4ecd;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  width: 30rem;
  height: 30rem;
}

/* Header */
.socials-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.socials-header h2 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.socials-header p {
  font-size: 1.25rem;
  color: #ccc;
  opacity: 0.9;
}

/* Premium underline bar */
.socials-underline {
  width: 140px;
  height: 0.25rem;
  border-radius: 999px;
  margin: 2rem auto 0 auto;
  background: linear-gradient(to right, #9b5de5, #00acee);
  box-shadow: 0 0 20px rgba(155, 93, 229, 0.55);
}

/* Grid */
.socials-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;

  /* for 3D tilt */
  perspective: 1200px;
}

/* Social Card */

.social-card {
  position: relative;
  padding: 3.25rem 2rem;
  border-radius: 2rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  /* Premium gradient + glass overlay */
  background:
    radial-gradient(circle at top left, rgba(155, 93, 229, 0.22), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 172, 238, 0.22), transparent 60%),
    linear-gradient(145deg, #0e0e10, #010203);

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.75),
    inset 0 0 25px rgba(255, 255, 255, 0.06);
}

/* Glowing conic edge */
.social-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 240deg,
    rgba(155, 93, 229, 0.4),
    rgba(0, 172, 238, 0.35),
    transparent 40%,
    transparent 80%,
    rgba(155, 93, 229, 0.45)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

/* Light inner wash */
.social-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-card:hover {
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.85),
    inset 0 0 30px rgba(255, 255, 255, 0.12);
  border-color: rgba(155, 93, 229, 0.5);
}

.social-card:hover::before,
.social-card:hover::after {
  opacity: 1;
}

/* Preset card colors */

.social-card.instagram {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.45), transparent 55%),
    linear-gradient(145deg, #111827, #020617);
}

.social-card.tiktok {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 63, 94, 0.45), transparent 55%),
    linear-gradient(145deg, #020617, #050816);
}

.social-card.youtube {
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(220, 38, 38, 0.45), transparent 55%),
    linear-gradient(145deg, #111827, #020617);
}

.social-card.spotify {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.45), transparent 55%),
    linear-gradient(145deg, #020617, #052e16);
}

/* Card Content Styles */

/* Icon */
.social-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
  transform-origin: center;
  transition: filter 0.3s ease;
}

/* idle float */
@keyframes socialIconFloat {
  0% { transform: translateY(0) translateZ(20px); }
  50% { transform: translateY(-6px) translateZ(20px); }
  100% { transform: translateY(0) translateZ(20px); }
}

/* hover pulse */
@keyframes socialIconPulse {
  0%   { transform: scale(1) translateZ(20px); }
  50%  { transform: scale(1.08) translateZ(20px); }
  100% { transform: scale(1) translateZ(20px); }
}

.social-card .social-icon {
  animation: socialIconFloat 4s ease-in-out infinite;
}

.social-card:hover .social-icon {
  animation: socialIconPulse 0.7s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.8));
}

/* Name */
.social-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* Followers (will be animated via JS) */
.social-followers {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

/* Follow CTA */
.social-follow {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-card:hover .social-follow {
  color: #fff;
}

/* Fade-up animation */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 768px) {
  .socials-header h2 {
    font-size: 3rem;
  }
  .socials-header p {
    font-size: 1rem;
  }
}
