/* === Custom Styles for Corner Bagelry === */

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

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

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

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(201, 169, 110, 0.3);
    color: #F5F0EB;
}

/* === Reveal Animations (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

/* === Navbar transitions === */
.nav-scrolled {
    background: rgba(8, 6, 6, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Gold shimmer effect on hover === */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* === Mobile menu transitions === */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* === Image hover zoom container === */
img {
    max-width: 100%;
    height: auto;
}

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

/* === Card hover lift === */
.reveal group:hover .rounded-2xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* === Gold accent line animation === */
@keyframes growRight {
    from { width: 0; }
    to { width: 3rem; }
}

/* === Floating animation for accent card === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Apply float to floating card if JS not available */
@media (prefers-reduced-motion: no-preference) {
    .absolute.z-20 {
        animation: float 4s ease-in-out infinite;
    }
}

/* === Parallax-like subtle movement === */
@media (prefers-reduced-motion: no-preference) {
    .bg-gradient-to-r.from-dark-950.via-dark-950\\/90.to-dark-950\\/40 {
        will-change: transform;
    }
}
