/* Custom styles for Underhill Excavating */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4c4a8;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c25e3a;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children delays */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 300ms; }
.grid > .scroll-reveal:nth-child(5) { transition-delay: 400ms; }
.grid > .scroll-reveal:nth-child(6) { transition-delay: 500ms; }

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle pulse for CTA buttons */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(194, 94, 58, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(194, 94, 58, 0); }
}

/* Floating animation for decorative blobs */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Image hover zoom helper */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

/* Selection color */
::selection {
    background: #f8c4b0;
    color: #56291b;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
