/* ==========================================
   OBJETOS FLUTUANTES: NUVENS DE CRISTAL E ESTRELAS
   Entre as seções "Sobre nós" e "Walking Updates"
   ========================================== */

.floating-decorations-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: -200px 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

/* Garantir que o container pai também permita overflow */
body,
.home-page {
  overflow-x: hidden;
  position: relative;
}

/* ==========================================
   NUVENS DE BOLINHAS DE CRISTAL
   ========================================== */

.crystal-cloud {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 400px;
  pointer-events: none;
  overflow: visible;
}

.crystal-cloud-left {
  left: 0;
  justify-content: flex-start;
  align-items: flex-start;
}

.crystal-cloud-right {
  right: 0;
  justify-content: flex-end;
  align-items: flex-end;
}

.crystal-ball {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(255, 182, 193, 0.3) 35%,
    rgba(221, 160, 221, 0.25) 45%,
    rgba(173, 216, 230, 0.3) 55%,
    rgba(144, 238, 144, 0.25) 65%,
    rgba(255, 255, 255, 0.85) 75%,
    rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 15px rgba(255, 182, 193, 0.4),
    0 0 20px rgba(221, 160, 221, 0.3),
    0 0 15px rgba(173, 216, 230, 0.3),
    0 0 10px rgba(144, 238, 144, 0.2),
    inset -3px -3px 8px rgba(0, 0, 0, 0.1),
    inset 3px 3px 8px rgba(255, 255, 255, 0.8),
    inset 0 0 20px rgba(255, 255, 255, 0.6);
  animation: crystalFloat 4s ease-in-out infinite;
  position: relative;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Variações de tamanho e posição para as bolinhas */
.crystal-cloud-left .crystal-ball:nth-child(1) {
  width: 16px;
  height: 16px;
  animation-delay: 0s;
  margin-left: 20px;
  margin-top: 10px;
}

.crystal-cloud-left .crystal-ball:nth-child(2) {
  width: 30px;
  height: 30px;
  animation-delay: 0.3s;
  margin-left: 40px;
  margin-top: 5px;
}

.crystal-cloud-left .crystal-ball:nth-child(3) {
  width: 23px;
  height: 23px;
  animation-delay: 0.6s;
  margin-left: 60px;
  margin-top: 20px;
}

.crystal-cloud-left .crystal-ball:nth-child(4) {
  width: 28px;
  height: 28px;
  animation-delay: 0.9s;
  margin-left: 30px;
  margin-top: 30px;
}

.crystal-cloud-left .crystal-ball:nth-child(5) {
  width: 26px;
  height: 26px;
  animation-delay: 1.2s;
  margin-left: 50px;
  margin-top: 15px;
}

.crystal-cloud-left .crystal-ball:nth-child(6) {
  width: 22px;
  height: 22px;
  animation-delay: 1.5s;
  margin-left: 70px;
  margin-top: 25px;
}

.crystal-cloud-left .crystal-ball:nth-child(7) {
  width: 29px;
  height: 29px;
  animation-delay: 1.8s;
  margin-left: 25px;
  margin-top: 35px;
}

.crystal-cloud-left .crystal-ball:nth-child(8) {
  width: 24px;
  height: 24px;
  animation-delay: 2.1s;
  margin-left: 55px;
  margin-top: 10px;
}

.crystal-cloud-left .crystal-ball:nth-child(9) {
  width: 27px;
  height: 27px;
  animation-delay: 2.4s;
  margin-left: 35px;
  margin-top: 20px;
}

.crystal-cloud-left .crystal-ball:nth-child(10) {
  width: 20px;
  height: 20px;
  animation-delay: 2.7s;
  margin-left: 65px;
  margin-top: 30px;
}

.crystal-cloud-left .crystal-ball:nth-child(11) {
  width: 30px;
  height: 30px;
  animation-delay: 3s;
  margin-left: 15px;
  margin-top: 15px;
}

.crystal-cloud-left .crystal-ball:nth-child(12) {
  width: 23px;
  height: 23px;
  animation-delay: 3.3s;
  margin-left: 45px;
  margin-top: 40px;
}

/* Nuvem à direita */
.crystal-cloud-right .crystal-ball:nth-child(1) {
  width: 23px;
  height: 23px;
  animation-delay: 0.2s;
  margin-right: 25px;
  margin-top: 15px;
}

.crystal-cloud-right .crystal-ball:nth-child(2) {
  width: 28px;
  height: 28px;
  animation-delay: 0.5s;
  margin-right: 45px;
  margin-top: 5px;
}

.crystal-cloud-right .crystal-ball:nth-child(3) {
  width: 22px;
  height: 22px;
  animation-delay: 0.8s;
  margin-right: 65px;
  margin-top: 20px;
}

.crystal-cloud-right .crystal-ball:nth-child(4) {
  width: 29px;
  height: 29px;
  animation-delay: 1.1s;
  margin-right: 30px;
  margin-top: 30px;
}

.crystal-cloud-right .crystal-ball:nth-child(5) {
  width: 19px;
  height: 19px;
  animation-delay: 1.4s;
  margin-right: 55px;
  margin-top: 10px;
}

.crystal-cloud-right .crystal-ball:nth-child(6) {
  width: 27px;
  height: 27px;
  animation-delay: 1.7s;
  margin-right: 75px;
  margin-top: 25px;
}

.crystal-cloud-right .crystal-ball:nth-child(7) {
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  margin-right: 20px;
  margin-top: 35px;
}

.crystal-cloud-right .crystal-ball:nth-child(8) {
  width: 30px;
  height: 30px;
  animation-delay: 2.3s;
  margin-right: 50px;
  margin-top: 15px;
}

.crystal-cloud-right .crystal-ball:nth-child(9) {
  width: 23px;
  height: 23px;
  animation-delay: 2.6s;
  margin-right: 35px;
  margin-top: 25px;
}

.crystal-cloud-right .crystal-ball:nth-child(10) {
  width: 28px;
  height: 28px;
  animation-delay: 2.9s;
  margin-right: 60px;
  margin-top: 35px;
}

.crystal-cloud-right .crystal-ball:nth-child(11) {
  width: 22px;
  height: 22px;
  animation-delay: 3.2s;
  margin-right: 15px;
  margin-top: 20px;
}

.crystal-cloud-right .crystal-ball:nth-child(12) {
  width: 26px;
  height: 26px;
  animation-delay: 3.5s;
  margin-right: 40px;
  margin-top: 40px;
}

@keyframes crystalFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-25px) scale(1.1);
    opacity: 1;
  }
}

