
/* From Uiverse.io by vinodjangid07 */ 
.card {
  position: relative;
  width: 300px;
  height: 300px;
  background: lightgrey;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: all 1s ease-in-out;
  border: 2px solid rgb(255, 255, 255);
}

.background {
  position: absolute;
  inset: 0;
  background-color: #4158D0;
  background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
}

.logo {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  transition: all 0.6s ease-in-out;
  font-size: 1.3em;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 3px;
}

.logo .logo-svg {
  fill: white;
  width: 30px;
  height: 30px;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.icon .svg {
  fill: rgba(255, 255, 255, 0.797);
  width: 100%;
  transition: all 0.5s ease-in-out;
}

.box {
  position: absolute;
  padding: 10px;
  text-align: right;
  background: rgba(255, 255, 255, 0.389);
  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.364) -7px 7px 29px 0px;
  transform-origin: bottom left;
  transition: all 1s ease-in-out;
}

.box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.box:hover .svg {
  fill: white;
}

.box1 {
  width: 90%;
  height: 90%;
  bottom: -90%;
  left: -90%;
}

.box1::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #ff53d4 60%, #62c2fe 90%);
}

.box1:hover::before {
  opacity: 1;
}

.box1:hover .icon .svg {
  filter: drop-shadow(0 0 5px white);
}

.box2 {
  width: 70%;
  height: 70%;
  bottom: -70%;
  left: -70%;
  transition-delay: 0.2s;
}

.box2::before {
  background: radial-gradient(circle at 30% 107%, #91e9ff 0%, #00ACEE 90%);
}

.box2:hover::before {
  opacity: 1;
}

.box2:hover .icon .svg {
  filter: drop-shadow(0 0 5px white);
}

.box3 {
  width: 50%;
  height: 50%;
  bottom: -50%;
  left: -50%;
  transition-delay: 0.4s;
}

.box3::before {
  background: radial-gradient(circle at 30% 107%, #969fff 0%, #4d588bff 90%);
}

.box3:hover::before {
  opacity: 1;
}

.box3:hover .icon .svg {
  filter: drop-shadow(0 0 5px white);
}

.box4 {
  width: 30%;
  height: 30%;
  bottom: -30%;
  left: -30%;
  transition-delay: 0.6s;
}

.box4::before {
  background: radial-gradient(circle at 30% 107%, #0da849ff 0%, #1af113ff 90%);
}

.box4:hover::before {
  opacity: 1;
}

.box4:hover .icon .svg {
  filter: drop-shadow(0 0 5px white);
}


.box5 {
  width: 10%;
  height: 10%;
  bottom: -10%;
  left: -10%;
  transition-delay: 0.6s;
}

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

.card:hover .box {
  bottom: -1px;
  left: -1px;
}

.card:hover .logo {
  transform: translate(70px, -52px);
  letter-spacing: 0px;
  opacity: 0;
}

.socials-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text); /* adapts to light/dark mode */
  text-align: center;
}

/* Hide mobile buttons by default */
.social-buttons-mobile {
  display: none;
  flex-direction: column; /* vertical layout */
  align-items: center;    /* center horizontally */
  gap: 15px;
  margin-top: 20px;
}

/* Base style for all buttons */
.social-btn {
  display: inline-block;
  width: 200px;           /* consistent width */
  padding: 12px 0;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

/* Brand-specific colors */
.social-btn.telegram {
  background-color: #0088cc; /* Telegram blue */
}

.social-btn.whatsapp {
  background-color: #25d366; /* WhatsApp green */
}

.social-btn.discord {
  background-color: #7289da; /* Discord blurple */
}

.social-btn.instagram {
  background-color: #e1306c; /* Instagram pink */
}

/* Hover effect: slightly darker shade */
.social-btn.telegram:hover {
  background-color: #007ab8;
}

.social-btn.whatsapp:hover {
  background-color: #1ebc5a;
}

.social-btn.discord:hover {
  background-color: #5b6eae;
}

.social-btn.instagram:hover {
  background-color: #c1275b;
}

/* Show only on mobile */
@media (max-width: 900px) {
  .card {
    display: none; /* hide desktop card */
  }

  .social-buttons-mobile {
    display: flex; /* show vertical social buttons */
  }
}


/* Responsive adjustments */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-left,
  .hero-right {
    flex: unset;
  }

  .card {
    margin: 0 auto;
  }
}
