
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #1e293b;
    line-height: 1.6;
}


#header {
    background-color: #0f172a; 
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ffffff;
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo span {
    color: #ef4444; 
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #ef4444;
    padding-bottom: 4px;
}


#main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

#about-hero {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ef4444;
}

#about-hero h2 {
    margin-top: 0;
    color: #0f172a;
}

h2 {
    color: #0f172a;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.subtitle {
    color: #64748b;
    margin-top: -5px;
    margin-bottom: 25px;
}


.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.vehicle-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    display: block;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #0f172a;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: #ef4444;
    margin: 5px 0;
}

.specs {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}


.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.inventory-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    align-items: start;
}

.image-gallery {
    width: 100%;
}


.image-gallery .main-img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
}


.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnails img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.inventory-details h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #0f172a;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.spec-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.contact-info, .contact-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-info h3, .contact-form h3 {
    margin-top: 0;
    color: #0f172a;
    border-bottom: 2px solid #ef4444;
    padding-bottom: 8px;
    display: inline-block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ef4444;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn {
    display: inline-block;
    background: #ef4444;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

#footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .inventory-item, .contact-container {
        grid-template-columns: 1fr;
    }

    .image-gallery .main-img {
        height: 220px;
    }
}