/* Custom styles for Eat a Pita */

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Reveal animations — progressive enhancement, only when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hide reveal animation by default for no-JS, show via JS only when motion preferred */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(123, 45, 142, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5A1D66;
}

/* Selection color */
::selection {
    background: #F5A623;
    color: #3D1247;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover glow */
button:hover, a:hover {
    cursor: pointer;
}
