/* Custom Animations and Utilities */

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

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

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

/* Menu Item Hover Effect */
.menu-item {
    position: relative;
    transition: all 0.3s ease;
}

.menu-item:hover h3 {
    color: #bc543c;
    transform: translateX(10px);
}

.menu-item h3 {
    transition: all 0.3s ease;
}

/* Mobile Menu Transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Navbar Background on Scroll */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Image Loading Placeholder */
img {
    background-color: #f2e6d8;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #bc543c;
    outline-offset: 4px;
}
