/* Custom styles for Cavagnaro Tattoos */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #d96125;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c24518;
}

/* Hero animations */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out both;
}
.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* FAQ animations */
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-content {
    max-height: 300px;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #1A1A1A !important;
}

.nav-scrolled .mobile-link {
    color: #1A1A1A !important;
}

.nav-scrolled .menu-line {
    background: #1A1A1A !important;
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d96125;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    nav, #contactForm, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
