/* Custom styles for Sinking Ink Tattoos */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Selection color */
::selection {
    background: #22c55e;
    color: #0f172a;
}

/* Base typography */
body {
    font-family: 'Karla', sans-serif;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Navbar transition */
#navbar {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
}

/* Service card hover effects */
.group:hover .group-hover\:w-12 {
    transition: width 0.3s ease;
}

/* Gallery hover */
.group:hover .group-hover\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    border-bottom-color: #22c55e !important;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    #navbar, #back-to-top, #mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Utility animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all content is visible by default for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}
