/* Custom styles for The Car Gurus of NC */

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

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

::-webkit-scrollbar-track {
    background: #111115;
}

::-webkit-scrollbar-thumb {
    background: #232329;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d0714;
}

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

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

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

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Pulse glow for CTA buttons */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(193, 32, 69, 0.3), 0 0 40px rgba(193, 32, 69, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(193, 32, 69, 0.5), 0 0 60px rgba(193, 32, 69, 0.2);
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(10, 10, 12, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text fallback */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Form select arrow override */
select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none"%3E%3Cpath d="M6 9l6 6 6-6" stroke="%23d4a843" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') !important;
}

/* Map dark mode overlay */
iframe[src*="google.com/maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(1.1);
}
