/* Custom styles for Country Club RV Park */

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

/* Navbar transition */
.nav-text-color {
    color: rgb(127, 29, 90);
    transition: color 0.3s ease;
}

.nav-sub-text {
    color: rgb(168, 85, 247);
    transition: color 0.3s ease;
}

/* Navbar scrolled state */
nav.scrolled .nav-text-color {
    color: rgb(251, 191, 36);
}

nav.scrolled .nav-sub-text {
    color: rgb(217, 119, 6);
}

nav.scrolled .menu-line {
    background: rgb(251, 191, 36);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button active state */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.4rem;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .group:hover img {
        transform: none;
    }
    
    .absolute.rounded-2xl:hover {
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: rgb(253, 244, 248);
}

::-webkit-scrollbar-thumb {
    background: rgb(168, 85, 247);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(127, 29, 90);
}

/* Selection color */
::selection {
    background: rgb(251, 191, 36);
    color: rgb(45, 14, 56);
}
