/* Joan Bautista Tattoo — Premium Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #f0f0f0;
    --text-muted: #8a8a8a;
    --accent: #c9a572;
    --accent-dim: rgba(201,165,114,0.15);
    --accent-glow: rgba(201,165,114,0.4);
    --border-subtle: rgba(255,255,255,0.06);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: all 0.4s var(--ease);
}

/* Reset */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed; inset:0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1px solid var(--accent-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-dot.hover { width: 14px; height: 14px; background: var(--accent-glow); }
.cursor-ring.hover { width: 50px; height: 50px; border-color: var(--accent); opacity: 0.6; }

/* Typography */
h1, h2, h3, h4, .logo { font-family: var(--font-heading); font-weight: 400; letter-spacing: 1px; }
a { cursor: none; }

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.2rem;
}
.section-title::after {
    content: '';
    position: absolute; bottom:0; left:50%;
    transform: translateX(-50%);
    width: 50px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.container { max-width: 1200px; margin:0 auto; padding:0 2rem; }
.section-padding { padding: 7rem 0; }

/* ─── Navbar ─── */
.navbar {
    position: fixed; top:0; left:0; width:100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.8rem 4rem;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--border-subtle);
}
.logo { font-size: 1.4rem; color: var(--text-primary); letter-spacing: 4px; text-transform: uppercase; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left:0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.8rem;
    color: var(--text-primary) !important;
    transition: var(--transition);
}
.btn-outline:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    box-shadow: 0 0 20px var(--accent-dim);
}
.btn-outline::after { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: none;
    z-index: 1001;
    padding: 8px;
}
.hamburger span {
    display: block; width: 24px; height: 1px;
    background: var(--text-primary);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ─── Hero ─── */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: #000;
    text-align: center;
    overflow: hidden;
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.hero-overlay {
    position: absolute; inset:0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 0 2rem; }
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}
.hero .btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent);
    padding: 1rem 3rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: var(--transition);
}
.hero .btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 40px var(--accent-dim);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 2;
}
.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Itinerary ─── */
.itinerary {
    display: flex; align-items: stretch;
    min-height: 3.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}
.itinerary-label {
    position: relative; z-index: 1;
    display: flex; align-items: center; flex: 0 0 auto;
    padding: 0 1.5rem;
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    color: var(--accent);
    font-size: 0.64rem; font-weight: 400;
    letter-spacing: 2px; text-transform: uppercase;
    white-space: nowrap;
}
.itinerary-marquee { overflow: hidden; display: flex; align-items: center; min-width: 0; }
.itinerary-track {
    display: flex; align-items: center; width: max-content;
    white-space: nowrap;
    animation: itinerarySlide 32s linear infinite;
}
.itinerary-track span {
    color: var(--text-muted);
    font-size: 0.72rem; font-weight: 300;
    letter-spacing: 1.4px; text-transform: uppercase;
}
.itinerary-track i {
    margin: 0 2.5rem;
    color: var(--accent);
    font-size: 0.58rem; font-style: normal;
}
@keyframes itinerarySlide {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* ─── Portfolio Gallery ─── */
.portfolio { background: var(--bg-primary); }
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.gallery-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.gallery-slides { min-width: 0; }
.gallery-slide { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.gallery-slide.is-active { display: grid; }
.gallery-slide.is-visible { opacity: 1; transform: translateY(0); }
.gallery-slide.is-leaving { opacity: 0; transform: translateY(-10px); }
.gallery-nav {
    width: 2.8rem; height: 2.8rem; border: 1px solid var(--border-subtle); border-radius: 50%;
    background: var(--bg-card); color: var(--text-primary); font-size: 1.4rem; cursor: pointer;
    transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.gallery-nav:hover, .gallery-nav:focus-visible { color: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/5;
    cursor: none;
}
.gallery-item img {
    width:100%; height:100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 0.6s;
    filter: grayscale(100%) brightness(0.9);
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}
.item-overlay {
    position: absolute; inset:0;
    background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.6s;
}
.item-overlay span {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    transform: translateY(15px);
    transition: transform 0.6s var(--ease);
}
.gallery-item:hover .item-overlay { opacity:1; }
.gallery-item:hover .item-overlay span { transform: translateY(0); }

/* ─── Gallery Lightbox ─── */
.lightbox[hidden] { display: none; }
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}
.lightbox img {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.lightbox-close {
    position: absolute; top: 1rem; right: 1.25rem;
    width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.7);
    color: var(--text-primary);
    font-size: 2rem; line-height: 1;
}
.lightbox-close:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Services / About ─── */
.services { background: var(--bg-secondary); }
.services-flex { display: flex; gap: 5rem; align-items: center; }
.services-text { flex:1; }
.services-text p { color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; font-size: 1.05rem; line-height: 1.8; }
.service-list { list-style: none; margin-top: 2rem; }
.service-list li {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    padding-left: 1.5rem;
    position: relative;
}
.service-list li::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    width: 8px; height: 1px;
    background: var(--accent);
}
.services-img-container { flex:1; display: flex; justify-content: center; align-items: center; }
.bio-portrait {
    width:100%; max-width: 400px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(15%);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-subtle);
    transition: filter 0.6s, box-shadow 0.6s;
}
.bio-portrait:hover { filter: grayscale(0%); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }

