/* Custom Global Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sticky header style on scroll */
#site-header.header-scrolled {
    background-color: #111827; /* bg-brand-black */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Masonry Grid for Gallery */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem; /* mb-6 */
    display: inline-block;
    width: 100%;
}

/* Quiz Answer Button Hover Effect */
.answer-btn {
    transition: all 0.2s ease-in-out;
}
.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Testimonial fade transition */
.testimonial-item {
    transition: opacity 0.5s ease-in-out;
}

/* Animations from new design */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.animate-fade-in { animation: fade-in 0.8s ease-out; }
.animate-fade-in-delay { animation: fade-in 0.8s ease-out 0.2s backwards; }
.animate-fade-in-delay-2 { animation: fade-in 0.8s ease-out 0.4s backwards; }

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

.animate-ping-slow {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Floating Bubbles Animation */
@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift-x, 0px)) scale(1);
    opacity: 0;
  }
}
.bubble {
  animation: float-up linear infinite;
  box-shadow: inset 0 0 10px rgba(250, 204, 21, 0.2), 0 0 10px rgba(250, 204, 21, 0.1);
}

/* Sparkle Animation */
@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}
.animate-sparkle {
  animation: sparkle 1s ease-out forwards;
}

/* Glass Shine Animation */
@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(30deg);
  }
}
.glass-shine {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(250, 204, 21, 0.3), /* yellow-400 at 30% opacity */
    transparent
  );
  animation: shine 1.5s ease-in-out;
}

/* Pour Effect Animation */
@keyframes pour {
  0% {
    stroke-dashoffset: 400;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
}
@keyframes splash {
  0%, 50% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
.pour-stream {
  stroke-dasharray: 400;
  animation: pour 3s ease-in-out infinite;
}
.pour-splash {
  transform-origin: center;
  animation: splash 3s ease-out infinite;
}

/* Additional Quiz Animations */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoom-in {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

.animate-slide-in { animation: slide-in 0.5s ease-out; }
.animate-zoom-in { animation: zoom-in 0.8s ease-out; }
.animate-fade-in-delay-2 { animation: fade-in 0.5s ease-out 0.6s backwards; }
