/* Custom styles for Potpourri Northwest Interiors */

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

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

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

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

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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #E86A5B;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu button animation */
#menu-btn.active #menu-line-1 {
    transform: rotate(45deg);
    width: 24px;
}

#menu-btn.active #menu-line-2 {
    transform: rotate(-45deg);
    width: 24px;
    margin-left: 0;
}

/* Form 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 12 12' fill='none' stroke='%232C2C2C' stroke-width='1'%3E%3Cpolyline points='2 4 6 8 10 4'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card::before,
    .gallery-item img,
    a,
    button {
        transition: none;
    }
    
    .animate-scroll-indicator {
        animation: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
