/* Custom styles for Sterling RV Park */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar styles */
.nav-text {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-scrolled .nav-text {
    color: rgba(30, 58, 95, 0.85);
}

.navbar-scrolled .mobile-menu-link {
    color: rgba(30, 58, 95, 0.8) !important;
}

/* Mobile menu link styles */
.mobile-menu-link {
    color: rgba(255, 255, 255, 0.8);
}

/* Subtle hover effects */
a {
    text-decoration: none;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background-color: #d4a017;
    color: #102a43;
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Parallax-like subtle effects */
@media (prefers-reduced-motion: no-preference) {
    .hero-gradient {
        animation: float 6s ease-in-out infinite;
    }
}
