/* Google Fonts - Plus Jakarta Sans for a modern tech feel */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
  /* Dynamic Mesh Gradient Variables */
  --color-1: #FF3CAC;
  --color-2: #784BA0;
  --color-3: #2B86C5;

  --text-primary: #1a1a1a;
  --text-secondary: #555555;

  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.5);
  --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --card-hover-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);

  --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  /* Modern Mesh Gradient Background */
  background-color: #ff9a9e;
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  background-size: 200% 200%;
  animation: gradientCheck 15s ease infinite;

  /* Adding a floating bubble effect overlay */
  position: relative;
  overflow-x: hidden;
}

/* Moving background gradient */
@keyframes gradientCheck {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating Shapes Background */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(80px);
  z-index: -1;
  animation: floatShape 20s infinite alternate;
}

body::before {
  background: #784BA0;
  top: -10%;
  left: -10%;
}

body::after {
  background: #2B86C5;
  bottom: -10%;
  right: -10%;
  animation-duration: 25s;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.2);
  }
}

.container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}

/* Profile Section - Linktree Style (Clean & Floating) */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
}

.avatar {
  width: 180px;
  /* Larger size */
  height: 180px;
  border-radius: 24px;
  /* Square with rounded corners (Squircle) */
  object-fit: cover;
  object-position: top;
  /* Ensures the face is visible */
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:hover {
  transform: scale(1.05) rotate(2deg);
  border-color: #fff;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-bio {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 500;
  max-width: 90%;
}

/* Update Socials to be cleaner */
.socials-container {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  justify-content: center;
}

.social-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  background: #fff;
  color: var(--color-2);
}

/* Links Section */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-btn {
  position: relative;
  background: #fff;
  padding: 1.2rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  overflow: hidden;
  /* For shine effect or contained animations */
}

.link-btn:hover {
  transform: translateY(-5px) scale(1.05);
  /* More lift and scale */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  /* Deeper shadow */
  border-color: #fff;
  background: rgba(255, 255, 255, 1);
  filter: brightness(1.05);
}

.link-btn .link-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(43, 134, 197, 0.1), rgba(120, 75, 160, 0.1));
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2B86C5;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

/* Icon Animation on Hover */
.link-btn:hover .link-icon-box {
  transform: scale(1.2) rotate(-15deg);
  /* Stronger rotation and scale */
  background: linear-gradient(135deg, #2B86C5, #784BA0);
  color: #fff;
  box-shadow: 0 4px 15px rgba(43, 134, 197, 0.4);
  /* Glow effect */
}

.link-arrow {
  background: #f0f0f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: #aaa;
  transition: all 0.3s ease;
}

.link-btn:hover .link-arrow {
  background: #2B86C5;
  color: #fff;
  transform: translateX(5px);
}

/* Footer */
.footer {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media(max-width: 380px) {
  .profile-name {
    font-size: 1.5rem;
  }
}

/* WhatsApp Promo Button Highlighting */
.whatsapp-promo-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: pulse-promo 2s infinite;
}

.whatsapp-promo-btn .link-icon-box {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.whatsapp-promo-btn .link-arrow {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.whatsapp-promo-btn:hover {
  background: linear-gradient(135deg, #20BD5A 0%, #0E7366 100%);
  border-color: #fff;
}

.whatsapp-promo-btn:hover .link-icon-box {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: scale(1.1) rotate(0deg);
  /* Reset rotation or keep it subtle */
  box-shadow: none;
}

.whatsapp-promo-btn:hover .link-arrow {
  background: #fff;
  color: #128C7E;
  transform: translateX(5px);
}

@keyframes pulse-promo {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Blue Promo Button Highlighting */
.blue-promo-btn {
  background: linear-gradient(135deg, #2B86C5 0%, #2980b9 100%);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: pulse-blue 2s infinite;
}

.blue-promo-btn .link-icon-box {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.blue-promo-btn .link-arrow {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.blue-promo-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #2B86C5 100%);
  border-color: #fff;
}

.blue-promo-btn:hover .link-icon-box {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: scale(1.1);
  box-shadow: none;
}

.blue-promo-btn:hover .link-arrow {
  background: #fff;
  color: #2B86C5;
  transform: translateX(5px);
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 134, 197, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(43, 134, 197, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(43, 134, 197, 0);
  }
}