/* Custom styles for Don E Parker Excavating Inc */

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

/* Selection color */
::selection {
    background-color: rgba(212, 115, 78, 0.3);
    color: #f5f5f5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4734E;
}

/* Service card image hover effect handled by Tailwind group classes */

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 115, 78, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Progressive enhancement: scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .js-enabled .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
    .js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
    .js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
    .js-enabled .reveal-delay-4 { transition-delay: 0.4s; }
    .js-enabled .reveal-delay-5 { transition-delay: 0.5s; }
    .js-enabled .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Default state: all content visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

/* Service card default state */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Project gallery card */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Pulse animation for hero badge */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: subtle-pulse 2s ease-in-out infinite;
}

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

/* Ensure select dropdown is readable */
select option {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

/* Mobile menu transition */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), pointer-events 0.5s ease;
}

/* Hamburger animation */
#menu-icon-open span:nth-child(1) {
    transform-origin: center;
}
#menu-icon-open span:nth-child(3) {
    transform-origin: center;
}

/* Active mobile nav link */
.mobile-nav-link.active {
    color: #D4734E !important;
}
