/* Custom styles for Fuller RV Park */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.1), 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-scrolled .nav-link {
    color: rgb(6, 95, 70);
}

.nav-scrolled .nav-link:hover {
    color: rgb(5, 150, 105);
    background: rgba(16, 185, 129, 0.08);
}

.nav-scrolled .font-display {
    color: rgb(6, 78, 59) !important;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: rgb(6, 78, 59);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgb(16, 185, 129);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, rgb(245, 233, 200) 0%, rgb(213, 219, 206) 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgb(209, 230, 220);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(165, 220, 200);
}

/* Hero card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Subtle pattern for sections */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgb(16, 185, 129, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}
