/* Custom styles for Mike's Auto Upholstery */

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

/* Navbar styles */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Reveal animations - Progressive Enhancement */
/* Content is visible by default; JS adds animation class */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation states (added by JS when in viewport) */
.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Stagger children animations */
.reveal.staggered > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.reveal.staggered.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal.staggered.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal.staggered.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal.staggered.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal.staggered.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal.staggered.visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.animated,
    .reveal.animated.visible,
    .reveal.staggered,
    .reveal.staggered.visible > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-pulse {
        animation: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button hover effects */
button,
a {
    cursor: pointer;
}

/* Image lazy loading placeholder */
img {
    background-color: #e2e8f0;
}

/* Print styles */
@media print {
    .reveal.animated {
        opacity: 1;
        transform: none;
    }
    
    #back-to-top {
        display: none;
    }
}
