/* Custom styles for Nutrition on Thirty */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal - progressive enhancement, content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all content is visible without JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(123, 45, 139, 0.08);
    backdrop-filter: blur(10px);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
}

#mobileMenu.open {
    max-height: 320px;
}

/* Geometric accent shapes */
.geo-circle {
    border-radius: 50%;
}

.geo-square {
    border-radius: 12px;
}

/* Subtle pattern overlay for dark sections */
.pattern-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #D79FE3;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #E8C5EF;
    color: #3A1441;
}
