/* Custom styles for Namaste Kitchen */

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

/* Ensure content is always visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Menu lines animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(15, 21, 30, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #e4c158 0%, #d4a843 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover glow on cards */
.group:hover {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.05);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7b8d;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f0f4f8;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Mobile menu link animation */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-link {
        transition: none;
    }
}
