/* Custom styles for Xtreme Motor Vehicle */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #c45a3c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4745c;
}

/* Selection color */
::selection {
    background: #c45a3c;
    color: #ffffff;
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow effect for gold elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 168, 76, 0.6);
    }
}

/* Apply animations only when JS is enabled */
.js-enabled .reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

.js-enabled .reveal-delay-1 {
    animation-delay: 0.1s;
}

.js-enabled .reveal-delay-2 {
    animation-delay: 0.2s;
}

.js-enabled .reveal-delay-3 {
    animation-delay: 0.3s;
}

.js-enabled .reveal-delay-4 {
    animation-delay: 0.4s;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gold shimmer effect for special elements */
.gold-shimmer {
    background: linear-gradient(
        135deg,
        #c9a84c 0%,
        #d4b965 25%,
        #c9a84c 50%,
        #d4b965 75%,
        #c9a84c 100%
    );
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure all text is readable */
.text-white {
    color: #ffffff;
}

.text-cream {
    color: #f5f0e8;
}

.text-cream\\/60 {
    color: rgba(245, 240, 232, 0.6);
}

.text-cream\\/70 {
    color: rgba(245, 240, 232, 0.7);
}

.text-cream\\/80 {
    color: rgba(245, 240, 232, 0.8);
}

/* Button focus states */
button:focus, a:focus {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Input focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #c45a3c !important;
    box-shadow: 0 0 0 3px rgba(196, 90, 60, 0.2);
}

/* Map styling */
iframe[src*="google.com/maps"] {
    filter: grayscale(100%) invert(92%) contrast(83%) brightness(90%);
}
