/* Custom styles for Ombre Nails Bar */

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

/* Prevent FOUC */
body {
    opacity: 1;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card:hover .group-img {
        transform: none;
    }
}

/* Service card stagger animation */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Gallery stagger */
.grid .reveal:nth-child(1) { transition-delay: 0.0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.grid .reveal:nth-child(8) { transition-delay: 0.35s; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #722B6B;
}

/* Selection color */
::selection {
    background: #E8C2EB;
    color: #2A0F28;
}

/* Input focus animations */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(233, 194, 235, 0.3);
}

/* Hero decorative pulse */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F3E0F5 0%, #F9EDCC 100%);
}
