/* Custom styles for Nails by Lily */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #0f766e;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Service card hover effect */
.group:hover .group-hover\:bg-teal-100 {
    transition: background-color 0.3s ease;
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Image loading optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Ensure text contrast */
.text-slate-800 {
    color: #1e293b;
}

.text-slate-900 {
    color: #0f172a;
}

/* Light backgrounds with dark text */
.bg-slate-50 {
    background-color: #f8fafc;
}

/* Dark backgrounds with light text */
.bg-slate-900 {
    background-color: #0f172a;
}

.bg-teal-600 {
    background-color: #0d9488;
}

/* Ensure hero text is readable */
.hero-text-light {
    color: white;
}

/* Navigation background on scroll */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
