/* Custom styles for Tattoo's & Majestix Vibez */

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: #6e1f32;
}

.navbar-scrolled .nav-link:hover {
    color: #c23250;
}

.navbar-scrolled .logo-text {
    color: #6e1f32;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9f2540;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e1f32;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #c23250;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* Print styles */
@media print {
    .scroll-reveal:not(.revealed) {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #navbar,
    #mobile-menu {
        display: none;
    }
}
