/* Custom styles for The Shark Shack Shaved Ice */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e1e28;
}
::-webkit-scrollbar-thumb {
    background: #5c5c72;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a7a8f;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 43, 0.3);
    color: #fff;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(18, 18, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(92, 92, 114, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Coral gradient text utility */
.text-coral-gradient {
    background: linear-gradient(135deg, #ff934e, #ff6b2b, #f04e0a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow effect */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(255, 107, 43, 0.15);
}

/* Pulse animation for badge */
@keyframes softPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #2c2c3a 0%, #1e1e28 100%);
}

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

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .reveal {
        transform: translateY(30px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        transform: translateY(0);
    }
}
