/* Custom styles for Pointer Style */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

/* Hero section - ensure proper dark background for light text */
#hero {
    background: linear-gradient(135deg, #0f1115 0%, #1a1d24 100%);
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(232, 99, 91, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery hover effects */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 17, 21, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar scroll behavior */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 77, 85, 0.5);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Button hover effects */
a[href^="tel"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0f1115;
}

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

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

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

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

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

/* Ensure text readability on all backgrounds */
.text-neutral-400,
.text-neutral-500 {
    /* These are specifically chosen to be readable on charcoal backgrounds */
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px #E8635B;
}

/* Print styles */
@media print {
    #navbar,
    #contactForm,
    .gallery-item {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
