/* Custom styles for Double D's Appliance Resale */

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

/* Mobile menu button animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active #bar2 {
    opacity: 0;
}
#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #c73d55;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a82038;
}

/* Selection color */
::selection {
    background: #fce4ec;
    color: #7B1E3A;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(123, 30, 58, 0.1);
}
