/* Default reset */
* {
    margin: 0;
    line-height: 1.5;
    -webkit-font-soothing: antialiased;
    list-style: none;
    text-decoration: none;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
         box-sizing: border-box;
}

/* fonts */

.info {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    font-size: 2em;
    padding: 5px 10px;
  }

  .servicesTypes {
    color: black;
    font-family: "Montserrat", sans-serif;
  }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

html {
    flex: 1;
}

/* Navigation styles */
.navbar {
    background-color: #2b2a2a;
    overflow: hidden;
    display: flex;
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    width: 70%;
    transition: 1000ms ease-out;
}
/* burger icon style */
.container {
    display: block;
    cursor: pointer;
    margin: 9px 15px
  }
  
  .bar1, .bar2, .bar3 {
    width: 30px;
    height: 5px;
    background-color: #bdbbbb;
    margin: 6px 0;
    transition: 0.4s;
  }
  
  .change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
  .change .bar2 {opacity: 0;}
  
  .change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }

  /* burger menu hidden on full screen */
.container {
    opacity: 0; 
}
.bar2 {
background-color: #4CAF50;
}
.nav-icon {
    min-width: 30%;
    font-size: 2em;
    color: white;
    font-weight: 10em;
    background-color: #5b5959;
    padding: 5px 5px;
    border-top-right-radius: 1em;
    border-bottom-left-radius: 1em;
    text-align: center;
    font-family: "Montserrat", sans-serif;

}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.navbar li {
    display: inline;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 16px;
    display: block;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* Header styles */
header {
    background: url('images/cover.webp') center/cover no-repeat;
    /* Add the path to your HD photo */
    color: white;
    text-align: center;
    padding: 5em;
    /* Adjust padding for header content */
}

header h1 {
    margin: 0;
}

.cover {
    background-color: black;
    width: 100%;
    height: 100vh;
    background: url("images/cover.webp") center/cover no-repeat;

}

.cover-text {
    font-size: 1.7em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: white;
    width: 70%;
    height: 60%;
    padding: 100px 5px;
    margin-top: 1em;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
}
.cover-text h4 {
    margin: 10px;
}
.cover-text h4,h3 {
    padding: 3px;
}

.cover-text #callUS{
    margin: 30px;
}


.cover-text>h4>.contact_number, h4>.contact_email {
    color: #3ac0c9;
}
.cover-text>h4>.contact_email {
    color: #3ac0c9;    
}

.cover-text>a {
    background-color: #4CAF50;
    /* border: none; */
    color: white;
    padding: 15px 32px;
    font-weight: 500px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    /* border: 1px solid red; */
}
.cover-text>h4>a{
    color: rgb(250, 249, 249);
}
.cover-text>a:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
  }
  
  @keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
  }


/* Previous styles */
section {
    flex: 1;
    padding: 1em;
}

#available-cars {
    background-image: linear-gradient(rgb(184, 178, 178), rgb(12, 12, 12));
}
.servicesTypes_title {
    color: black;
    text-align: center;
    padding: 5px 5px;
    font-family: "Montserrat", sans-serif;
    margin-top: 100px ;
    text-decoration: underline 5px rgb(45, 45, 51);
}

.cars-title {
    color: white;
    text-align: center;
    /* padding: 5px 5px; */
    font-family: "Montserrat", sans-serif;
    margin-top: 100px ;
    padding: 10px;
    font-weight: 1000;
    text-decoration: underline 5px rgb(45, 45, 51);
}


.title-text-style {
    color: rgb(174, 41, 41);
}

.car-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly
    /* scroll-padding-bottom: 150px; */
}

.car {
    width: 45%;
    flex-grow: 1;
    flex-basis: 450px;
    padding: 5px;
}

.car img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.car-details {
    /* padding: 5px 10px; */
    width: 100%;
    background-color: black;
    color: white;
    font-size: 1em;
    margin-bottom: 0;
}

.car-details {
    padding: 5px 5px;
}

.car-details li {
    padding: 5px;
    font-weight: 400;
}
.car-details ul,
span {
    padding: 5px;
    list-style: none;
    font-family: "Montserrat", sans-serif;

}

.car-details>h4 {
    padding: 10px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    font-size: 2em;
  
}

/* <uniquifier>: Use a unique and descriptive class name
<weight>: Use a value from 100 to 900 */

ul, li {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h3, h4, h5 {
    font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.seat-style {
    color: rgb(29, 135, 29);
    font-size: 1em;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
}
.car-details li img {
    width: 25px;
    height: 18px;
}

.book-btn {
    font-size: 1em;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    border-radius: 5px;
    border: none;
    text-align: center;
    transition-duration: 0.4s;
    width: 50%;
    margin: 0 auto;
}

.book-btn:hover {
    background-color: rgb(37, 71, 33);
    color: white;
}

/* section 3/ services */

.services-gallary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.services-gallary>.services {   
    position: relative;
    flex-grow: 1;
    flex-basis: 450px;
    /* margin-bottom: 10px; */
}
.services img {
    width: 100%;
    max-height: 450px;
    min-height: 340px;
    object-fit: cover;
}

.services .service-content {
    position: absolute; /* Position the background text */
    bottom: 0; /* At the bottom. Use top:0 to append it to the top */
    background: rgb(247, 247, 247); /* Fallback color */
    background: rgba(19, 19, 19, 0.5); /* Black background with 0.5 opacity */
    color: #fbf9f9; /* Grey text */
    padding: 20px;
    margin-bottom: 5px;
    width: 100%;
    height: 60px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
     font-family: "Montserrat", sans-serif;
}

/* Contact Us style */

#contact-us {
    display: flex;
    justify-content: center;

}
#container_contactus {
     width: 40%;
}
.lets-chat {
    margin-top: 20px;
    font-family: "Montserrat", sans-serif;
    text-decoration: underline solid black;
}
#my_form {
    margin-top: 20px;
}

