/* Custom styles for Jamil's Cafe */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a0e22;
}
::-webkit-scrollbar-thumb {
    background: #6B2F5B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b5289;
}

/* Selection color */
::selection {
    background: #C8842A;
    color: #2a0e22;
}

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(42, 14, 34, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Menu card hover effects */
.group:hover .group-hover\\:bg-amber-500\\/30 {
    background: rgba(200, 132, 42, 0.3);
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(200, 132, 42, 0.15);
}

/* Image hover container */
.grid > div {
    position: relative;
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

#mobile-menu.closing {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Subtle pulse for decorative elements */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.05);
    }
}

.absolute.top-1\/4,
.absolute.bottom-1\/4 {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* Hero text gradient shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-plum-900 {
        background-color: Canvas;
    }
    .text-plum-900 {
        color: CanvasText;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
