/* Custom styles for The Pizza Shop */

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

/* Prevent flash of hidden content - all reveal elements are visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.animated.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 251, 245, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(192, 86, 42, 0.08);
}

/* Hero section - dark overlay ensures white text is readable */
#hero {
    background: linear-gradient(135deg, #2D140A 0%, #542514 50%, #7A351B 100%);
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(253, 207, 160, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(212, 172, 82, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Menu card hover effects */
#menu .group:hover {
    transform: translateY(-4px);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #C0562A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9D4522;
}

/* Selection color */
::selection {
    background: #C0562A;
    color: #FDFBF7;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotate, 0deg)); }
}

/* Apply gentle floating to stat cards */
#hero .absolute.bg-white,
#hero .absolute.bg-sand-100,
#hero .absolute.bg-terracotta-500 {
    animation: float 4s ease-in-out infinite;
}

#hero .absolute.bg-sand-100 {
    animation-delay: 1s;
}

#hero .absolute.bg-terracotta-500 {
    animation-delay: 2s;
}

/* Touch device optimizations */
@media (hover: none) {
    #hero .absolute.bg-white,
    #hero .absolute.bg-sand-100,
    #hero .absolute.bg-terracotta-500 {
        animation: none;
    }
}
