:root {
  --pink: #f3a6d8;
  --pink-soft: #ffd1ec;
  --pink-dark: #f779c2fa;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: system-ui;
}

.bg {
  position: fixed;
  inset: 0;
  background: url("images/background.gif") center/cover no-repeat;
  filter: blur(12px) brightness(0.6);
  transform: scale(1);
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  padding: 3.5rem 3rem;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,0.35);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  border: 1px solid rgba(243,166,216,0.6);
  box-shadow:
    0 0 40px rgba(243,166,216,0.25),
    0 40px 80px rgba(0,0,0,0.7);
  text-align: center;
  color: white;
}

.avatar {
  width: 96px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: 2.6rem;
  letter-spacing: 0.25rem;
  color: rgba(255, 255, 255, 0.993);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(243,166,216,0.6);
}

.langs {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(243,166,216,0.7);
  color: var(--pink-soft);
  box-shadow: 0 0 12px rgba(243,166,216,0.6);
  font-size: 0.85rem;
}

/* badges */
.badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}

.badge {
  position: relative;
  font-size: 1.4rem;
  color: var(--pink-soft);
  cursor: pointer;
  transition: 0.2s;
  /* Glowing text effect for the symbol */
  text-shadow: 0 0 10px rgba(243, 166, 216, 0.8);
}

.badge:hover {
  transform: scale(1.3);
  color: white;
  text-shadow: 0 0 15px rgba(243, 166, 216, 1);
}

.badge::after {
  content: attr(data-text);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243,166,216,0.6);
  color: var(--pink-soft);
  box-shadow: 0 0 15px rgba(243,166,216,0.4);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  white-space: nowrap;
  z-index: 20;
}

.badge:hover::after {
  opacity: 1;
}

.divider {
  margin: 1.8rem 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink), transparent);
  box-shadow: 0 0 10px var(--pink);
}

.info div,
.location {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(243,166,216,0.6);
}

.location {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.socials a {
  position: relative;
  display: inline-block;
}

.socials img {
  width: 28px;
  filter: drop-shadow(0 0 10px rgba(243, 166, 216, 0.7));
  transition: 0.2s;
  display: block;
}

.socials a:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(243, 166, 216, 1));
}

.socials a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--pink);
  color: var(--pink-soft);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 15px rgba(243, 166, 216, 0.3);
}

.socials a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#card {
  --rx: 0deg;
  --ry: 0deg;
  transition: transform 0.3s ease-out;
  transform: translate(-50%, -50%) 
             scale(1) 
             rotateX(var(--rx)) 
             rotateY(var(--ry));
}

#card:hover {
  transform: translate(-50%, -50%) 
             scale(1.05) 
             rotateX(var(--rx)) 
             rotateY(var(--ry));
}