/* Custom styles for Paley Locksmith */

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

/* Prevent flash of hidden content - all content visible by default */
/* Animations are progressive enhancement only */

/* Float cards gentle animation */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

.float-card:nth-child(2) {
    animation: float2 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.float-card:nth-child(3) {
    animation: float3 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.float-card:nth-child(4) {
    animation: float4 3.8s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Scroll reveal - progressive enhancement via JS */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .service-card.reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Reduced motion - hide the hidden state */
@media (prefers-reduced-motion: reduce) {
    .service-card.reveal-hidden {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

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

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

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

/* Selection color */
::selection {
    background: #c7dcb8;
    color: #111b0a;
}
