/* Custom styles for Goddess Nutrition Protein Bar */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040404;
}
::-webkit-scrollbar-thumb {
    background: #6c132e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11540;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #f5f5f5;
}

/* Hero parallax effect */
#hero {
    scroll-behavior: smooth;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(4, 4, 4, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold shimmer animation for decorative elements */
@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

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

/* Pulse animation for CTA buttons */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 168, 75, 0); }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Product card hover effects */
.group:hover .group-hover\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid rgba(212, 168, 75, 0.6);
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d0d0d inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
