/* Custom styles for Craddock Welding */

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

/* Scroll reveal base state - always visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.animated.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Custom selection color */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #7B2D3B;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #f4a0ab !important;
    box-shadow: 0 0 0 3px rgba(244, 160, 171, 0.2) !important;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

/* Gallery hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pattern overlay for sections */
.pattern-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.03;
    pointer-events: none;
}

/* Print styles */
@media print {
    nav, #backToTop, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
