/* Custom styles for Hispanos Autos Sales */

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a28;
}
::-webkit-scrollbar-thumb {
    background: #4a1c59;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c2470;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 32px; opacity: 0; }
}
.animate-scroll-dot {
    animation: scrollDot 1.2s ease-in-out infinite;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 10, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 28, 89, 0.5);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Menu line animations */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-dot {
        animation: none;
    }
    .group-hover\:scale-105:hover img,
    img {
        transition: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #2d1240;
    color: #c39bd3;
}

/* Custom glow effects */
.glow-amber {
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.15);
}

/* Print styles */
@media print {
    nav, .animate-scroll-dot, #contactForm, #formSuccess {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
