/* === Custom Styles for Toma Tattoo === */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base — content always visible by default */
.reveal {
    /* Default: visible, no animation needed */
}

/* Only apply hidden state when JS adds the class */
.reveal.revealed {
    animation: fadeUp 0.7s ease forwards;
}

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

/* Staggered delays for grid children */
.reveal:nth-child(1) { animation-delay: 0ms; }
.reveal:nth-child(2) { animation-delay: 100ms; }
.reveal:nth-child(3) { animation-delay: 200ms; }
.reveal:nth-child(4) { animation-delay: 300ms; }
.reveal:nth-child(5) { animation-delay: 400ms; }
.reveal:nth-child(6) { animation-delay: 500ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal.revealed {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #FAF0E0 inset !important;
    -webkit-text-fill-color: #402818 !important;
}

/* Selection color */
::selection {
    background: #C0603A;
    color: #FDF8F0;
}
