/* Custom styles for Greenleaf Tattoo Company */

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

/* Custom selection color */
::selection {
    background-color: #c9a84c;
    color: #0a1628;
}

/* Navbar transition states */
.nav-scrolled {
    background-color: rgba(250, 248, 244, 0.97) !important;
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-scrolled .nav-text {
    color: #0a1628 !important;
}

.nav-scrolled .nav-subtext {
    color: #0a1628 !important;
}

.nav-scrolled .w-10 {
    background-color: #c9a84c !important;
}

.nav-scrolled .font-serif {
    color: #0a1628 !important;
}

/* Mobile menu open state */
.menu-open #menuIcon #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open #menuIcon #bar2 {
    opacity: 0;
}

.menu-open #menuIcon #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

.menu-open #mobileMenu {
    transform: translateX(0);
}

.menu-open {
    overflow: hidden;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

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

/* Hero decorative animation */
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

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

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

::-webkit-scrollbar-thumb {
    background: #0f2140;
    border-radius: 4px;
}

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

/* Form select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2140' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Image hover overlay transition fix */
.group:hover .absolute.inset-0 {
    backdrop-filter: blur(0px);
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal { display: none; }
    body { background: white; color: black; }
}
