/* Custom styles for Rhino Valley Homes */

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

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@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 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and prefers-reduced-motion allows */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #0A1628 !important;
}

.nav-scrolled .nav-sub-text-color {
    color: #1A3658 !important;
}

.nav-scrolled .nav-link {
    color: #1A3658 !important;
}

.nav-scrolled .nav-border {
    border-color: #E2E8F0 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1FB87E;
}

/* Selection color */
::selection {
    background: #D5F5E8;
    color: #0A1628;
}
</style>
