/* Custom Styles for CJ's Labor Lounge */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    color: #334155 !important;
}

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

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

/* Product Cards */
.product-card {
    cursor: pointer;
}

.product-card img {
    will-change: transform;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Inputs */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #cbd5e1;
}

/* Selection */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Mobile Menu Links */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
