/* Custom styles for Tattoo Room website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5e3c;
}

/* Scroll indicator animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery item */
.gallery-item {
    position: relative;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#hamburger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active #hamburger span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active #hamburger span:nth-child(2) {
    opacity: 0;
}

#menuBtn.active #hamburger span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile links */
.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-scroll-line,
    .service-card:hover,
    .gallery-item img,
    .service-card > div:first-child,
    .service-card > div:first-child > div,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #1B4332;
    color: #FDFCF8;
}
