/* ============================================
   The Ozark Bistro — Custom Styles
   ============================================ */

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

/* Custom selection color */
::selection {
    background-color: #773146;
    color: #faf8f5;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(119, 49, 70, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #fbbf24;
    margin: 4px auto 0;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 60%;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   About Section
   ============================================ */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
}

.about-images.visible {
    animation: slideInLeft 0.8s ease forwards;
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
}

.about-content.visible {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Menu
   ============================================ */
.menu-category {
    opacity: 0;
    transform: translateY(20px);
}

.menu-category.visible {
    animation: fadeUp 0.6s ease forwards;
}

.menu-item {
    border-bottom: 1px solid rgba(119, 49, 70, 0.08);
    padding-bottom: 1rem;
    transition: padding-left 0.3s ease;
}

.menu-item:hover {
    padding-left: 8px;
}

.menu-item:last-child {
    border-bottom: none;
}

/* ============================================
   Experience Cards
   ============================================ */
.experience-card {
    opacity: 0;
    transform: translateY(20px);
}

.experience-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.experience-card:nth-child(1) { animation-delay: 0.1s; }
.experience-card:nth-child(2) { animation-delay: 0.2s; }
.experience-card:nth-child(3) { animation-delay: 0.3s; }
.experience-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 19, 25, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   Buttons
   ============================================ */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Form
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

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

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

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

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

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #contact,
    .gallery-item {
        display: none;
    }
}
