/* =============================================
   TNJ Snack Shack — Custom Styles
   ============================================= */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Navbar */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

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

.navbar-transparent .nav-logo-text {
    color: #ffffff;
}

.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

.feature-card:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
}

/* Reveal Animations */
.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;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-nav-link {
    transition: all 0.2s ease;
}

/* Button hover effects */
a[href="#menu"]:hover,
a[href="#about"]:hover,
a[href="#gallery"]:hover,
a[href="#visit"]:hover,
a[href="#contact"]:hover {
    /* handled by individual link styles */
}

/* Selection */
::selection {
    background: #99f6e4;
    color: #042f2e;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img, .hover\:scale-105:hover {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Print */
@media print {
    nav, #contact, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
