* {
  margin: 0;
  border: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  font-family: ui-sans-serif, system-ui, Arial, sans-serif;
  color: #333;
}

.face-container {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

/* Face tracker image styling */
.face-tracker .face-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.1s ease-out;
}

/* Optional debug overlay */
.face-debug {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4;
}

/* Label under the face */
.face-label {
  margin-top: 16px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
.social-row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 24px;
  justify-content: center;
  align-items: center;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.social-item span {
  margin-top: 6px;
  font-size: 14px;
  color: #333;
}

.projects-ares {
  position: relative;
  width: 100%;
  height: 60vh;
  margin-top: 40px;
}

.project-bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.project-bubble.hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}
@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
}

.project-bubble {
  animation: float 4s ease-in-out infinite;
}

.project-bubble:nth-child(2) {
  animation-duration: 5s;
}
.project-bubble:nth-child(3) {
  animation-duration: 6s;
}
.project-bubble:nth-child(4) {
  animation-duration: 4.5s;
}
.project-bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Positioning based on your custom vars */
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);

  cursor: pointer;
  overflow: visible; /* critical */
}

.bubble-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffe7af;
}

.bubble-label {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 140%;
  overflow: visible;
  pointer-events: none;
}

.bubble-label text {
  font-size: 6px;
  font-weight: bold;
  fill: #333;
}

.bubble-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.project-bubble-wrapper {
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 768px) {
  .face-container {
    width: 250px;
    height: 250px;
  }

  .face-label {
    font-size: 20px;
  }
}
