/* Section base */
.social-section {
  background-color: #000; /* or #111 depending on your site */
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* Heading with fade-in animation */
.social-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #fff;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

/* Container for all cards */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.6s;
}

/* Individual cards */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2rem;
  background: #111;
  border-radius: 1rem;
  border: 1px solid #333;
  text-decoration: none;
  color: #fff;
  min-width: 120px;
  
  /* Smooth transitions */
  transition: 
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
    background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, background, box-shadow;
  cursor: pointer;
  box-shadow: 0 0 8px transparent;
}

/* Hover: lift, scale, shadow & darken background */
.social-card:hover {
  transform: translateY(-8px) scale(1.05);
  background: #1a1a1a;
  box-shadow: 0 12px 20px rgba(255, 255, 255, 0.15);
}

/* Icons styling with pulse on hover */
.social-card img {
  width: 32px;
  height: 32px;
  transition: filter 0.35s ease, transform 0.35s ease;
  will-change: filter, transform;
}

.social-card:hover img {
  transform: scale(1.15);
  animation: pulse 1.2s infinite ease-in-out;
}

/* Text styling with smooth color transition */
.social-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #eaeaea;
  transition: color 0.35s ease;
}

.social-card:hover span {
  color: #fff;
}

/* FadeInUp keyframes for subtle entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse effect for icons on hover */
@keyframes pulse {
  0%, 100% {
    transform: scale(1.15);
    filter: brightness(1.15);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .social-card {
    min-width: 100px;
    padding: 1rem 1.5rem;
  }
  
  .social-card img {
    width: 28px;
    height: 28px;
  }
  
  .social-card span {
    font-size: 0.85rem;
  }
}
