/* ===== Custom Styles for Gold Dust Tattoo & Piercing ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #a3bc92;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c7d48;
}

/* Floating dot animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.4; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.7; }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateY(-15px) scale(1.05); opacity: 0.6; }
}

.floating-dot {
    animation: float 6s ease-in-out infinite;
}

.floating-dot:nth-child(2) {
    animation: float-delay 8s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-dot:nth-child(3) {
    animation: float 7s ease-in-out infinite;
    animation-delay: -4s;
}

.floating-dot:nth-child(4) {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: -1s;
}

/* Mobile menu animations */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-line.active:nth-child(2) {
    opacity: 0;
}

.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(92, 125, 72, 0.08), transparent 60%);
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    opacity: 1;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(37, 52, 31, 0.08);
}

nav.scrolled .logo-text {
    color: #1a2e10 !important;
}

nav.scrolled .nav-link {
    color: #2d3f25 !important;
}

nav.scrolled .nav-link:hover {
    color: #5c7d48 !important;
}

/* Gallery item hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(212, 168, 67, 0.5);
}

/* Selection color */
::selection {
    background: rgba(92, 125, 72, 0.2);
    color: #1a2e10;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-dot { animation: none; }
    .service-card { transition: none; }
    .service-card:hover { transform: none; }
    .gallery-item img { transition: none; }
    .gallery-item:hover img { transform: none; }
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5c7d48;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle pattern for off-white backgrounds */
.bg-offwhite-50 {
    background-color: #faf9f6;
    background-image: radial-gradient(circle at 1px 1px, rgba(37, 52, 31, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
