/* Custom styles and animations */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar scroll effect */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
}

#navbar.scrolled .nav-logo-text {
  color: #5B2C6F;
}

#navbar.scrolled .nav-link {
  color: #5B2C6F;
}

/* Floating animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delay {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

/* Product card hover effect */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
  max-height: 400px;
}

/* Fade in animation on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f3e8ff;
}

::-webkit-scrollbar-thumb {
  background: #5B2C6F;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a2359;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ensure proper spacing for fixed navbar */
#hero {
  padding-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  .product-card {
    margin: 0 0.5rem;
  }
}
