/* === Custom Styles for V & J Employment Serv. === */

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

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* Hidden state — only applied via JS for progressive enhancement */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* === Navbar scroll state === */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(47, 81, 30, 0.08);
}

/* === Mobile menu transitions === */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Floating card animations in hero === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

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

.floating-card-2 {
    animation: float-slow 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card-3 {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === Focus visible for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #558a34;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Selection color === */
::selection {
    background-color: #c5dfb3;
    color: #1f3515;
}
