/* Custom styles for Micro Beaute at Kelly Nails */

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

/* Animation keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation-name: fadeUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

/* Reveal on scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(42, 14, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8c345e;
}

/* Selection color */
::selection {
    background: #a84478;
    color: #fff;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-fade-up {
        animation: none;
        opacity: 1;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e88a18;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #f2dfe8;
}
