/* Custom styles for Organic Herbal Solutions */

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

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

::-webkit-scrollbar-track {
    background: #1a1410;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4a854, #c49438);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e8c060, #d4a854);
}

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

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

/* Scroll reveal - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(13, 10, 7, 0.95);
    border-bottom: 1px solid rgba(212, 168, 84, 0.1);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image hover zoom */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #d4a854;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d48a 0%, #d4a854 50%, #c49438 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 168, 84, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Product card shimmer effect */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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