/* Fine Lines Tattoo Shop — Custom Styles */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations — progressive enhancement */
.reveal {
    /* Default: visible (works without JS) */
}

.reveal.animated {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.animated.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.reveal.animated:nth-child(1) { transition-delay: 0.1s; }
.reveal.animated:nth-child(2) { transition-delay: 0.2s; }
.reveal.animated:nth-child(3) { transition-delay: 0.3s; }
.reveal.animated:nth-child(4) { transition-delay: 0.4s; }
.reveal.animated:nth-child(5) { transition-delay: 0.5s; }
.reveal.animated:nth-child(6) { transition-delay: 0.6s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-anim {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .reveal.animated {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

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

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
