/* Custom styles for Mi Vecina Tucson */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d0d0d;
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 107, 0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

/* Subtle shimmer on gold text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, #d4a853 0%, #fff 50%, #d4a853 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Nav scroll state */
nav.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

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

/* Prevent FOUC on reveal elements */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: opacity, transform;
    }
}
