/* ============================================
   WENDY'S NAILS — Custom Styles
   ============================================ */

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #290c19;
}
::-webkit-scrollbar-thumb {
    background: #6e2147;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a83d74;
}

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

/* --- Selection --- */
::selection {
    background: rgba(217, 119, 6, 0.3);
    color: #faf0f6;
}

/* --- Nav Active State --- */
.nav-link.active {
    color: #fbbf24 !important;
}

/* --- Service Card Tilt Effect --- */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Navbar Background Transition --- */
#navbar.scrolled {
    background: rgba(41, 12, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu Animation --- */
#mobile-menu.open {
    transform: translateX(0);
}

#hamburger span:nth-child(1) {
    transform-origin: center;
}
#hamburger span:nth-child(2) {
    transform-origin: center;
}
#hamburger span:nth-child(3) {
    transform-origin: center;
}

body.menu-open #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open #hamburger span:nth-child(2) {
    opacity: 0;
}
body.menu-open #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

/* --- Gallery Image Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Button Ripple --- */
button, a {
    position: relative;
    overflow: hidden;
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a0a14 inset !important;
    -webkit-text-fill-color: #faf0f6 !important;
}
