/* Custom styles for M & M Outdoor Equipment */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a07;
}
::-webkit-scrollbar-thumb {
    background: #2a2018;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4703f;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(13, 10, 7, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 112, 63, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu visible state */
#mobileMenu.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold accent line animation */
.gold-line {
    position: relative;
    display: inline-block;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c4703f, #d4915e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gold-line:hover::after {
    transform: scaleX(1);
}

/* Subtle glow effect for cards on hover */
.card-glow:hover {
    box-shadow: 0 0 60px rgba(196, 112, 63, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #1a1510 0%, #2a2018 100%);
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.97);
}

/* Decorative corner accents */
.corner-accent {
    position: relative;
}
.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(196, 112, 63, 0.3);
    border-style: solid;
}
.corner-accent::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}
.corner-accent::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* Text gradient for special headings */
.text-gradient {
    background: linear-gradient(135deg, #c4703f 0%, #d4915e 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
