/* Custom styles for River Valley Payroll Solutions */

/* 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 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal base styles */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 300px;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(45, 27, 54, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8B5A9A;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #F59E0B;
    color: #2D1B36;
}
