/* Custom styles for Honey Bee's Nutrition */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e89072;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4522a;
}

/* Selection color */
::selection {
    background: #f3bba8;
    color: #6b2619;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Honeycomb pattern decoration */
.honeycomb-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d4522a' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1.99 31.75v-15l12-7.5zm0 2.1L3 17.9v12.7l10.99 6.35 10.99-6.35V17.9L13.99 11.35z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4522a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 82, 42, 0.1);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f9ddd3 0%, #faedcf 100%);
}
