/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #909090;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

.filter-toggle {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.showroom-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero2.jpg') center/cover no-repeat;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(10, 10, 10, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.5rem;
    color: #909090;
}

.stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #909090;
    margin-top: 0.5rem;
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid #2a2a2a;
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.filter-sidebar.active {
    right: 0;
}

.filter-header {
    padding: 2rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

.close-filter {
    background: none;
    border: none;
    color: #909090;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-filter:hover {
    color: #fff;
}

.filter-content {
    padding: 2rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #909090;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: #ffffff;
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #fff;
    cursor: pointer;
}

.btn-reset {
    width: 100%;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #fff;
    color: white;
}

/* Cars Section */
.cars-section {
    padding: 4rem 0;
    min-height: 100vh;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.price-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-sort label {
    color: #909090;
    font-size: 0.95rem;
}

.price-sort select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.price-sort select:focus {
    outline: none;
    border-color: #555;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    color: #909090;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #fff;
    color: #000;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.cars-grid.list-view {
    grid-template-columns: 1fr;
}

.car-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: #fff;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-info {
    padding: 1.5rem;
}

.car-brand {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.car-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.car-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #909090;
    font-size: 0.9rem;
}

.car-detail i {
    color: #909090;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.car-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* List View */
.cars-grid.list-view .car-card {
    display: flex;
    flex-direction: row;
}

.cars-grid.list-view .car-image {
    width: 400px;
    height: 300px;
}

.cars-grid.list-view .car-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #fff;
    color: white;
}

.modal-body {
    padding: 2rem;
}

/* Footer */
.footer {
    background: #0f0f0f;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 42px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #909090;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #909090;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #909090;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .cars-grid.list-view .car-card {
        flex-direction: column;
    }
    
    .cars-grid.list-view .car-image {
        width: 100%;
        height: 250px;
    }
    
    .filter-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}

