/* Custom styles for Syndicate Car Audio and Tint */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1c38;
}

/* Selection color */
::selection {
    background: #7B2D3B;
    color: #fdf2f4;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-burgundy-800\/40 {
    background-color: rgba(123, 45, 59, 0.4) !important;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(184, 40, 70, 0.5);
}

/* Image hover zoom */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button ripple effect */
button,
a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    img,
    button,
    a {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Pulse animation for status dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* Custom aspect ratio utilities */
.aspect-\[3\/4\] {
    aspect-ratio: 3/4;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4/3;
}

/* Grid gap utilities */
.gap-\[3px\] {
    gap: 3px;
}

/* Ensure proper z-index layering */
.z-50 {
    z-index: 50;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%237B2D3B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #b82846;
    outline-offset: 2px;
}

/* Loading state for form submission */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
