/* Custom styles for Karlys Pizza Menu */

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

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

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

::-webkit-scrollbar-thumb {
    background: #8b1a2b;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(139, 26, 43, 0.5);
    color: #fff;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 26, 43, 0.2);
}

/* Gold gradient text */
.gold-text {
    background: linear-gradient(135deg, #f0d68a 0%, #d4a843 50%, #c4952e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold gradient background */
.gold-gradient {
    background: linear-gradient(135deg, #e6c264 0%, #d4a843 50%, #c4952e 100%);
}

/* Burgundy gradient */
.burgundy-gradient {
    background: linear-gradient(135deg, #8b1a2b 0%, #691120 100%);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animation for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .card-hover {
        transition: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

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

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Image aspect ratio preservation */
img {
    object-fit: cover;
}

/* Prevent layout shift */
img {
    aspect-ratio: auto;
}
