.collage-banner-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  padding: 0 15px;
  background: url('../images/collage-banner-bg.png') no-repeat center center;
  background-size: contain;
}

.collage-banner-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Imagem na colagem */
.collage-image {
  position: absolute;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: white;
  will-change: transform, opacity;
  transform: translateZ(0); /* Force hardware acceleration */
}

.collage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.collage-image:hover {
  z-index: 100 !important;
  transform: scale(1.05) translateZ(0) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.collage-image:hover img {
  transform: scale(1.2);
}

.collage-image {
  cursor: pointer;
}

/* Linhas conectoras - SVG do Figma (3 arquivos separados) */
.collage-svg-form {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -40%);
  width: 90%;
  height: 80%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.4;
  animation: floatAnimation 6s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) translateZ(0); /* Force hardware acceleration */
}

.collage-svg-form:hover {
  opacity: 1;
  animation-play-state: paused;
}

/* Animação de flutuação suave */
@keyframes floatAnimation {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg) translateZ(0);
  }
  33% {
    transform: translate(-50%, -50%) translateY(-8px) rotate(0.5deg) translateZ(0);
  }
  66% {
    transform: translate(-50%, -50%) translateY(8px) rotate(-0.5deg) translateZ(0);
  }
}

/* Animação específica para cada forma */
.collage-svg-form-1 {
  animation-delay: 0s;
  animation-duration: 8s;
  z-index: 1;
}

.collage-svg-form-2 {
  animation-delay: -2.5s;
  animation-duration: 7s;
  z-index: 10;
}

.collage-svg-form-3 {
  animation-delay: -5s;
  animation-duration: 9s;
  z-index: 26;
}

/* Gradiente animado para os strokes do SVG */
.collage-svg-form svg,
.collage-svg-form object {
  display: block;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  will-change: filter, transform;
}
.collage-svg-form svg * {
  transition: all 0.4s ease;
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 4px 16px rgba(235, 93, 152, 0.3)) brightness(1.05);
  }
}

.collage-svg-form svg {
  animation: glowPulse 4s ease-in-out infinite;
}

.collage-svg-form-1 svg {
  animation-delay: 0s;
}

.collage-svg-form-2 svg {
  animation-delay: -1.3s;
}

.collage-svg-form-3 svg {
  animation-delay: -2.6s;
}

/* Máscaras e filtros para gradientes animados - Opção 3 */
.collage-svg-form svg,
.collage-svg-form object {
  position: relative;
}

/* Efeito de gradiente animado usando filtros CSS */
.collage-svg-form-1 svg,
.collage-svg-form-1 object {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  animation: gradientWave1 6s ease-in-out infinite;
}

.collage-svg-form-2 svg,
.collage-svg-form-2 object {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  animation: gradientWave2 7s ease-in-out infinite;
}

.collage-svg-form-3 svg,
.collage-svg-form-3 object {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  animation: gradientWave3 8s ease-in-out infinite;
}

/* Gradiente animado - Forma 1 (Azul/Pink) */
@keyframes gradientWave1 {
  0%, 100% {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)) brightness(1) contrast(1) saturate(1) hue-rotate(0deg);
  }
  25% {
    filter: drop-shadow(0 4px 12px rgba(0, 163, 211, 0.3)) brightness(1.1) contrast(1.1) saturate(1.2) hue-rotate(10deg);
  }
  50% {
    filter: drop-shadow(0 2px 8px rgba(235, 93, 152, 0.3)) brightness(1.15) contrast(1.05) saturate(1.3) hue-rotate(-10deg);
  }
  75% {
    filter: drop-shadow(0 4px 12px rgba(255, 207, 0, 0.25)) brightness(1.1) contrast(1.1) saturate(1.2) hue-rotate(5deg);
  }
}

