/* Custom styles for Ol' Double Nickel Woodshop */

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

/* Base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(234, 179, 8, 0.3);
    color: #f0f4f8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #090e17;
}
::-webkit-scrollbar-thumb {
    background: #253d57;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #354f70;
}

/* Pulse animation for hero accent */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

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

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

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

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
    margin-left: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-hidden,
    .reveal-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-pulse-slow {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group:hover img {
        transform: none;
    }
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
    background: rgba(9, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Select dropdown styling */
select option {
    background: #0f1c2e;
    color: #f0f4f8;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgba(234, 179, 8, 0.6);
    outline-offset: 2px;
}
