/* Logo Animation Styles */

/* Base logo styles */
.logo-img {
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Custom easing for bouncy effect */
  transform-origin: left center; /* Animate from the left side */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Initial state animation for logo when page loads */
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    opacity: 1;
    transform: translateY(10px) scale(1.05);
  }
  70% {
    transform: translateY(-5px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
}

/* Apply entrance animation on page load */
.logo-img {
  animation: logoEntrance 1.2s ease-out forwards;
}

/* Hover animation for logo */
.navbar-brand:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  transform: scale(1.05);
}

/* Scroll animation for logo */
.navbar.scrolled .logo-img {
  height: 80px !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
  transform: translateY(0) scale(1);
}

/* Pulse animation for logo when scrolled to top */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
}

/* Apply pulse animation when at top of page */
.navbar:not(.scrolled) .logo-img.pulse {
  animation: logoPulse 2s infinite ease-in-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo-img {
    height: 180px !important; /* Slightly smaller on mobile */
  }
  
  .navbar.scrolled .logo-img {
    height: 60px !important; /* Smaller when scrolled on mobile */
  }
}

/* Rotation animation for special events (can be toggled with JS) */
@keyframes logoSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.logo-img.spin {
  animation: logoSpin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
