/* Social Media Card with Peeling Corner Effect */

.social-card {
  position: relative;
  width: 160px;
  height: 160px;
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 20px 0px;
  transition: all 0.8s ease-in-out;
  border: 2px solid #ffffff;
  margin: 20px 0;
}

.social-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4af37 0%, #f4eed6 50%, #d4af37 100%);
}

.social-logo {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  transition: all 0.6s ease-in-out;
  font-size: 1.05em;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.social-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
}

.social-icon .social-svg {
  fill: rgba(255, 255, 255, 0.9);
  width: 100%;
  transition: all 0.5s ease-in-out;
}

.social-box {
  position: absolute;
  padding: 10px;
  text-align: right;
  background: rgba(255, 255, 255, 0.4);
  border-top: 2px solid rgb(255, 255, 255);
  border-right: 1px solid white;
  border-radius: 10% 13% 42% 0%/10% 12% 75% 0%;
  box-shadow: rgba(100, 100, 111, 0.4) -5px 5px 20px 0px;
  transform-origin: bottom left;
  transition: all 0.8s ease-in-out;
  cursor: pointer;
}

.social-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.social-box:hover .social-svg {
  fill: white;
  filter: drop-shadow(0 0 8px white);
}

/* Instagram - Box 1 */
.social-box1 {
  width: 70%;
  height: 70%;
  bottom: -70%;
  left: -70%;
}

.social-box1::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #ff53d4 60%, #62c2fe 90%);
}

.social-box1:hover::before {
  opacity: 1;
}

/* Facebook - Box 2 */
.social-box2 {
  width: 50%;
  height: 50%;
  bottom: -50%;
  left: -50%;
  transition-delay: 0.15s;
}

.social-box2::before {
  background: radial-gradient(circle at 30% 107%, #4c8bf5 0%, #1877f2 90%);
}

.social-box2:hover::before {
  opacity: 1;
}

/* WhatsApp - Box 3 */
.social-box3 {
  width: 30%;
  height: 30%;
  bottom: -30%;
  left: -30%;
  transition-delay: 0.3s;
}

.social-box3::before {
  background: radial-gradient(circle at 30% 107%, #5ce97a 0%, #25d366 90%);
}

.social-box3:hover::before {
  opacity: 1;
}

/* Decorative Box 4 */
.social-box4 {
  width: 10%;
  height: 10%;
  bottom: -10%;
  left: -10%;
  transition-delay: 0.45s;
  background: rgba(212, 175, 55, 0.3);
}

/* Hover Effects */
.social-card:hover {
  transform: scale(1.05);
  box-shadow: rgba(212, 175, 55, 0.3) 0px 15px 40px 0px;
}

.social-card:hover .social-box {
  bottom: -1px;
  left: -1px;
}

.social-card:hover .social-logo {
  transform: translate(52px, -38px);
  letter-spacing: 0px;
  font-size: 0.95em;
}

/* Dark Mode Support */
body.dark-mode .social-card {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .social-background {
  background: linear-gradient(135deg, #b08a1a 0%, #3a3a3a 50%, #b08a1a 100%);
}

body.dark-mode .social-box {
  background: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.3);
  border-right-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .social-card {
    width: 180px;
    height: 180px;
    margin: 15px auto;
  }
  
  .social-logo {
    font-size: 1.1em;
    letter-spacing: 2px;
  }
  
  .social-icon {
    width: 20px;
    height: 20px;
  }
  
  .social-box {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .social-card {
    width: 160px;
    height: 160px;
  }
  
  .social-logo {
    font-size: 1em;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
}
