/* Base styles and custom animations */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    @media (prefers-reduced-motion: no-preference) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hero parallax-like effect handled in JS */

/* Gallery scroll animation */
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    @media (prefers-reduced-motion: no-preference) {
        animation: scrollGallery 30s linear infinite;
    }
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(42, 6, 12, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f5a8b8;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #722F37;
    color: #fce7eb;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* 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;
    }
    
    .animate-scroll {
        animation: none;
        overflow-x: auto;
    }
}

/* Date input styling override */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(330deg);
    cursor: pointer;
}