/* Gradiente animado - Forma 2 (Verde/Laranja) */
@keyframes gradientWave2 {
  0%, 100% {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)) brightness(1) contrast(1) saturate(1) hue-rotate(0deg);
  }
  33% {
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.3)) brightness(1.12) contrast(1.08) saturate(1.25) hue-rotate(15deg);
  }
  66% {
    filter: drop-shadow(0 3px 10px rgba(255, 107, 53, 0.3)) brightness(1.08) contrast(1.12) saturate(1.2) hue-rotate(-15deg);
  }
}

/* Gradiente animado - Forma 3 (Multicolorido) */
@keyframes gradientWave3 {
  0%, 100% {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)) brightness(1) contrast(1) saturate(1) hue-rotate(0deg);
  }
  20% {
    filter: drop-shadow(0 4px 14px rgba(235, 93, 152, 0.4)) brightness(1.15) contrast(1.1) saturate(1.3) hue-rotate(-20deg);
  }
  40% {
    filter: drop-shadow(0 4px 14px rgba(0, 163, 211, 0.4)) brightness(1.12) contrast(1.08) saturate(1.25) hue-rotate(20deg);
  }
  60% {
    filter: drop-shadow(0 4px 14px rgba(255, 207, 0, 0.4)) brightness(1.18) contrast(1.12) saturate(1.35) hue-rotate(10deg);
  }
  80% {
    filter: drop-shadow(0 4px 14px rgba(76, 175, 80, 0.35)) brightness(1.1) contrast(1.05) saturate(1.2) hue-rotate(-10deg);
  }
}

.collage-svg-form img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.collage-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1) translateZ(0);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2) translateZ(0);
    opacity: 1;
  }
}

/* Cores para pontos e linhas */
.dot-blue { background: #00A3D3; }
.dot-yellow { background: #FFCF00; }
.dot-pink { background: #EB5D98; }
.dot-orange { background: #FF6B35; }
.dot-green { background: #4CAF50; }
.dot-red { background: #E53935; }
.line-blue { stroke: #00A3D3; }
.line-yellow { stroke: #FFCF00; }
.line-pink { stroke: #EB5D98; }
.line-orange { stroke: #FF6B35; }
.line-green { stroke: #4CAF50; }
.line-red { stroke: #E53935; }

.collage-image.entering {
  animation: fadeInRotate 1s ease-out;
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg) translateZ(0);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateZ(0);
  }
}

.collage-image.exiting {
  animation: fadeOutRotate 0.8s ease-in;
}

@keyframes fadeOutRotate {
  from {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateZ(0);
  }
  to {
    opacity: 0;
    transform: scale(0.8) rotate(5deg) translateZ(0);
  }
}

/* Fallback para navegadores antigos */
.old-browser .collage-banner-container,
html.old-browser .collage-banner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.old-browser .collage-banner-wrapper,
html.old-browser .collage-banner-wrapper {
  display: none;
}

.old-browser .collage-svg-form,
html.old-browser .collage-svg-form {
  display: none;
}

.old-browser .collage-banner-fallback,
html.old-browser .collage-banner-fallback {
  display: block !important;
  max-width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.collage-banner-fallback {
  display: none;
}

.collage-banner-container:not(.old-browser) .collage-banner-fallback {
  display: none;
}

@media (max-width: 1200px) {
  .collage-banner-container {
    padding: 0 20px;
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .collage-banner-container {
    padding: 0 15px;
    min-height: 400px;
  }

  .collage-image {
    border-radius: 10px;
  }

  .collage-dot {
    width: 8px;
    height: 8px;
  }
}

/* Lightbox para exibir imagens em tamanho real */
.collage-image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collage-image-lightbox.open {
  display: flex;
  opacity: 1;
}

.collage-image-lightbox__content {
  position: relative;
  width: 90%;
  max-width: 90vw;
  height: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 30px 20px;
}

.collage-image-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #ffd;
  padding: 0;
  z-index: 10000;
  outline: none;
}

.collage-image-lightbox__close:focus {
  outline: none;
}

.collage-image-lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.collage-image-lightbox__image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.collage-image-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .collage-image-lightbox__content {
    width: 95%;
    height: 95%;
  }
}

