/* Custom styles for All Purpose Lighting */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a22;
}
::-webkit-scrollbar-thumb {
    background: #ff7a4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e84118;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 15, 21, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Selection color */
::selection {
    background: #ff7a4a;
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #ff7a4a;
    outline-offset: 2px;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 122, 74, 0.15);
}

/* Image lazy load fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
