/* Custom styles for Pro Quality Painting */

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

/* Navigation text color handling */
.nav-text {
    color: rgba(255, 255, 255, 0.9);
}

.nav-subtext {
    color: rgba(255, 255, 255, 0.6);
}

nav.scrolled .nav-text {
    color: rgba(15, 23, 42, 0.9);
}

nav.scrolled .nav-subtext {
    color: rgba(15, 23, 42, 0.5);
}

nav.scrolled .nav-link {
    color: rgba(15, 23, 42, 0.7);
}

nav.scrolled .nav-link:hover {
    color: rgba(217, 119, 6, 0.9);
}

nav.scrolled .mobile-link {
    color: rgba(15, 23, 42, 0.8);
}

/* Scroll reveal base - content always visible */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobileMenu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Custom select styling */
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='%239ca3af' 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 0 center;
    padding-right: 2rem;
}

/* Selection color */
::selection {
    background-color: rgba(147, 51, 234, 0.15);
    color: inherit;
}

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

/* Subtle hover transitions for cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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