@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&family=Pacifico&family=Roboto:wght@400&display=swap');

body {
  margin: 0;
  background: #0a0a0f;
  font-family: 'Baloo 2', cursive;
  overflow-x: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.profile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  position: relative;
}

.profile-name {
  font-size: 2em;
  color: #bd84f0;
  margin-bottom: 75px;
  text-align: center;
  font-family: 'Pacifico', cursive;
}

.particle-area {
  position: relative;
  width: 300px;
  height: 250px;
}

/* Tarjeta nube */
.profile-card {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 80px 25px 30px;
  text-align: center;
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  color: #fff;
  z-index: 1;
  overflow: visible;
  background: url('https://i.ibb.co/B21yn5yg/black-texture-background-wallpaper-hd-by-deddyra-by-amyamaris-dfkf7gp-375w-2x.jpg') no-repeat center center;
  background-size: cover;
  animation: levitateXY 6s ease-in-out infinite alternate;
}

/* Glow separado de la tarjeta */
.profile-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border-radius: inherit;
  background: linear-gradient(270deg, #d8b4e2, #a18abb, #f5a9f0, #d8b4e2);
  filter: blur(25px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

/* Texto dentro de la tarjeta, encima del glow */
.profile-card .text-container {
  position: relative;
  z-index: 2;
}

/* Levitación orgánica */
@keyframes levitateXY {
  0%   { transform: translate(-50%, 0) rotate(0deg); }
  25%  { transform: translate(-48%, -6px) rotate(-1deg); }
  50%  { transform: translate(-52%, -12px) rotate(1deg); }
  75%  { transform: translate(-50%, -6px) rotate(-0.5deg); }
  100% { transform: translate(-50%, 0) rotate(0deg); }
}

/* Avatar */
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #d8b4e2;
  box-shadow: 0 0 10px rgba(216,180,226,0.5);
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

/* Título y bio */
.title {
  margin: 10px 0 5px;
  font-size: 1em;
  color: #fff;
  text-shadow: 0 0 5px hsl(299, 50%, 31%), 0 0 10px hsl(321, 29%, 44%);
  font-family: 'Baloo 2', cursive;
}

.bio {
  font-size: 0.85em;
  color: #fff;
  text-shadow: 0 0 5px hsl(299, 50%, 31%), 0 0 10px hsl(321, 29%, 44%);
  font-family: 'Roboto', sans-serif;
}

/* Enlaces debajo de la nube */
.links {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.links a {
  margin: 0 8px;
  display: inline-block;
  transition: transform 0.3s, opacity 0.3s;
}

.link-icon {
  width: 32px;
  height: 32px;
}

.links a:hover .link-icon {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Partículas detrás de la tarjeta */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.particle {
  position: absolute;
  font-size: 1em;
  opacity: 0.7;
  animation: float 6s linear infinite, drift 4s ease-in-out infinite alternate, glowPulseSync 4s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(100%) scale(0.8); opacity: 0; }
  50% { opacity: 0.7; }
  100% { transform: translateY(-120%) scale(1); opacity: 0; }
}

@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(15px); }
}

/* Media query para móviles */
@media (max-width: 400px) {
  .profile-card {
    width: 220px;
    padding: 60px 15px 25px;
  }

  .avatar {
    width: 100px;
    height: 100px;
    top: -60px;
  }

  .profile-name {
    font-size: 1.5em;
    margin-bottom: 50px;
  }
}
