/* Custom styles for Laz Welding Service */

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

/* Prevent content flash on scroll-reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service cards hover effect */
.service-card {
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--tw-color-terracotta-200, #ffd5b8);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #ffbb8f;
    border-radius: 5px;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff7d3f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure hero content is always visible */
#home {
    background-attachment: fixed;
}

/* Subtle pattern overlay for visual interest */
.bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 125, 63, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}
