/* =====================================================
   SOCIAL-ICONS.CSS
   Reusable 3D Floating Social Icons with Brand Tooltips
   ===================================================== */

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.social-icons a {
  position: relative;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(79, 70, 229, 0.16);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(79, 70, 229, 0.06);
  transition: transform var(--transition-spring), box-shadow var(--transition-normal), background var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
  transform-style: preserve-3d;
  animation: float3D 5s ease-in-out infinite;
}

.social-icons a:nth-child(2) { animation-delay: 0.4s; }
.social-icons a:nth-child(3) { animation-delay: 0.8s; }
.social-icons a:nth-child(4) { animation-delay: 1.2s; }
.social-icons a:nth-child(5) { animation-delay: 1.6s; }

.social-icons a:hover {
  transform: translateY(-6px) scale(1.14);
  color: #ffffff !important;
  border-color: transparent;
}

.social.linkedin:hover {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  box-shadow: 0 12px 28px rgba(0, 119, 181, 0.4);
}

.social.github:hover {
  background: linear-gradient(135deg, #24292e 0%, #475569 100%);
  box-shadow: 0 12px 28px rgba(36, 41, 46, 0.4);
}

.social.email:hover {
  background: linear-gradient(135deg, #ea4335 0%, #ff6b35 100%);
  box-shadow: 0 12px 28px rgba(234, 67, 53, 0.4);
}

.social.twitter:hover {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bec 100%);
  box-shadow: 0 12px 28px rgba(29, 161, 242, 0.4);
}

.social.linktree:hover {
  background: linear-gradient(135deg, #39e09b 0%, #00c67c 100%);
  box-shadow: 0 12px 28px rgba(57, 224, 155, 0.4);
}

.social-icons a::after {
  content: attr(title);
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
}

.social-icons a:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}
