/* === Custom Styles for Layla's Cafe === */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* === Scroll Reveal Animations === */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Hamburger animation */
#menu-icon-1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-icon-2.open {
    transform: rotate(-45deg) translate(0px, 0px);
}

#menu-icon-3.open {
    opacity: 0;
    transform: translateX(10px);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 26, 43, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 217, 146, 0.1);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Selection color */
::selection {
    background: rgba(52, 201, 120, 0.3);
    color: #f0f4f8;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34c978;
}

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

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

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