/* Custom styles for Kevin Joseph Tattoo */

:root {
    --emerald-950: #052e16;
    --emerald-900: #14532d;
    --emerald-800: #166534;
    --emerald-700: #15803d;
    --emerald-600: #16a34a;
    --emerald-400: #4ade80;
    --emerald-300: #86efac;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ee;
}

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv02', 'cv03', 'cv04';
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

.scroll-reveal {
    transform: translateY(24px);
    opacity: 0;
}

.scroll-reveal.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

/* Custom selection color */
::selection {
    background-color: rgba(22, 99, 52, 0.2);
    color: var(--emerald-950);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal.revealed {
        transform: none;
        opacity: 1;
    }
    img {
        transition: none;
    }
}
