/* 
 * Shiloh Ministry - Premium Dark Luxury Styles
 * Base styles and custom animations
 */

:root {
    --color-brand-dark: #0F1014;
    --color-brand-surface: #1A1C23;
    --color-brand-gold: #C5A065;
    --color-brand-sand: #E8DFD1;
    --color-brand-sand-muted: #9A958C;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-brand-dark);
    color: var(--color-brand-sand);
    font-family: 'Manrope', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--color-brand-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-goldLight);
}

/* Selection Color */
::selection {
    background-color: var(--color-brand-gold);
    color: var(--color-brand-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

.animate-slow-zoom {
    animation-name: slowZoom;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite alternate;
}

/* Scroll Reveal Utility */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.hidden-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--color-brand-gold);
}

/* Image Aspect Ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .border-brand-gold {
        border-color: ButtonText;
    }
    
    .text-brand-gold {
        color: ButtonText;
    }
}
