/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

/* Container Class to Center Content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    position: relative;
}

header .logo h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

/* Horizontal Menu */
nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: #28a745;
    border-radius: 5px;
}

/* Mobile Menu */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.mobile-menu-icon span {
    color: white;
}

/* Hero Section */
.hero {
    background-image: url('hero-bg.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero .search-form input,
.hero .search-form button {
    padding: 10px;
    font-size: 16px;
    margin: 10px;
    border: none;
    border-radius: 5px;
}

.hero .search-form input[type="datetime-local"] {
    width: 200px;
}

.hero .search-form button {
    background-color: #28a745;
    color: white;
    cursor: pointer;
}

.hero .search-form button:hover {
    background-color: #218838;
}

/* Featured Bikes Section */
.featured {
    background-color: #fff;
    padding: 50px 0;
}

.featured h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.featured .bike-category {
    margin-bottom: 40px;
}

.featured .bike-category h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.bike-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.bike-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 280px;
}

.bike-item img {
    max-width: 100%;
    border-radius: 5px;
}

.bike-item h4 {
    margin-top: 15px;
    font-size: 20px;
}

.bike-item p {
    color: #28a745;
    font-size: 18px;
    margin-top: 10px;
}

.bike-item .btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

.bike-item .btn:hover {
    background-color: #218838;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    margin-bottom: 10px;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

footer ul li {
    margin: 0 15px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

footer ul li a:hover {
    text-decoration: underline;
}

/* Mobile Menu active state */
#navbar.active {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #333;
}

#navbar.active ul {
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }

    nav ul {
        display: none;
    }

    .hero h2 {
        font-size: 28px;
    }

    .bike-item {
        width: 100%;
        max-width: 300px;
    }

    .featured .bike-list {
        grid-template-columns: 1fr 1fr;
    }

    footer p {
        font-size: 12px;
    }
}
