/* Custom styles for Wayne BBQ */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base state — always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animated state — only applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.animated) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 16, 28, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 194, 139, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu open state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#menu-icon-close {
    display: none;
}

body.menu-open #menu-icon-open {
    display: none;
}

body.menu-open #menu-icon-close {
    display: flex;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0a1a2e;
}

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

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

/* Selection color */
::selection {
    background: rgba(43, 194, 139, 0.3);
    color: #f0f4f8;
}

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

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

/* Image loading placeholder */
img {
    background-color: #0a1a2e;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(43, 194, 139, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Glow effect for mint accents */
.glow-mint {
    box-shadow: 0 0 40px rgba(43, 194, 139, 0.15);
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #102742 inset !important;
    -webkit-text-fill-color: #f0f4f8 !important;
}
