/* Custom styles for Reed Between The Lines Tattoo Studio */

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

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

.nav-scrolled .nav-logo-text {
    color: #1a1a1a !important;
}

.nav-scrolled .nav-link {
    color: #5d4033 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-link {
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover {
    transform: translateX(8px);
}

/* Hamburger animation */
.mobile-menu-active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.375rem;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Fade-in on scroll (progressive enhancement) */
.fade-in-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #c43d1b;
    color: white;
}
