/* Custom styles for Ink Armory Art & Tattoo Studio */

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

/* Ensure content is visible by default for accessibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll reveal for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal-animated {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

/* Selection color */
::selection {
    background: #14b8a6;
    color: #092455;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #f0f7ff;
}

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

/* Ensure contrast on all interactive elements */
button, a {
    cursor: pointer;
}

/* Mobile menu link hover */
.mobile-link:hover {
    padding-left: 8px;
}

/* Gallery image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Card hover effects */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Pulse animation for badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}
.animate-bounce {
    animation: bounce 1s infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-display {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-display {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce,
    .animate-pulse {
        display: none !important;
    }
    body {
        color: #0c3d91;
        background: white;
    }
}
