/* Redesign CSS - Modern Premium Aesthetics */

/* Typography & Base */
::selection {
    background: var(--accent-color);
    color: #000;
}

/* Glassmorphism utility */
.glass-effect {
    background: rgba(20, 21, 24, 0.65) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4) !important;
}

/* Navbar Enhancements */
.navbar-custom {
    background: rgba(10, 10, 12, 0.7) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar-brand {
    text-shadow: 0 0 15px rgba(249, 168, 67, 0.4) !important;
    transition: text-shadow 0.3s ease;
}
.navbar-brand:hover {
    text-shadow: 0 0 25px rgba(249, 168, 67, 0.7) !important;
}

/* Search Bar Enhanced */
.search-input {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 30px !important;
    color: #fff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.search-input:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px rgba(249, 168, 67, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.02);
}

/* Button Upgrades */
.btn-primary {
    background: linear-gradient(135deg, #fbc67f 0%, #d67b14 100%) !important;
    border: none !important;
    color: #111 !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(249, 168, 67, 0.2) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(249, 168, 67, 0.5) !important;
}
.btn-primary:hover::after {
    opacity: 1;
}

/* Hero Carousel Tweaks */
#heroCarousel {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}
.hero-badge {
    box-shadow: 0 0 20px rgba(249, 168, 67, 0.4) !important;
    animation: pulseGlow 2.5s infinite;
    color: #000 !important;
    font-weight: 800 !important;
}

/* Vehicle Filter Form Floating Effect */
.container > .p-4.rounded-4.shadow-lg {
    background: rgba(18, 19, 21, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-top: 4px solid var(--accent-light) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(249, 168, 67, 0.1) !important;
    transform: translateY(-5px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.container > .p-4.rounded-4.shadow-lg:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 35px rgba(249, 168, 67, 0.2) !important;
    border-color: rgba(249, 168, 67, 0.3) !important;
}

/* Feature Cards Enhanced */
.home-feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.3) 100%) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.home-feature-card:hover {
    transform: translateY(-12px) rotate(1deg) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(249, 168, 67, 0.15) !important;
    border-color: rgba(249, 168, 67, 0.3) !important;
    background: linear-gradient(145deg, rgba(249,168,67,0.08) 0%, rgba(0,0,0,0.4) 100%) !important;
}

/* Product Cards Enhanced */
.product-card {
    background: rgba(20, 21, 24, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 18px !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6), 0 0 25px rgba(249, 168, 67, 0.15) !important;
    border-color: rgba(249, 168, 67, 0.4) !important;
}
.product-img-wrap {
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 80%) !important;
}
.product-card-actions {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Action Icons in Product Cards (Hover effect fix) */
.action-icon {
    backdrop-filter: blur(10px) !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.action-icon:hover {
    background: var(--accent-light) !important;
    color: #000 !important;
    transform: scale(1.15) rotate(8deg) !important;
    box-shadow: 0 0 20px var(--accent-color) !important;
}

/* Category Cards Enhanced */
.category-card {
    background: rgba(20, 21, 24, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
}
.category-card:hover {
    background: linear-gradient(145deg, rgba(249,168,67,0.1) 0%, rgba(0,0,0,0.5) 100%) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(249, 168, 67, 0.2) !important;
}
.category-icon-bg {
    box-shadow: 0 0 15px rgba(249, 168, 67, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.category-card:hover .category-icon-bg {
    transform: scale(1.15) rotate(-5deg) !important;
    box-shadow: 0 0 25px rgba(249, 168, 67, 0.4) !important;
    color: #fff !important;
    background: var(--accent-color) !important;
}

/* Collection Cards */
.collection-card {
    background: rgba(20, 21, 24, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    transition: all 0.4s ease !important;
}
.collection-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(249, 168, 67, 0.2) !important;
}

/* Stats Section Modernization */
.home-stats-section {
    background: linear-gradient(135deg, rgba(15,16,18,0.95) 0%, rgba(249,168,67,0.08) 100%) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
.home-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: transparent !important;
    background: linear-gradient(to right, #ffffff 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(249, 168, 67, 0.3));
    margin-bottom: 0.5rem;
}
.home-stat-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* Animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(249, 168, 67, 0.2); }
    50% { box-shadow: 0 0 25px rgba(249, 168, 67, 0.6); }
    100% { box-shadow: 0 0 10px rgba(249, 168, 67, 0.2); }
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.home-animate-float {
    animation: floatElement 4s ease-in-out infinite;
}

/* Dynamic Gradients for Titles */
.section-title, .home-hero-display {
    background: linear-gradient(to right, #ffffff 20%, #fbc67f 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Promo CTA Block Enhancement */
.home-cta-card {
    background: linear-gradient(135deg, rgba(30, 32, 36, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%) !important;
    border: 1px solid rgba(249,168,67,0.3) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(249, 168, 67, 0.1) !important;
    position: relative;
    overflow: hidden;
}
.home-cta-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(249,168,67,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* User dropdown enhancement */
.dropdown-menu {
    background: rgba(20, 21, 24, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    border-radius: 12px;
}
.dropdown-item {
    color: #eee !important;
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: rgba(249, 168, 67, 0.15) !important;
    color: var(--accent-light) !important;
    transform: translateX(5px);
}
.dropdown-header {
    color: var(--accent-light) !important;
}

/* Footer Upgrades */
.footer-custom {
    background: linear-gradient(180deg, #0d0d0d 0%, #050505 100%) !important;
    border-top: 1px solid rgba(249, 168, 67, 0.15) !important;
    position: relative;
}
.footer-custom::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--accent-dark));
    position: absolute;
    top: -1px; left: 0; right: 0;
    opacity: 0.7;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
