/* Custom styles for Sippi Life */

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(250, 245, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* Floating card animations */
.floating-card-1 {
  animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 5s ease-in-out infinite;
}
.floating-card-3 {
  animation: float3 5.5s ease-in-out infinite;
}
.floating-card-4 {
  animation: float4 4.5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(0.5deg); }
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-card-1,
  .floating-card-2,
  .floating-card-3,
  .floating-card-4 {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Selection color */
::selection {
  background: rgba(147, 51, 234, 0.15);
  color: #581c87;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ff;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #c084fc, #fbbf24);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #a855f7, #f59e0b);
}
