/* Custom styles for Daigle's Paint & Body */

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

/* Custom selection color */
::selection {
    background-color: #ff6b4f;
    color: white;
}

/* Subtle animations for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(24px);
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.05);
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:last-child {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #2d2d2d;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b4f;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b4f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Thin decorative lines */
.section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #2d2d2d, transparent);
}

/* Image hover effects */
img {
    transition: transform 0.6s ease;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
