/* Styling dasar */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header (Bagian paling atas) */
.hero {
    background: url('https://images.unsplash.com/photo-1629815049302-3c3b03f0b240') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay gelap */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 2em;
}

.cta-button {
    background-color: #e63946;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d62c3b;
}

/* Bagian Motor Unggulan */
.featured-section, .about-section {
    padding: 80px 20px;
    text-align: center;
}

.featured-section h2, .about-section h2 {
    font-size: 2.5em;
    margin-bottom: 1.5em;
    color: #1d3557;
}

.motor-grid, .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.motor-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.motor-card:hover {
    transform: translateY(-10px);
}

.motor-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.motor-card h3 {
    color: #e63946;
    margin: 20px 0 10px;
}

.motor-card p {
    padding: 0 20px 20px;
}

/* Bagian Mengapa Pilih Kami */
.about-section {
    background-color: #f1faee;
}

.about-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #1d3557;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .featured-section h2, .about-section h2 {
        font-size: 2em;
    }
}

/* Navigasi */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2; /* Menempatkan nav di atas overlay */
    box-sizing: border-box; /* Memastikan padding tidak membuat elemen melebihi 100% */
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #e63946; /* Warna merah saat dihover */
}

/* Penyesuaian responsif untuk navigasi */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}