@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Reset and General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 5px;
}

/* ========== CARD (MAIN) ========== */
main {
  background-color: #f0ebd8;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  padding: 80px;
  text-align: center;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Animated glow blobs (pink + blue) */
main::before,
main::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
  animation: floatGlow 6s ease-in-out infinite;
  z-index: -1;
}

main::before {
  top: -170px;
  right: -130px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 0, 67, 0.35),
    transparent 60%
  );
}
main::after {
  width: 340px;
  height: 340px;
  left: -190px;
  top: -210px;
  right: auto;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(0, 140, 255, 0.3),
    transparent 60%
  );
  animation-delay: -2s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-14px, 18px) scale(1.06);
    opacity: 1;
  }
}

/* Profile Section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.imageContainer {
  width: 200px;
  height: 100px;
  overflow: hidden;
  margin-bottom: 15px;

  background-color: transparent;
  border: none;

  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.imageContainer:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(255, 251, 252, 0.25),
    0 0 40px rgba(0, 140, 255, 0.18),
    0 2px 12px rgba(0, 0, 0, 0.1);
}

.image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text */
.name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.profession {
  font-size: 1rem;
  color: #777;
  margin-bottom: 10px;
}

.description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.4;

  text-shadow:
    0 0 10px rgba(255, 251, 252, 0.25),
    0 0 25px rgba(0, 140, 255, 0.1);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-link {
  color: #777;
  font-size: 3rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    color 0.25s ease,
    transform 0.2s ease,
    text-shadow 0.25s ease;
}

.social-link:hover {
  color: #333;
  transform: translateY(-2px);
  text-shadow:
    0 0 18px rgba(255, 251, 252, 0.25),
    0 0 35px rgba(0, 140, 255, 0.22);
}

/* Links Section */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== BUTTON LINK (NEON PINK) ========== */
.link {
  position: relative;
  display: block;

  background: rgba(255, 255, 255, 0.9);
  color: #000000;

  border-radius: 10px;
  padding: 14px 16px;

  text-decoration: none;
  font-weight: 900;

  overflow: hidden;
  z-index: 0;

  border: 1px solid rgba(255, 0, 67, 0.35);

  transition: 0.4s ease;
  width: 100%;
  text-align: center;
}

/* supaya efek garis animasi tidak menimpa teks */
.link > * {
  position: relative;
  z-index: 2;
}

/* background glow layer */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 67, 0.08);
  opacity: 0;
  transition: 0.4s ease;
  z-index: 1;
}

/* 4 garis sinar */
.link > span {
  position: absolute;
  display: block;
  z-index: 0;
}

/* atas */
.link > span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0043);
  animation: btn-anim1 1s linear infinite;
}

/* kanan */
.link > span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ff0043);
  animation: btn-anim2 1s linear infinite;
  animation-delay: 0.25s;
}

/* bawah */
.link > span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #ff0043);
  animation: btn-anim3 1s linear infinite;
  animation-delay: 0.5s;
}

/* kiri */
.link > span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #ff0043);
  animation: btn-anim4 1s linear infinite;
  animation-delay: 0.75s;
}

@keyframes btn-anim1 {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}
@keyframes btn-anim2 {
  0% {
    top: -100%;
  }
  50%,
  100% {
    top: 100%;
  }
}
@keyframes btn-anim3 {
  0% {
    right: -100%;
  }
  50%,
  100% {
    right: 100%;
  }
}
@keyframes btn-anim4 {
  0% {
    bottom: -100%;
  }
  50%,
  100% {
    bottom: 100%;
  }
}

/* Hover: glow seperti contoh */
.link:hover {
  border-radius: 10px;
  box-shadow:
    0 0 5px #c4c4c4,
    0 0 25px #c4c4c4,
    0 0 50px #c4c4c4,
    0 0 100px #f5f5f5;

  color: #000000;
  border-color: rgba(255, 0, 67, 0.55);
}

.link:hover::before {
  opacity: 1;
}

.link:active {
  transform: translateY(-1px) scale(0.99);
}
