/* Custom styles for Mervs Construction LLC */

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

/* Scroll reveal base - content is VISIBLE by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion - disable animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}

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

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

/* Pulse glow for amber accents */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fbbf24;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0708;
}
::-webkit-scrollbar-thumb {
    background: #842032;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a12239;
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

/* Mobile link animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(10, 7, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(132, 32, 50, 0.3);
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all text is readable */
.text-plum-200 { color: #f9d0d9; }
.text-plum-300 { color: #f3a9b8; }
.text-plum-400 { color: #f3a9b8; }
.text-plum-500 { color: #e9718f; }
.text-plum-600 { color: #c22d4a; }
.text-plum-700 { color: #a12239; }
.text-plum-800 { color: #842032; }
.text-plum-900 { color: #2d0a11; }
.text-plum-950 { color: #1a0509; }