/* ==========================================
   ESTRELAS CRISTALIZADAS
   ========================================== */

.star {
  position: absolute;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, 
    rgba(173, 216, 230, 0.95) 0%,
    rgba(135, 206, 250, 0.85) 25%,
    rgba(100, 149, 237, 0.4) 35%,
    rgba(70, 130, 180, 0.35) 45%,
    rgba(30, 144, 255, 0.4) 55%,
    rgba(0, 191, 255, 0.35) 65%,
    rgba(135, 206, 250, 0.85) 75%,
    rgba(173, 216, 230, 0.95) 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 8px rgba(135, 206, 250, 0.8)) 
          drop-shadow(0 0 12px rgba(100, 149, 237, 0.7))
          drop-shadow(0 0 8px rgba(30, 144, 255, 0.6))
          drop-shadow(0 0 6px rgba(0, 191, 255, 0.5));
  animation: starTwinkle 2s ease-in-out infinite;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    0 0 10px rgba(135, 206, 250, 0.6),
    0 0 12px rgba(100, 149, 237, 0.5),
    0 0 8px rgba(30, 144, 255, 0.5),
    0 0 6px rgba(0, 191, 255, 0.4),
    inset -2px -2px 5px rgba(0, 0, 0, 0.1),
    inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset 0 0 12px rgba(173, 216, 230, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, 
    rgba(173, 216, 230, 0.95) 0%,
    rgba(135, 206, 250, 0.85) 25%,
    rgba(100, 149, 237, 0.4) 35%,
    rgba(70, 130, 180, 0.35) 45%,
    rgba(30, 144, 255, 0.4) 55%,
    rgba(0, 191, 255, 0.35) 65%,
    rgba(135, 206, 250, 0.85) 75%,
    rgba(173, 216, 230, 0.95) 100%);
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 12px rgba(135, 206, 250, 0.6),
    0 0 15px rgba(100, 149, 237, 0.5),
    0 0 10px rgba(30, 144, 255, 0.5),
    0 0 8px rgba(0, 191, 255, 0.4),
    inset -2px -2px 6px rgba(0, 0, 0, 0.1),
    inset 2px 2px 6px rgba(255, 255, 255, 0.8),
    inset 0 0 15px rgba(173, 216, 230, 0.6);
  animation: starPulse 2s ease-in-out infinite;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, 
    rgba(135, 206, 250, 0.3) 0%,
    rgba(100, 149, 237, 0.25) 25%,
    rgba(173, 216, 230, 0.4) 50%,
    rgba(30, 144, 255, 0.25) 75%,
    rgba(0, 191, 255, 0.2) 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 10px rgba(135, 206, 250, 0.5);
  animation: starRotate 3s linear infinite;
  opacity: 0.6;
}

