/* ============================================
   One Thousand Cranes Tattoo Studio
   Premium Dark Luxury — Teal & Slate Palette
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --- Navbar scroll state --- */
.nav-scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-scrolled .fixed {
    background: rgba(10, 15, 26, 0.92);
}

/* --- Gold accent line under eyebrow text --- */
.eyebrow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5), transparent);
}

/* --- Gallery hover effects --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    will-change: transform;
}

/* --- Service card hover glow --- */
.group:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at top left, rgba(20, 184, 166, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Input focus animation --- */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(20, 184, 166, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.15) !important;
}

/* --- Button ripple effect --- */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Mobile menu transitions --- */
#mobile-menu {
    animation: menuSlideIn 0.3s ease-out forwards;
}

#mobile-menu.hidden {
    animation: menuSlideOut 0.2s ease-in forwards;
}

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

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

/* --- Scroll reveal base (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* --- Form success state --- */
#form-success {
    animation: fadeInUp 0.5s ease-out;
}

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

/* --- Gold shimmer on CTA hover --- */
.bg-teal-500:hover {
    background: #e8c25a !important;
}

/* --- Select dropdown styling --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
