/* ================================================
   Single Social Folder with 3 Clickable Cards
   ================================================ */

.social-folder-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.social-folder-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.social-folder-wrapper:hover .social-folder-label {
  color: #00AEEF;
  letter-spacing: 0.15em;
}

/* ---- Folder Shell ---- */
.social-folder {
  position: relative;
  width: 100px;
  height: 80px;
  border-radius: 0 10px 10px 10px;
  background-color: #1a3257;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-folder:not(.open):hover {
  transform: translateY(-5px) scale(1.02);
}

.social-folder.open {
  transform: translateY(-10px);
}

/* Folder tab */
.social-folder::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 35px;
  height: 12px;
  border-radius: 6px 6px 0 0;
  background-color: #1a3257;
}

/* ---- Social Cards (the "papers") ---- */
.social-card {
  position: absolute;
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.social-card svg {
  width: 28px;
  height: 28px;
  fill: white;
  transition: transform 0.3s ease;
}

/* Open state — fan the cards out */
.social-folder.open .social-card {
  opacity: 1;
  pointer-events: auto;
}

.social-card:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  z-index: 40 !important;
}

.social-card:hover svg {
  transform: scale(1.1);
}

/* Instagram — left */
.social-card.sc-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-folder.open .social-card.sc-instagram {
  transform: translate(-125%, -110%) rotate(-15deg);
}

/* LinkedIn — center */
.social-card.sc-linkedin {
  background: #0A66C2;
}
.social-folder.open .social-card.sc-linkedin {
  transform: translate(-50%, -140%) rotate(0deg);
}

/* Facebook — right */
.social-card.sc-facebook {
  background: #1877F2;
}
.social-folder.open .social-card.sc-facebook {
  transform: translate(25%, -110%) rotate(15deg);
}

/* ---- Front Flaps (the folder cover) ---- */
.folder-flap {
  position: absolute;
  z-index: 30;
  width: 100%;
  height: 100%;
  border-radius: 5px 10px 10px 10px;
  background-color: #00AEEF;
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
}

/* Closed / hover state */
.social-folder:not(.open):hover .folder-flap:first-of-type {
  transform: skew(20deg) scaleY(0.5);
}
.social-folder:not(.open):hover .folder-flap:last-of-type {
  transform: skew(-20deg) scaleY(0.5);
}

/* Open state — flaps locked open */
.social-folder.open .folder-flap:first-of-type {
  transform: skew(20deg) scaleY(0.5);
}
.social-folder.open .folder-flap:last-of-type {
  transform: skew(-20deg) scaleY(0.5);
}
