/* ========================================
   Flagstaff Tattoo Company
   Clean Minimalist &middot; Burgundy + Blush
======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #fce7eb;
    color: #6e162e;
}

/* --- Hero Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal[data-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navigation --- */
.nav-text {
    color: #fce7eb;
}

.nav-link {
    color: #fce7eb;
}

.navbar-scrolled .nav-text,
.navbar-scrolled .nav-link {
    color: #6e162e;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    opacity: 0.6;
}

/* --- Custom Cursor on Interactive Elements --- */
a, button {
    cursor: pointer;
}

/* --- Smooth Image Loading --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 1px solid #f5a3b3;
    outline-offset: 2px;
}

/* --- Select Styling --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23fce7eb' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

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

::-webkit-scrollbar-track {
    background: #fdf0ed;
}

::-webkit-scrollbar-thumb {
    background: #f5a3b3;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d94062;
}

/* --- Mobile Menu Transitions --- */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                pointer-events 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Menu Line Animation --- */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}
