/* Custom styles for Stan's OSV Vacation Rentals */

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

/* Scroll animation base states */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-animate.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7dd4af;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 500px;
    padding: 1rem 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7dd4af;
}

/* Selection color */
::selection {
    background: #b3e6cf;
    color: #0a2647;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #2ca86e;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e8eef5 0%, #d8f3e8 100%);
}

/* Subtle wave animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #7dd4af, #2ca86e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}
