/* Custom styles for Fat Rabbit Tattoo Studio */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
}

/* Nav scroll state */
.nav-scrolled {
    background-color: rgba(7, 7, 16, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

/* Form select arrow */
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='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Selection color */
::selection {
    background-color: rgba(190, 31, 64, 0.4);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

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

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #dc3d5f;
    outline-offset: 2px;
}

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

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

.absolute.-top-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

.absolute.-bottom-4.-right-4 {
    animation: float 4s ease-in-out infinite 2s;
}

/* Pulse animation for the dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
