/* Custom styles for Jerry's Gourmet Pizza and Cafe */

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

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

::-webkit-scrollbar-track {
    background: #1e3a5f;
}

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

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

/* Gold accent underline for headings */
.font-serif::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a853, transparent);
    margin-top: 16px;
}

/* Hover effects for cards */
.bg-navy-800\/50:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
.bg-gold-500:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.3);
}

/* Image hover zoom */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overflow-hidden:hover::after {
    opacity: 1;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .overflow-hidden img {
        transition: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
    max-height: 400px;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #d4a853, #e0b863);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 25% 25%, rgba(212, 168, 83, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(212, 168, 83, 0.05) 0%, transparent 50%);
}
