/* Custom styles for Green Acres RV Park */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

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

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

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    background: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #c5263e30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c5263e50;
}

/* Selection color */
::selection {
    background: #7B2D3B;
    color: white;
}

/* Mobile menu active link */
.mobile-link.active {
    background: #fce4e8;
    color: #7B2D3B;
}

/* Image loading placeholder */
img {
    background-color: #fce4e8;
}

/* Smooth image transitions */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

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

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(0deg); }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

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

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(123, 45, 59, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(123, 45, 59, 0); }
}

.pulse-cta {
    animation: pulse-soft 2.5s ease-in-out infinite;
}
