/* Social Feed Premium Styling - V2 Aggressive Upgrade */

/* Keyframe for animated glow border */
@keyframes glow-pulse {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(0, 217, 165, 0.4),
      0 0 40px rgba(0, 217, 165, 0.2),
      0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  50% {
    box-shadow:
      0 0 30px rgba(0, 217, 165, 0.6),
      0 0 60px rgba(0, 217, 165, 0.3),
      0 30px 60px -12px rgba(0, 0, 0, 0.6);
  }
}

.facebook-feed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
  padding: 2rem 1rem;
  overflow-x: auto;
  /* Allow horizontal scroll if scaled content overflows */
}

/* Glassmorphism Card Container with Neon Glow */
.social-card {
  background: linear-gradient(135deg, rgba(17, 25, 40, 0.9) 0%, rgba(10, 15, 25, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 217, 165, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  animation: glow-pulse 3s ease-in-out infinite;
  transition: transform 0.4s ease, border-color 0.3s ease;
  width: fit-content;
  max-width: 100%;
}

.social-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 217, 165, 0.6);
}

/* 
 * V2 AGGRESSIVE SCALING: 1.8x on desktop (nearly double size)
 */
.fb-feed-scaler {
  transform-origin: center top;
  transition: transform 0.3s ease;
}

/* Desktop: Scale up aggressively */
@media (min-width: 1200px) {
  .fb-feed-scaler {
    transform: scale(1.8);
    /* Nearly double the visible size */
    margin-bottom: 500px;
    /* Compensate for vertical space used by scaling */
  }

  .social-card {
    padding: 4rem;
    border-radius: 24px;
  }
}

/* Medium Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .fb-feed-scaler {
    transform: scale(1.4);
    margin-bottom: 300px;
  }

  .social-card {
    padding: 3rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .fb-feed-scaler {
    transform: scale(1.2);
    margin-bottom: 150px;
  }

  .social-card {
    padding: 2rem;
  }
}

/* Mobile: Reset scale to fit screen */
@media (max-width: 767px) {
  .fb-feed-scaler {
    transform: scale(1);
    width: 100% !important;
    margin-bottom: 0;
  }

  .social-card {
    padding: 1rem;
    width: 100%;
    margin: 0;
    border-radius: 12px;
    animation: none;
    /* Disable glow animation on mobile for performance */
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
  }

  .facebook-feed-wrapper {
    padding: 1rem 0.5rem;
  }
}

/* Extra visual polish for the section */
#portfolio .section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #ffffff 0%, #00D9A5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}