/* Custom Styles for United Express Autos */

/* Hero Slider Styles */
#hero-slider {
    position: relative;
    overflow: hidden;
}

.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.fade-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.fade-text.delay-1 {
    animation-delay: 0.3s;
}

.fade-text.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Dots */
.slider-dot.active {
    opacity: 1 !important;
    background-color: white;
}

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

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

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

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

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Car Card Hover Effects */
.car-card {
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Hover Effects */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Form Focus Effects */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* FAQ Accordion */
.faq-button.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Grid Layout Transitions */
#inventory-grid {
    transition: all 0.3s ease;
}

.grid-item {
    transition: all 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 400px;
}

/* Custom Color Utilities */
.text-brand-red {
    color: #dc2626;
}

.bg-brand-red {
    background-color: #dc2626;
}

.text-brand-blue {
    color: #1e40af;
}

.bg-brand-blue {
    background-color: #1e40af;
}

/* Gradient Backgrounds */
.gradient-red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.gradient-blue {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* Shadow Utilities */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

/* Animation Classes */
.animate-bounce-slow {
    animation: bounce 2s infinite;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

/* Filter Effects */
.filter-brightness-hover:hover {
    filter: brightness(1.1);
}

.filter-saturate-hover:hover {
    filter: saturate(1.2);
}

/* Typography */
.font-display {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Search and Filter Styles */
.search-highlight {
    background-color: rgba(220, 38, 38, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}

/* Price Format */
.price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

/* Status Badges */
.badge-new {
    background-color: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-used {
    background-color: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 640px) {
    .hero-text {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
