/* Custom styles for Probst Excavating */

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

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

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

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #059669;
    color: #fefdf8;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(6, 78, 59, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Line animation for mobile menu toggle */
#menuToggle.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .line2 {
    opacity: 0;
}

#menuToggle.active .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Image hover zoom for project cards */
.group img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

#hero {
    position: relative;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group img,
    .group-hover\:scale-105,
    .transition-all,
    .transition-colors {
        transition: none;
        animation: none;
    }
}

/* Print styles */
@media print {
    header, footer, #contact {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    #hero .lg\:col-span-7 {
        padding-right: 2rem;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
