/* Custom Styles for Old Ironside Tattoo */

:root {
    --coral: #FF7F50;
    --charcoal: #2C2C2C;
    --stone-50: #FAFAFA;
    --stone-100: #F5F5F5;
    --stone-200: #E5E5E5;
    --stone-300: #D4D4D4;
    --stone-400: #A3A3A3;
    --stone-500: #737373;
    --stone-600: #525252;
    --stone-700: #404040;
    --stone-800: #262626;
    --stone-900: #171717;
}

/* Custom Font Classes */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

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

/* Selection Color */
::selection {
    background-color: var(--coral);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--stone-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 0.8s ease forwards;
}

.reveal-text:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.3s;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.5s;
}

.reveal-text:nth-child(4) {
    animation-delay: 0.7s;
}

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

/* Scroll Reveal for Sections */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered animation delays */
.reveal-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal-on-scroll:nth-child(6) {
    transition-delay: 0.6s;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Image Loading Optimization */
img {
    content-visibility: auto;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* Reduced 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;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    button,
    .reveal-on-scroll {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
}
