/* Custom styles for Faith Mountain */

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

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(15, 26, 45, 0.08);
}

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

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

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #86efac !important;
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 5px;
}

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

/* Subtle pattern for section backgrounds */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 26, 45, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Button hover glow */
button:hover,
a:hover {
    filter: brightness(1.02);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4f8 0%, #d4dce6 100%);
}

/* Selection color */
::selection {
    background: #86efac;
    color: #0f1a2d;
}