/* Process Card */
.services-card {
    background: var(--bg-card);
    padding: 3.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}
.process-horizontal { margin-top: 5rem; width:100%; }
.services-card h3 { font-size: 2rem; margin-bottom: 3rem; text-align: center; color: var(--accent); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 3rem; }
.step { display: flex; gap: 1.5rem; margin-bottom: 0; }
.process-horizontal .step { flex-direction: column; text-align: center; align-items: center; position: relative; }
.process-horizontal .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.2rem; right: -1.5rem;
    width: 3rem; height: 1px;
    background: var(--border-subtle);
}
.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}
.step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; }

/* ─── Booking Form ─── */
.booking { background: var(--bg-primary); }
.form-container { max-width: 600px; text-align: center; }
.form-container > h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1rem; }
.form-container > p { color: var(--text-muted); margin-bottom: 3rem; font-weight: 300; }

.contact-form { text-align: left; }

/* Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-group label {
    position: absolute;
    left: 0; top: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    pointer-events: none;
    transition: var(--transition);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    cursor: none;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.8rem;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
}
.form-group textarea { resize: vertical; min-height: 60px; }


.phone-group {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) 1fr;
    gap: 1.5rem;
}
.phone-prefix select {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: none;
}
.phone-prefix select:focus { outline: none; border-bottom-color: var(--accent); }
.phone-prefix select option { background: var(--bg-card); color: var(--text-primary); }
.phone-prefix label { top: -0.8rem; font-size: 0.75rem; color: var(--accent); letter-spacing: 1px; }
@media (max-width: 520px) {
    .phone-group { grid-template-columns: 1fr; gap: 0; }
}

/* Submit Button */
.btn { cursor: none; }
.btn-block {
    display: block; width:100%;
    margin-top: 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent);
    padding: 1.1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: none;
    position: relative;
    overflow: hidden;
}
.btn-block::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease);
    z-index: 0;
}
.btn-block:hover::before { transform: translateX(0); }
.btn-block:hover { color: var(--bg-primary); }
.btn-block span { position: relative; z-index: 1; }
.btn-block.loading { opacity: 0.5; pointer-events: none; }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem; right: 2rem;
    padding: 1.2rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s var(--ease);
    max-width: 400px;
    border: 1px solid var(--border-subtle);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--bg-card); color: var(--accent); border-color: var(--accent-dim); }
.toast.error { background: var(--bg-card); color: #e57373; border-color: rgba(229,115,115,0.2); }

/* ─── Floating WhatsApp ─── */
.whatsapp-float {
    position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 900;
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    border: 1px solid var(--accent); border-radius: 50%;
    background: var(--accent); color: var(--bg-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-float svg { width: 1.45rem; height: 1.45rem; fill: currentColor; }
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 30px var(--accent-dim);
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-primary);
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-content .logo { font-size: 1.1rem; letter-spacing: 3px; }
.copyright { color: var(--text-muted); font-size: 0.75rem; font-weight: 300; letter-spacing: 1px; }
.socials { display: flex; gap: 2rem; margin-top: 0.5rem; }
.socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}
.socials a:hover { color: var(--accent); }

/* ─── Animations ─── */
.fade-up { opacity:0; transform: translateY(30px); animation: fadeUpAnim 1s forwards ease-out; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fadeUpAnim { to { opacity:1; transform: translateY(0); } }

/* Reveal: visible by default, only hidden when JS is confirmed loaded */
.reveal { opacity: 1; transform: translateY(0); transition: all 0.8s var(--ease); }
.js-ready .reveal { opacity: 0; transform: translateY(40px); }
.js-ready .reveal.active { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal.active .step:nth-child(1) { transition-delay: 0.1s; }
.reveal.active .step:nth-child(2) { transition-delay: 0.2s; }
.reveal.active .step:nth-child(3) { transition-delay: 0.3s; }

/* ─── Responsiveness ─── */
@media (max-width: 992px) {
    .services-flex { flex-direction: column; gap: 3rem; }
    .process-horizontal .step::after { display: none; }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
    body a, body button, body input, body textarea { cursor: auto; }

    .navbar { padding: 1rem 1.5rem; }
    .nav-links {
        position: fixed; top:0; right:0;
        width: 70vw; height: 100vh;
        background: rgba(10,10,10,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.1rem; }
    .hamburger { display: flex; }

    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: 100svh;
    }

    .hero-content { padding: 0 1.5rem; }
    .hero p { margin-bottom: 1.75rem; }
    .scroll-indicator { bottom: 0.75rem; }
    .scroll-indicator.fade-up {
        opacity: 1;
        transform: translateX(-50%);
        animation: none;
    }
    .hero h1 { font-size: 3rem; }
    .grid-gallery { grid-template-columns: 1fr; }
    .gallery-carousel { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .gallery-slides { grid-column: 1 / -1; grid-row: 1; }
    .gallery-nav { z-index: 1; justify-self: start; }
    .gallery-next { justify-self: end; }
    .services-flex { flex-direction: column; gap: 3rem; }
    .section-padding { padding: 4rem 0; }
    .toast { left: 1rem; right: 1rem; max-width: unset; bottom: 1rem; }
}

@media (max-width: 768px) and (max-height: 600px) {
    .scroll-indicator { display: none; }
}
