/* Custom styles for Zinella's Pizzas */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #16120e;
}
::-webkit-scrollbar-thumb {
    background: #352d22;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4703F;
}

/* Selection color */
::selection {
    background: rgba(196, 112, 63, 0.3);
    color: #fdfbf7;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(13, 11, 8, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 90, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Gold shimmer animation for decorative elements */
@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Subtle float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure all content is visible by default for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C4703F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure contrast for all text */
.text-sand-100 { color-scheme: dark; }
.text-sand-200 { color-scheme: dark; }
.text-sand-300 { color-scheme: dark; }
.text-sand-400 { color-scheme: dark; }
.text-sand-500 { color-scheme: dark; }

/* Mobile menu link transitions */
.mobile-menu-link {
    transition: color 0.3s ease;
}

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