/* Custom styles for Ana's Forniture */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #071507;
}
::-webkit-scrollbar-thumb {
    background: #1f4a1f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5f2d;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #faf8f5;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 21, 7, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(31, 74, 31, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Scroll reveal base - always visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

/* Only apply hidden state when JS adds the class */
.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Gold gradient text utility */
.gold-gradient {
    background: linear-gradient(135deg, #e8c97a, #d4a84b, #c9952e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer animation for gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

.animate-float-1 {
    animation: float 6s ease-in-out infinite;
}
.animate-float-2 {
    animation: float 6s ease-in-out infinite 1s;
}
.animate-float-3 {
    animation: float 6s ease-in-out infinite 2s;
}

/* Reduced motion preference */
@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;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(31, 74, 31, 0.3);
}
.mobile-link:last-child {
    border-bottom: none;
}

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