/* Reset dan Dasar */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}


/* Header dan Navigasi */

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #e63946;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #e63946;
}

nav ul li a.active {
    color: #e63946;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e63946;
}


/* Hero Section */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/api/placeholder/1200/500') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}


/* Buttons */

.btn {
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #e63946;
    color: #e63946;
}

.btn-outline:hover {
    background-color: #e63946;
    color: #fff;
}


/* Features Section */

.features {
    padding: 60px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.feature-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 30px;
    color: #e63946;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 20px;
}


/* Bestsellers Section */

.bestsellers {
    padding: 60px 0;
    background-color: #f7f7f7;
}

.bestsellers h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.car-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.car-item {
    height: 380px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.car-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.car-image {
    height: 250px;
    background: url('/api/placeholder/400/200') no-repeat center center/cover;
}

.car-item h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
}

.car-item p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 16px;
}

.car-item .btn-small {
    margin: 0 15px 15px;
    padding: 10px 10px;
    background-color: #c1121f;
    color: white;
    border-radius: 5px;
}


/* Testimonials Section */

.testimonials {
    padding: 60px 0;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.testimonial-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial h4 {
    text-align: right;
    color: #666;
}


/* Footer */

footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-links h3,
.footer-newsletter h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e63946;
}

.footer-info p,
.footer-newsletter p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e63946;
    padding-left: 5px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background-color: #e63946;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #c1121f;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}


/* Page Header */

.page-header {
    background-color: #f1f1f1;
    padding: 40px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 32px;
    color: #333;
}


/* Gallery Page */

.gallery {
    padding: 60px 0;
    background-color: #fff;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #e63946;
    color: #fff;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-image {
    height: 100%;
    background: url('/api/placeholder/400/250') no-repeat center center/cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin-bottom: 10px;
}

.gallery-cta {
    padding: 60px 0;
    text-align: center;
    background-color: #f7f7f7;
}

.gallery-cta h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.gallery-cta p {
    margin-bottom: 30px;
    color: #666;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* Products Page */

.product-categories {
    padding: 30px 0;
    background-color: #f7f7f7;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 800;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    color: #e63946;
    border-bottom-color: #e63946;
}

.product-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.price-filter,
.sort-options {
    display: flex;
    align-items: center;
}

.price-filter label,
.sort-options label {
    margin-right: 10px;
}

.price-filter select,
.sort-options select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.products {
    padding: 40px 0;
    background-color: #fff;
}

.product-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-image {
    height: 250px;
    background: url('/api/placeholder/400/200') no-repeat center center/cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.product-specs span {
    background-color: #f1f1f1;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 14px;
}

.product-price {
    margin-bottom: 15px;
}

.price {
    font-weight: bold;
    font-size: 18px;
    color: #e63946;
}

.installment {
    font-size: 14px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-cta {
    padding: 60px 0;
    text-align: center;
    background-color: #f7f7f7;
}

.product-cta h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.product-cta p {
    margin-bottom: 30px;
    color: #666;
}


/* Contact Page */

.contact {
    padding: 60px 0;
    background-color: #fff;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 30px;
    margin-bottom: 15px;
    color: #e63946;
}

.contact-card h3 {
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 5px;
}

.contact-form {
    padding: 60px 0;
    background-color: #f7f7f7;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.contact-form p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.location {
    padding: 60px 0;
    background-color: #fff;
}

.location h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #666;
}


/* Responsive Styling */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h2 {
        font-size: 28px;
    }
    .feature-items,
    .car-items,
    .gallery-items,
    .product-items {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .product-filter {
        flex-direction: column;
        gap: 15px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    header .container {
        flex-direction: column;
    }
    .logo {
        margin-bottom: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px 5px;
    }
}