 /* General Styling */
 :root {
    --Navy: #1A1A2E;
    --Gold: #FFD700;
    --Deep-Red: #C70039;
    --Charcoal: #0A0A0A;
    --Cream: #FFF9E6;
 }
 
 body {
    font-family: 'Arial', sans-serif;
    background-color: var(--Navy);
    margin: 0;
    padding: 0;
    color: var(--Charcoal);
}
header {
    background-color: var(--Navy);
    padding: 20px;
    text-align: center;
    color: var(--Navy);
}
h1, h2, h3 {
    margin: 0;
}
h1 {
    font-size: 3em;
    color: var(--Deep-Red);
}
h2 {
    font-size: 1.5em;
    color: var(--Gold);
}
h3 {
    font-size: 1.2em;
    color: var(--Charcoal);
}
.nav{
    color: var(--Cream);
    font-size: 1rem;
    margin: auto;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    list-style: none;
}
.nav:hover{
    cursor: pointer;
    background-color: var(--Gold);
    transition: transform 0.5s ease;
    border-radius: 50%;
}
ul, li, a{
    list-style: none;
}
a:hover{
    text-decoration: underline;
    text-shadow: var(--Deep-Red);
    text-transform: capitalize;
}
h4{
    padding: auto;
    margin-left:40%;
    font-size: 1.5rem;
    color: var(--Cream);
}
h4 span{
    color: var(--Deep-Red);
}
/* Carousel Styling */
.carousel-container {
    width: 100%;
    max-height: 500px;
    position: relative;
}
.carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.carousel h3{
    color: var(--Cream);
}
p{
    text-align: center;
    margin-top: 0;
    padding: 0;
    color: var(--Cream);
}
.carousel-item {
    min-width: 50%;
    transition: transform 0.5s ease-in-out;
    position: relative;
}
.carousel img {
    width: 35rem;            
    height: 20rem;
    transition: transform 0.5s ease ease-in-out;
}
.carousel:hover img {
    transition: transform 0.3s ease-in-out;
}
.carousel-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--Navy);
    color: var(--Cream);
    padding: 10px;
}
.carousel .read-more {
    display: block;
    background-color: var(--Gold);
    color: var(--Charcoal);
    text-align: center;
    padding: 5px 10px;
    text-decoration: none;
    margin-top: 10px;
}

/* Product Section */
.product-section {
    padding: 50px;
    background-color: var(--Cream);
}
.product-section h2 {
    color:var(--Deep-Red);
}
h5{
    text-align: center;
    font-size: 1rem;
    
}
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.product {
    background-color: var(--Cream);
    border: 1px solid var(--Navy);
    padding: 20px;
    width: 200px;
    text-align: center;
}
.product:hover {
    transform: 2sec ease-in-out;
    cursor: pointer;
    border: .1rem solid var(--Deep-Red);
}
.product h3 {
    margin-bottom: 10px;
}
.product p {
    font-size: 0.9em;
    color: var(--Charcoal);
}
.car-logo{
    width: 3rem;
    height: rem;
    padding: auto;
    margin: auto;
    color: var(--Charcoal);
}
/* Contact Section */
.contact-section {
    padding: 50px;
    margin: 1rem;
    background-color: var(--Deep-Red);
    color: var(--Cream);
    text-align: center;
    border-radius: 50%;
}
.contact-section a {
    color: var(--Gold);
    text-decoration: none;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 20px;
    background-color: var(--Cream);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    width: 50%;
}

.contact-info h3 {
    color: var(--Gold);
}

.enquiry-form {
    width: 45%;
    background-color: var(--Deep-Red);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.enquiry-form h3 {
    margin-bottom: 20px;
    color: var(--Gold);
    text-align: center;
}

.enquiry-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--Cream);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.enquiry-form button {
    width: 50%;
    background-color: var(--Gold);
    color: var(--Navy);
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.enquiry-form button:hover {
    background-color: var(--Cream);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: var(--Navy);
}
/* For standard styling of input placeholders */
input::placeholder, 
textarea::placeholder {
    color: var(--Deep-Red);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--Deep-Red);
    color: var(--Cream);
    text-align: center;
    padding: 20px;
    height: 50%;
}
footer a {
    color: var(--Gold);
    text-decoration: none;
}
footer .slogan{
    color: var(--Cream);
    font-style: italic;
}
footer .slogan span{
    color: var(--Gold);
}
footer .btnhome {
    background-attachment: fixed;
    color: var(--Deep-Red);
}
footer .btnhome:hover{
    background-color: var(--Deep-Red);
    border: .1rem solid var(--Navy);
}
/* Responsive Design */
@media only screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info, .enquiry-form {
        width: 100%;
    }

    .contact-info {
        margin-bottom: 20px;
    }
}
/* Media Query for Small Screens (max-width: 600px) */
@media only screen and (max-width: 768px) {
    /* Carousel - Show one image at a time, hide overflow */
    .carousel-container {
        overflow: hidden; /* Hide the overflow */
        width: 100%; /* Ensure it takes up the full width of the screen */
    }

    .carousel {
        display: flex; /* Keep it in horizontal flex */
        transition: transform 0.5s ease; /* Smooth transition between images */
    }

    .carousel > div {
        min-width: 100%; /* Show one image at a time, ensure each item takes full screen */
        box-sizing: border-box;
    }
    .carousel img {
        height:20rem;
        width: 100%;
        padding: auto;
        margin: auto;
    }
    h4{
        margin-left: 25%;
    }

    /* Adjust the size of text inside the carousel for small screens */
    .carousel-info {
        font-size: 14px; /* Adjust text size for smaller screens */
        padding: 8px;
    }

    /* Product Section - Limit to 5 items and enable scrolling */
    .product-section {
        max-height: 30rem;
    }
    /* Product Section - Limit to 5 items and enable scrolling */
    .product-section {
        max-height: 30rem; /* Set a height limit */
        overflow-y: scroll; /* Enable vertical scrolling */
    }
    
    /* Style carousel info for better mobile visibility */
    .carousel-info {
        font-size: 14px; /* Adjust text size for smaller screens */
        padding: 8px;
    }
    
    /* Adjust product item layout if needed */
    .product-item {
        width: 100%; /* Stack product items in a single column */
        padding: 10px;
        box-sizing: border-box; /* Prevent overflow */
    }
}
