/* Custom styles for New Jersey Nursing Agency */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0F19;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection color */
::selection {
    background: rgba(4, 120, 87, 0.4);
    color: #F5F0E8;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(6, 10, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold shimmer effect for headings */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

/* Pulse glow for emerald accents */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(4, 120, 87, 0.3); }
    50% { box-shadow: 0 0 40px rgba(4, 120, 87, 0.6); }
}

/* Form focus ring animation */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

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

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Ensure all text meets contrast requirements */
.text-cream-100 { color: #F5F0E8; }
.text-cream-200 { color: #EDE5D5; }
.text-cream-200\/60 { color: rgba(237, 229, 213, 0.6); }
.text-cream-200\/70 { color: rgba(237, 229, 213, 0.7); }
.text-cream-200\/50 { color: rgba(237, 229, 213, 0.5); }
.text-cream-200\/40 { color: rgba(237, 229, 213, 0.4); }
.text-cream-50 { color: #FDFCFA; }
.text-dark-950 { color: #060A10; }

/* Ensure links are clearly visible */
a.text-emerald-400:hover {
    color: #6EE7B7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
