/* Astro mascot styles */
.astro-container {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 100px;
  height: 100px;
  z-index: 999;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.astro-container.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: astro-float 3s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

.astro-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Floating animation for Astro */
@keyframes astro-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Speech bubble for Astro */
.astro-speech-bubble {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: white;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.8);
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}

.astro-speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.astro-container.visible .astro-speech-bubble {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .astro-container {
    bottom: 100px;
    right: 20px;
    width: 80px;
    height: 80px;
  }
  
  .astro-speech-bubble {
    font-size: 12px;
    padding: 6px 12px;
  }
}
