/* Custom styles for Dox Furniture */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 16, 58, 0.08);
    box-shadow: 0 1px 20px rgba(139, 16, 58, 0.06);
}

#navbar.scrolled .logo-text {
    color: rgb(139, 16, 58);
}

/* Custom selection color */
::selection {
    background: rgb(245, 211, 77);
    color: rgb(61, 5, 23);
}

/* Subtle gradient animation for hero */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid rgb(219, 68, 120);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgb(253, 244, 246);
}
::-webkit-scrollbar-thumb {
    background: rgb(245, 165, 186);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(237, 106, 155);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b103a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image loading placeholder */
img {
    background-color: rgb(253, 244, 246);
}
