/* Custom styles for Wokcraft */

:root {
    --color-midnight-900: #050d18;
    --color-midnight-800: #0d1b2a;
    --color-midnight-700: #142840;
    --color-mint-400: #34d4a0;
    --color-mint-500: #0fb882;
}

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

/* Selection color */
::selection {
    background-color: rgba(52, 212, 160, 0.2);
    color: #0d1b2a;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

#navbar.scrolled .nav-text {
    color: #0d1b2a;
}

#navbar.scrolled .nav-link {
    color: #1b3452;
}

#navbar.scrolled .nav-link:hover {
    color: #0d1b2a;
}

#navbar.scrolled .menu-line {
    background-color: #0d1b2a;
}

#navbar.scrolled .mobile-link {
    color: #1b3452;
}

#navbar.scrolled .mobile-link:hover {
    color: #0d1b2a;
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Philosophy card hover */
.philosophy-card {
    transition: transform 0.4s ease;
}

.philosophy-card:hover {
    transform: translateY(-4px);
}

/* Dish card hover */
.dish-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dish-card:hover {
    transform: translateY(-2px);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Menu lines animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* Scroll reveal for below-fold sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

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

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

/* Thin scrollbar for webkit */
::-webkit-scrollbar {
    width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d1b2a;
}