/* style after form gets submitted */
#formresponse {
    font-family:  "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1.5em;
    color: #4CAF50;
    padding: 5px 15px;
}
.learn-more {
    font-family: "Montserrat", sans-serif;
    color: #39833b;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2em;
    width: 100%;
    font-family: "Montserrat", sans-serif;
}
.footer_link {
    font-weight:600;
    color: rgb(250, 249, 248);
}

form {
    max-width: 500rem;
    font-family: "Montserrat", sans-serif;
}

input,
textarea,
button {
    display: block;
    width: 100%;
    margin-bottom: 1em;
    padding: 0.5em;
    font-family: "Montserrat", sans-serif;
}

input,
textarea {
    border: none;
    border-bottom: 1px solid #035f06;
}

textarea:focus, input:focus{
    outline:rgb(2, 91, 2) 1px solid;
}

button {
    background-color: #333;
    color: white;
    border: none;
    padding: 1em;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

/* Responsive styles */
@media screen and (max-width: 950px) {
    .cover-text {
        width: 80vw;
        height: 75vh;
    }
}
@media screen and (max-width: 768px) {
    .info {
        font-family: "Montserrat", sans-serif;
        font-weight: 500;
        font-style: normal;
        color: white;
        font-size: 1.3em;
        padding: 5px 10px;
      }
    
      .servicesTypes {
        color: black;
        font-family: "Montserrat", sans-serif;
      }

      #container_contactus {
        width: 90%;
   }

    .nav-menu {
        border: 1px #2d7e9c solid;
        width: 120px;
        position: relative;
        /* nav menu effects when appears*/
        /* transition: 1000ms opacity ease-out; */

    }

    /* hide navigation menu, shown only when click burger button clicked */
    .nav-hide {
    opacity: 0; 
    }

    /* burger menu shown on smaller screens */
    .container {
        opacity: 1;
        width: 32px;
        height: 35px;
    }

    /* Adjustments for smaller screens */
    .navbar ul {
        font-family: "Montserrat", sans-serif;
        list-style-type: none;
        margin: 15px auto 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 85px;
        /* Adjust based on your header height */
        left: 0;
        background-color: #414040;
    }
    .navbar ul li{
        display: inline-block;
        border-bottom: 1px solid rgb(130, 128, 128);
    }

    .car-details .h4 {
        font-size: 1.5em;
    }
    .cover {
        /* adjust cover image upon resize */
        height: 80vh;
       
    }
    .cover-text {
        font-size: 1em;
        height: 60%;
        width: 95%;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .cover-text > h3, h4, h5, #callUS {
        padding: 10px;
    }
    .cover-text .h4 .contact {
        padding: 15px;
    }
    .cover-text> #callUS {
        margin: 10px;
    }
    .cover-text > h3 {
        padding: 15px;
    }
}

@media screen and (max-width: 500px) {

    .info {
        font-family: "Montserrat", sans-serif;
        font-weight: 500;
        font-style: normal;
        color: white;
        font-size: 1em;
        padding: 5px 10px;
        word-spacing: 8px;
        margin-bottom: 30px;
        margin-top: 10px;
      }
    
      .servicesTypes {
        color: black;
        font-family: "Montserrat", sans-serif;
      }
      #container_contactus {
        width: 100%;
   }
      
    .car-details .h4 {
        font-size: 1.1em;
    }
    .car-details li {
        padding: 2px;
        font-weight: 400;
    }
    .seat-style {
        font-weight: 400;
    }
    .cover-text {
        font-size: 1em;
        height: 70%;
        width: 85%;
        padding: 10px 5px;
        margin-top: 30px;
    }
    .cover-text #callUS {
        padding: 10px;
    }
    .cover-text > h3, h4, h5 {
        padding: 1px;
        /* border: 1px solid blue; */
    }
    .cover-text .h4 .contact {
        padding: 3px;
    }
    .cover-text> #callUS {
        margin: 3px;
    }
    .cover-text > h3 {
        padding: 2px;
    }
    .cover {
        /* adjust cover image upon resize */
        height: 50vh;
    }

    #available-cars {
        margin: 0;
        padding: 0;
    }

    .cars-title {
        margin-top: 100px ;
        padding: 10px;
        font-weight: 1000;
        text-decoration: underline 5px rgb(45, 45, 51);
    }

    .car-list {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .car {
        padding: 0;
        margin: 0;
    }
    
    .car img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }


    .car img {
        height: 270px;
    }

    .services .service-content {
        padding: 15px;
        margin-bottom: 5px;
        width: 100%;
        height: 65px;
        font-size: 1em;
        font-weight: 700;
    }

}