/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll effect */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 30px rgba(16, 42, 67, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-link {
    color: #102a43;
}

#navbar.scrolled .nav-link:hover {
    background-color: rgba(212, 148, 12, 0.1);
}

#navbar.scrolled .font-display {
    color: #102a43;
}

/* Menu category animations */
.menu-category {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

#mobile-menu.active {
    max-height: 400px;
    opacity: 1;
}

/* Smooth section transitions */
section {
    position: relative;
}

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

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

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

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

/* Selection color */
::selection {
    background: #d4a017;
    color: #102a43;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 3px solid #d4a017;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    #mobile-menu {
        max-height: none;
        opacity: 1;
    }
}
