/* Custom styles for Pine Valley Contracting */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #a1a3aa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7b7d87;
}

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

/* Smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 250, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hover card lift effect */
.group {
    transition-property: transform, box-shadow;
    transition-duration: 300ms;
}

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

/* Animation for mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project card hover */
.group:hover img {
    transform: scale(1.05);
}

/* Subtle gradient text for special elements */
.gradient-text {
    background: linear-gradient(135deg, #E07A5F 0%, #d4613f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reduced motion support */
@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;
    }
}
