/* ---------------------------------------
   BURBULŲ FORMOS SECTION
---------------------------------------- */

.bubble-types-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #ffe3f5 0%, #ffffff 100%);
}

/* Title animation */
.bubble-types-section .section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 900;
  color: #d21593;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.bubble-types-section .section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid */
.bubble-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* bigger cards */
  gap: 28px;
  padding: 20px;
}

/* CARD DESIGN — BIGGER + PREMIUM */
.bubble-type-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  border: 2px solid #ffccec;
  box-shadow: 0 14px 30px rgba(210, 21, 147, 0.12);
  text-align: center;
  cursor: pointer;

  opacity: 0;
  transform: translateY(40px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.8s ease;
}

.bubble-type-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover on desktop */
.bubble-type-card:hover {
  transform: translateY(-8px) scale(1.06);
  border-color: #ff9dd9;
  box-shadow: 0 22px 48px rgba(210, 21, 147, 0.25);
}

/* BIGGER, PERFECTLY ALIGNED IMAGE */
.bubble-type-card img {
  width: 100%;
  aspect-ratio: 1 / 1;         /* perfect square */
  object-fit: cover;           /* fills the container evenly */
  object-position: center;     /* centers the bubble shape */
  border-radius: 18px;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.3s ease;
}

/* Title under image */
.bubble-type-card h3 {
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #7a2667;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .bubble-type-card:hover {
    transform: none;
  }

  .bubble-types-grid {
    gap: 20px;
  }

  .bubble-type-card img:active {
    transform: scale(1.03);
  }
}

/* ---------------------------------------
   FULLSCREEN MODAL FOR BUBBLES
---------------------------------------- */

.bubble-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 999;
}

/* When opened */
.bubble-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal image */
.bubble-modal img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  animation: bubbleZoom .35s ease;
}

/* Modal title */
#bubbleModalTitle {
  margin-top: 16px;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
}

/* Zoom animation */
@keyframes bubbleZoom {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
