/* Custom styles for Jade Nails PTY */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation transitions */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-subtitle-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f9d8c8;
    transition: width 0.3s ease;
}

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

/* Scrolled nav state */
.nav-scrolled .nav-logo-text {
    color: #1f2937;
}

.nav-scrolled .nav-subtitle-text {
    color: #6b7280;
}

.nav-scrolled .nav-link {
    color: #374151 !important;
}

.nav-scrolled .nav-link::after {
    background: #822323;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
}

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

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

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #dc4c4c !important;
    box-shadow: 0 0 0 3px rgba(220, 76, 76, 0.1) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a02626;
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
}

/* Gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(61, 14, 14, 0);
    transition: background 0.5s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(61, 14, 14, 0.3);
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}
