/* Custom styles for All Knight Food Squad */

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

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

::-webkit-scrollbar-track {
    background: #0f1114;
}

::-webkit-scrollbar-thumb {
    background: #3f444d;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #ff5a3f;
    color: #0f1114;
}

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

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

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

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

/* Default visible state for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar active state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff5a3f;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #1f2329;
}

/* Subtle pattern overlay for charcoal sections */
.bg-charcoal-900::before,
.bg-charcoal-950::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.bg-charcoal-900,
.bg-charcoal-950 {
    position: relative;
}

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

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

/* Pulse animation for hero badge */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 90, 63, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 90, 63, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 63, 0);
    }
}

.animate-pulse {
    animation: pulse-ring 2s infinite;
}

/* Hover lift effect for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #ff5a3f 0%, #ffb4a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
