/* Custom styles for Bullseye Deli */

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

/* Base animation setup for reveal elements */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal[data-reveal-delay] {
        transition-delay: 0s;
    }
    .group:hover img {
        transform: none;
    }
}

/* Navbar glass effect */
nav.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu button animation */
.menu-open #menu-btn .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.menu-open #menu-btn .menu-line .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open #menu-btn .menu-line:nth-child(3) {
    width: 6px;
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile menu open */
.menu-open #mobile-menu {
    transform: translateX(0);
}

/* Hero circle animations */
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.hero-circle {
    animation: float 8s ease-in-out infinite;
}

.hero-circle:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-circle:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
}

/* Pulse animation for dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Image hover */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection color */
::selection {
    background: #22c55e;
    color: #0f172a;
}

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

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.menu-open .mobile-link {
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}
