/* ============================================
   BELLA'S DELI — Custom Styles
   ============================================ */

/* 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 {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(140, 37, 37, 0.5);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #3d1a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8c2525;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(140, 37, 37, 0.2);
}

/* Hero text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > div > div > div:first-child > div {
    animation: fadeInUp 0.9s ease-out forwards;
}

#hero > div > div > div:first-child > div:nth-child(2) {
    animation: fadeInUp 0.9s ease-out 0.15s forwards;
    opacity: 0;
}

#hero > div > div > div:first-child > div:nth-child(3) {
    animation: fadeInUp 0.9s ease-out 0.3s forwards;
    opacity: 0;
}

#hero > div > div > div:first-child > div:nth-child(4) {
    animation: fadeInUp 0.9s ease-out 0.45s forwards;
    opacity: 0;
}

/* Menu item hover */
#menu .group:hover {
    transform: translateY(-2px);
}

/* Gallery images */
#gallery img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
