/* Custom styles for Cindy's Nail Salon & Spa */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0a08;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #059669, #d4a853);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #34d399, #e8c97a);
}

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.4);
    color: #fefdf8;
}

/* Navbar scroll state */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #d4a853;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 100%;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(5, 150, 105, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 8, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Mobile nav link animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer effect for gold text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #d4a853 0%, #f0d68a 50%, #d4a853 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Pulse glow for CTA */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(5, 150, 105, 0.3); }
    50% { box-shadow: 0 0 40px rgba(5, 150, 105, 0.6); }
}

.cta-glow:hover {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating animation for hero particles */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
}

/* Mobile menu open state */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}
.mobile-menu-open .mobile-nav-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open #bar2 {
    opacity: 0;
}
.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .service-card:hover {
        transform: none;
    }
}
