/* Blue Lotus Tattoo — Custom Styles */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background-color: #e06038;
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d9c8b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e06038;
}

/* Reveal Animations — Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* No-JS fallback: show all reveals */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Navbar Transitions */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif {
    color: #a83a22 !important;
}

#navbar.scrolled a:not(.px-5) {
    color: #6e5640 !important;
}

#navbar.scrolled a:not(.px-5):hover {
    color: #e06038 !important;
}

/* Hero Image Optimization */
#hero img {
    will-change: transform;
}

/* Gallery Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #e06038;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(224, 96, 56, 0.1);
}

/* Subtle Pattern Overlay */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(224, 96, 56, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse Animation for Decorative Dots */
@keyframes soft-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

img[data-loaded="true"] {
    opacity: 1;
}

img:not([data-loaded]) {
    opacity: 0;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Card Tilt Effect (subtle) */
@media (prefers-reduced-motion: no-preference) {
    .group {
        will-change: transform;
    }
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, #e06038, #c94a28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Spacing Adjustments for Mobile */
@media (max-width: 640px) {
    #hero {
        min-height: 100svh;
    }
}

/* Print Styles */
@media print {
    #navbar, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
