/* Custom styles for VooDoo Needles LLC */

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

/* Scroll reveal base styles - content is VISIBLE by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply animation state when JS adds the class and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:not(.is-visible) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar transition for scrolled state */
.navbar-scrolled {
    background: rgba(58, 15, 15, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Geometric shape decorations */
.geo-diamond {
    transform: rotate(45deg);
}

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

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

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

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

/* Selection color */
::selection {
    background: #ff6b6b;
    color: white;
}

/* 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);
    }
}

/* Gallery hover overlay */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Service card hover effect */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Pulse animation for decorative dots */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 38, 38, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
