/* Custom styles for Boro Nutrition */

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

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f2f7f4;
}

::-webkit-scrollbar-thumb {
    background: #9cb89d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #749376;
}

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

.reveal.delay-100 {
    transition-delay: 0.1s;
}

.reveal.delay-200 {
    transition-delay: 0.2s;
}

.reveal.delay-300 {
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled #nav-container {
    box-shadow: 0 4px 20px rgba(44, 67, 48, 0.1);
    padding: 0.5rem 1rem;
}

/* Button hover effects */
a {
    transition: all 0.2s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #9cb89d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom selection color */
::selection {
    background-color: #c6d9c7;
    color: #1d2d21;
}
