* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e1e1e1;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --radius: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.beta-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.admin-link {
    background: var(--accent-color);
    padding: 8px 16px;
    border-radius: 5px;
}

.admin-link:hover {
    background: #c0392b;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    margin-top: 60px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

/* Cars Section */
.cars-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.filter-select {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: white;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.car-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.car-details {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.car-details p {
    margin-bottom: 0.3rem;
}

.car-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info {
    background: #e8f4fc;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.no-cars {
    text-align: center;
    padding: 3rem;
}

.hidden {
    display: none;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-card {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--bg-light);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

/* Car Detail Page Styles */
.car-detail-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.back-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.car-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.car-detail-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.car-badge.large {
    font-size: 1.1rem;
    padding: 8px 16px;
}

.car-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.car-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.car-info-detail {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.price {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 0;
}

.price-label {
    color: var(--text-light);
    font-size: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item.full-width {
    grid-column: 1 / -1;
}

.spec-label {
    font-weight: bold;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.spec-value {
    color: var(--text-color);
    font-size: 1rem;
}

.description-section {
    margin-bottom: 2rem;
}

.description-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-color);
}

.contact-email {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.car-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.view-details-link {
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .car-detail-content {
        grid-template-columns: 1fr;
    }
    
    .car-detail-header h1 {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-bar {
        min-width: auto;
    }
}
.car-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.car-link:hover {
    transform: translateY(-5px);
}

.view-details-link {
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.car-link:hover .view-details-link {
    background: var(--secondary-color);
    color: white;
}