/* Custom styles for Rollin Nutrition */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #051526;
}
::-webkit-scrollbar-thumb {
    background: #7ED4C1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A8E6CF;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 21, 38, 0.08);
}

/* Scroll animations — progressive enhancement via JS */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate[data-animate] {
    opacity: 0;
    transform: translateY(24px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-animate[data-animate] {
        opacity: 1;
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero image floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-float {
    animation: float 4s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

/* Input autofill override for dark sections */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
