/* Projects Bubbles: Elegant, Clickable Showcase with Randomization */

/* Container */

.projects-bubbles-container {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

/* Bubble Base */

.project-bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, rotate 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: bubbleReveal 1s ease forwards;
}

.project-bubble:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 20px rgba(74,144,226,0.25);
  background: linear-gradient(135deg, var(--white), rgba(74,144,226,0.05));
  rotate: 2deg;
}

/* Inner for Centering and Movement */

.bubble-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo Styles */

.bubble-logo {
  max-width: 80%;
  max-height: 80%;
  transition: transform 0.3s ease;
}

.project-bubble:hover .bubble-logo {
  transform: scale(1.05);
}

/* Animations */

@keyframes bubbleReveal {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(var(--amplitude)) translateX(var(--sway));
  }
}

/* Responsive: Stack on Mobile */

@media (max-width: 768px) {
  .projects-bubbles-container {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .project-bubble {
    position: relative;
    margin-bottom: 2rem;
    left: auto !important;
    top: auto !important;
  }
}

