/* ===== CSS Variables for Themes ===== */
:root {
    /* Light Theme (Default) - Enhanced */
    --primary-color: #D32F2F;
    --primary-dark: #B71C1C;
    --primary-light: #FF6659;
    --secondary-color: #1A1A2E;
    --accent-color: #FF9800;
    --accent-gradient: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    --text-color: #1A1A2E;
    --text-light: #6C757D;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A2E;
    --card-bg: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #16213E 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #FF5722 100%);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    transition: var(--transition);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
}

h1.display-1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-title {
    font-size: 3rem;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

.section-title-light {
    color: white;
}

.section-title-light::after {
    background: var(--gradient-accent);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.8);
}

.lead {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
}

/* ===== Layout ===== */

#mainSection {
    padding: 140px 0 0 0;
}

.container {
    max-width: 1300px;
    padding: 0 30px;
}

.section-padding {
    padding: 8rem 0;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-section-dark {
    background: var(--gradient-secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.btn: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: 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

.btn-car-details {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
}

.btn-car-favorite {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-car-favorite:hover {
    background: var(--primary-color);
    color: white;
}

.btn-view-all {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-view-all::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.btn-view-all:hover {
    color: white;
    border-color: transparent;
}

.btn-view-all:hover::after {
    width: 100%;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    position: relative;
}

.btn-submit .btn-icon {
    margin-left: 10px;
    transition: var(--transition);
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

.btn-nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    margin-left: 1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

/* ===== Theme Toggle ===== */
.theme-toggle-wrapper {
    position: fixed;
    top: calc(10% - 1.5rem);
    right: 30px;
    z-index: 9999;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Floating Elements ===== */
.floating-social {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ===== Header & Navigation ===== */
header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    z-index: 9990;
}

.contact-info-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0A0A0A 100%);
    color: white;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

.contact-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-info-bar .header_info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.contact-info-bar .header_info-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-bar .header_info-item span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    word-break: break-word;
    max-width: 100%;
}

.contact-info-bar .header_info-item:hover {
    color: white;
    transform: translateY(-1px);
}

.contact-info-bar .header_info-item:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Планшеты и маленькие ноутбуки */
@media (max-width: 992px) {
    .contact-info-content {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .contact-info-bar .header_info-item {
        flex: 0 1 auto;
        max-width: 30%;
    }
}

/* Мобильные устройства (горизонтальная ориентация) */
@media (max-width: 768px) {
    .contact-info-bar {
        padding: 0.3rem 0;
        font-size: 0.75rem;
    }
    
    .contact-info-content {
        justify-content: space-around;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .contact-info-bar .header_info-item {
        flex: 1 1 30%;
        justify-content: center;
        text-align: center;
        gap: 0.3rem;
        min-height: 1.5rem;
    }
    
    .contact-info-bar .header_info-item i {
        font-size: 0.8rem;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .contact-info-bar {
        padding: 0.25rem 0;
        font-size: 0.7rem;
    }
    
    .contact-info-content {
        gap: 0.25rem;
        align-items: stretch;
    }
    
    .contact-info-bar .header_info-item {
        flex: 0 0 auto;
        font-size: 0.59rem;
        justify-content: flex-start;
        padding: 0.1rem 0.5rem;
        gap: 0.4rem;
        min-height: auto;
    }
    
    .contact-info-bar .header_info-item i {
        font-size: 0.75rem;
        flex-shrink: 0;
        width: 20px;
    }
    
    .contact-info-bar .header_info-item span {
        word-break: break-word;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Очень маленькие экраны (менее 400px) */
@media (max-width: 400px) {
    .contact-info-bar {
        font-size: 0.65rem;
        padding: 0.2rem 0;
    }
    
    .contact-info-bar .header_info-item {
        padding: 0.1rem 0.3rem;
        gap: 0.3rem;
    }
    
    .contact-info-bar .header_info-item i {
        font-size: 0.7rem;
        width: 18px;
    }
}

/* Экстремально маленькие экраны (менее 320px) */
@media (max-width: 320px) {
    .contact-info-bar {
        font-size: 0.6rem;
    }
    
    .contact-info-bar .header_info-item {
        padding: 0.1rem 0.2rem;
        gap: 0.2rem;
    }
    
    .contact-info-bar .header_info-item i {
        font-size: 0.65rem;
        width: 16px;
    }
    
    .contact-info-bar .header_info-item span {
        line-height: 1.1;
    }
}

/* Обеспечиваем компактность и отсутствие сдвигов */
@media (max-width: 768px) {
    /* Фиксируем минимальную высоту чтобы не двигать навигацию */
    .contact-info-bar {
        min-height: auto;
        max-height: none;
    }
    
    /* Гарантируем что текст не будет обрезаться */
    .contact-info-bar .header_info-item span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: block;
    }
}

/* Dark theme adjustments */
.theme-dark .contact-info-bar {
    background: linear-gradient(135deg, #0A0A0A 0%, #121212 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text span:first-child {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
}

.brand-text span:last-child {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-color);
    margin-top: -5px;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    letter-spacing: 1px;
}

.navbar-toggler-wrapper {
    display: flex;
    align-items: center;
}

.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 25px;
    position: relative;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
    position: absolute;
    left: 0;
}

.toggler-icon:nth-child(1) {
    top: 0;
}

.toggler-icon:nth-child(2) {
    top: 11px;
}

.toggler-icon:nth-child(3) {
    top: 22px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

.nav-link {
    font-weight: 600;
    margin: 0 0.75rem;
    color: var(--text-color) !important;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0 !important;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Dropdown Toggle */
.nav-item.dropdown {
    position: relative;
}

.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-item.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem 0;
    margin-top: 15px;
    box-shadow: var(--shadow-hover);
    min-width: 320px;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top center;
    overflow: hidden;
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.875rem 1.5rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.1), transparent);
    transition: left 0.5s;
}

.dropdown-item:hover:before {
    left: 100%;
}

.dropdown-item:hover {
    background-color: rgba(211, 47, 47, 0.05);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-item.active {
    background-color: rgba(211, 47, 47, 0.281);
    color: var(--primary-color);
}

/* Dropdown Item Content */
.dropdown-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dropdown-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-title {
    color: var(--primary-color);
}

.dropdown-description {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Dropdown Divider */
.dropdown-divider {
    margin: 0.75rem 1.5rem;
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Mega Dropdown Feature (for larger screens) */
@media (min-width: 992px) {
    .dropdown-menu {
        min-width: 380px;
    }
    
    .dropdown-item {
        padding: 1rem 1.5rem;
    }
    
    .dropdown-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 0.5rem 0;
        background: transparent;
        animation: none;
        min-width: auto;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        margin: 2px 0;
        border-radius: 8px;
    }
    
    .dropdown-item:hover {
        background: rgba(211, 47, 47, 0.1);
        padding-left: 1.75rem;
    }
    
    .dropdown-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .nav-link.dropdown-toggle {
        justify-content: space-between;
    }
}

/* Dark Theme Support */
.theme-dark .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.theme-dark .dropdown-item:hover {
    background-color: rgba(255, 82, 82, 0.1);
}

.theme-dark .dropdown-item:active {
    background-color: rgba(255, 82, 82, 0.15);
}

/* Active State for Dropdown */
.nav-item.dropdown.show .nav-link {
    color: var(--primary-color) !important;
}

.nav-item.dropdown.show .nav-link::after {
    width: 100%;
}

/* Dropdown Arrow Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.nav-item.dropdown.show .dropdown-arrow {
    animation: bounce 0.5s ease;
}

/* Hover Effect for Dropdown Toggle */
.nav-link.dropdown-toggle:hover .dropdown-arrow {
    transform: translateY(2px);
}

.nav-item.dropdown.show .nav-link.dropdown-toggle:hover .dropdown-arrow {
    transform: rotate(180deg) translateY(2px);
}

/* Dropdown Item Hover Effects */
.dropdown-item {
    position: relative;
    z-index: 1;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.dropdown-item:hover::after {
    transform: scaleY(1);
}

/* Mobile Menu Specific */
@media (max-width: 991px) {
    .navbar-collapse .dropdown-menu {
        padding-left: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .dropdown-item-content {
        padding: 0.25rem 0;
    }
    
    .dropdown-item::after {
        display: none;
    }
}

/* Dropdown Header */
.dropdown-header {
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Special Dropdown Item (CTA) */
.dropdown-item-cta {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.05) 100%);
    margin: 0.5rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.dropdown-item-cta:hover {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(211, 47, 47, 0.1) 100%);
    border-color: rgba(211, 47, 47, 0.4);
}

.dropdown-item-cta .dropdown-title {
    color: var(--primary-color);
}

.dropdown-item-cta .dropdown-icon {
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-out;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.animate-slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.animate-slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

/* ===== Footer ===== */
.footer {
    background: var(--gradient-secondary);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%231A1A2E"/></svg>');
    background-size: 1200px 100px;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-brand-text span:first-child {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.footer-brand-text span:last-child {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    color: white;
    margin-top: -5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-newsletter h6 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-newsletter {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-newsletter:hover {
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.no-products-section {
    background: var(--bg-light);
    border-radius: 20px;
    margin: 3rem 0;
}

.no-products-icon i {
    color: var(--text-light);
    font-size: 4rem;
}

.no-products-title {
    color: var(--text-color);
    font-weight: 700;
}

.no-products-message {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-products-actions {
    margin-top: 2rem;
}


.car-card-wrapper {
    perspective: 1500px;
}

.car-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.car-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-hover);
}

.car-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.car-badge-new {
    background: var(--gradient-accent);
}

.car-badge-sold {
    background: var(--gradient-secondary);
}

.car-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-img img {
    transform: scale(1.1);
}

.car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.car-card:hover .car-overlay {
    opacity: 1;
}

.car-overlay-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    transform: translateY(20px);
}

.car-card:hover .car-overlay-btn {
    transform: translateY(0);
}

.car-overlay-btn:hover {
    transform: translateY(-5px) !important;
}

.car-content {
    padding: 1.5rem;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.car-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.car-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.car-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.car-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.car-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.car-detail i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.car-detail span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}