/* Posições das estrelas */
.star-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  transform-origin: center;
}

.star-2 {
  top: 35%;
  left: 25%;
  animation-delay: 0.3s;
  transform-origin: center;
}

.star-3 {
  top: 15%;
  left: 40%;
  animation-delay: 0.6s;
  transform-origin: center;
}

.star-4 {
  top: 60%;
  left: 50%;
  animation-delay: 0.9s;
  transform-origin: center;
}

.star-5 {
  top: 45%;
  left: 65%;
  animation-delay: 1.2s;
  transform-origin: center;
}

.star-6 {
  top: 30%;
  left: 75%;
  animation-delay: 1.5s;
  transform-origin: center;
}

.star-7 {
  top: 55%;
  left: 85%;
  animation-delay: 1.8s;
  transform-origin: center;
}

.star-8 {
  top: 25%;
  left: 90%;
  animation-delay: 2.1s;
  transform-origin: center;
}

/* Estrelas adicionais na seção Walking Updates */
.walking-updates-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.walking-updates-stars .star-9 {
  top: 10%;
  left: 8%;
  animation-delay: 0.2s;
  transform-origin: center;
}

.walking-updates-stars .star-10 {
  top: 25%;
  left: 18%;
  animation-delay: 0.5s;
  transform-origin: center;
}

.walking-updates-stars .star-12 {
  top: 45%;
  left: 12%;
  animation-delay: 1.1s;
  transform-origin: center;
}

.walking-updates-stars .star-13 {
  top: 60%;
  left: 28%;
  animation-delay: 1.4s;
  transform-origin: center;
}

.walking-updates-stars .star-15 {
  top: 50%;
  left: 72%;
  animation-delay: 2s;
  transform-origin: center;
}

.walking-updates-stars .star-16 {
  top: 20%;
  left: 88%;
  animation-delay: 2.3s;
  transform-origin: center;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
  }
}

@keyframes starPulse {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes starRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .floating-decorations-container {
    height: 150px;
    margin: -75px 0;
  }
  
  .crystal-cloud {
    max-width: 250px;
  }
  
  .crystal-ball {
    width: 12px;
    height: 12px;
  }
  
  .crystal-cloud-left .crystal-ball,
  .crystal-cloud-right .crystal-ball {
    width: 12px;
    height: 12px;
  }
  
  .star {
    width: 3px;
    height: 3px;
  }
}

