/* Altruistic Tattoos by Jamie Lee — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2ea86e;
}

/* Selection color */
::selection {
    background: rgba(46, 168, 110, 0.3);
    color: #0a1628;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #2ea86e;
    outline-offset: 2px;
}

/* Reduce motion preference */
@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, .cta-section, #contact {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Utility: ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on select elements */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    appearance: none;
}

/* Subtle pulse for CTA buttons */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 4px 20px rgba(46, 168, 110, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(46, 168, 110, 0.55); }
}

.cta-btn {
    animation: pulse-soft 3s ease-in-out infinite;
}

.cta-btn:hover {
    animation: none;
}

/* Gallery item aspect ratios */
.gallery-item {
    aspect-ratio: auto;
}

/* Ensure hero images maintain aspect */
.hero-img-wrapper {
    min-height: 500px;
}

@media (max-width: 1023px) {
    .hero-img-wrapper {
        min-height: 400px;
    }
}
