/* Custom Styles for Moore Power Auto Sales */

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

/* Loader Styles */
#loader {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f0f0f;
    transition: opacity 0.5s ease;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 4px;
}

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

/* Selection Color */
::selection {
    background-color: #FF6B6B;
    color: #ffffff;
}

/* Button Hover Effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Input Focus Styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 1px #FF6B6B;
}

/* Image Loading Placeholder */
img {
    background-color: #2a2a2a;
}

/* Navbar Active State */
nav a.active {
    color: #FF6B6B;
}

/* Gold Accent Text */
.text-gold {
    color: #D4AF37;
}

/* Subtle Glow Effects */
.glow-coral {
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.15);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
