/** global element styling **/

@import 'https://fonts.googleapis.com/css?family=Lato:400,700';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #eee;
  font-family: 'Lato', sans-serif;
}

    #page-wrapper {
      position: relative;
    }

li {
  list-style: none;
}

a {
  color: #000;
  text-decoration: none;
}

/** global classes styling **/

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}


.btn {
  padding: 0 20px;
  height: 40px;
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
  border: 3px black solid;
  border-radius: 7.5%;
  background: transparent;
  cursor: pointer;
}

.grid {
  display: flex;
  align-items: flex-start;
}

/* Modified CSS with background image, skew animation, responsiveness */
/* Header styles */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#compnyName {
  border-bottom: 3px solid rgba(68, 128, 0, 0.92);
  border-radius: 7.5%;
}

#header-img {
  max-height: 50px;
  cursor: pointer;
}

/* Hero section with background image and skew animation */
#hero {
  position: relative;
  background-image: url('https://Yoursco1.github.io/yourscotech.github.io/img/dispatchBike.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px 80px 20px; /* padding top enough for fixed header */
  overflow: hidden;
  animation: skewAnimation 7s ease-in-out infinite alternate;
  box-shadow: inset 0 0 0 1000px rgba(0, 123, 255, 0.7); /* Blue overlay for contrast */
  clip-path: polygon(0 0, 100% 5%, 100% 95%, 0% 100%); /* slight skew shape */
  margin-top: 70px; /* offset for fixed header height */
  border-radius: 15px;
}

/* Skew animation keyframes */
@keyframes skewAnimation {
  0% {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0% 100%);
  }
  100% {
    clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 95%);
  }
}

#hero h2 {
  font-size: 2.2em;
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-weight: 700;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.8);
}

#hero .yName {
  font-style: italic;
  color: #d4edda;
  font-weight: 600;
}

/* Submit button styles with brand color */
#bookPickupBtn {
  background-color: rgba(84, 205, 50, 0.9);
  color: #fff;
  padding: 15px 35px;
  font-size: 1.25em;
  font-weight: 700;
  border: none;
  border-radius: 35px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(84, 205, 50, 0.6);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#bookPickupBtn:hover,
#bookPickupBtn:focus {
  background-color: rgba(56, 145, 18, 0.95);
  box-shadow: 0 8px 20px rgba(56, 145, 18, 0.8);
  outline: none;
}

.li-border {
  border: none; /* Remove specific border styles */
  border-bottom: 1px solid rgba(84, 205, 50, 0.897); /* Keep bottom border only */
  background-color: rgba(68, 128, 0, 0.973);
  color: #eee;
  padding: 5px; /* Adjust padding for better touch interaction */
}





#hero #bookPickupBtn {
  background-color: rgba(84, 205, 50, 0.897); 
  transition: background-color 0.5s; 
}


.container {
  padding: 10px;
} 

#About-Us {
  margin-top: 20px;
}

#About-Us .desc h2 {
  text-align: center; /* Center the heading */
}

#About-Us .grid {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
}

#accessories .level{
  text-align: center;
}

#About-Us .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: 100%;
  color: rgba(68, 128, 0, 0.973);
} 



#About-Us .desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  width: 100%;
  padding: 15px;
}

#About-Us .desc ul{
  margin-bottom: 10px;
  text-align: justify;
  letter-spacing: 0.6px;
}

.services{
  font-size: 1.1em;
}

#accessories {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product {
  padding: 10px;
  width: calc(100% / 1);
  margin: 10px;
  border: 1px solid #000;
  border-radius: 3px;
}

.product > .level {
  background-color: #ddd;
  color: black;
  padding: 10px 0;
  text-transform: uppercase;
  font-weight: 700;/
}

.product > img{
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.product > h2 {
  margin-top: 10px;
}

.product > ol { 
  margin: 10px 0;
}

.product > ol > li {
  padding: 5px 0;
}

.product > button {
  padding: 8px 15px;
  margin: 10px 0;
  background-color: rgba(68, 128, 0, 0.973);
  font-weight: 400;
}

.product > button:hover {
  background-color: rgba(84, 205, 50, 0.897);
  transition: background-color 0.5s;
}

#how-it-works {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#how-it-works > iframe {
  max-width: 560px;
  width: 100%;
}

footer {
  margin-top: 30px;
  background-color: #ddd;
  padding: 20px;
    display: flex;
  justify-content: center;
}


footer > ul > li {
  padding: 0 10px;
} 

footer > span {
  margin-top: 5px;


  font-size: 0.9em;
  color: #444;
}


/* Media query for smaller screens */
@media only screen and (max-width: 767px) {
  .logo {
    width: 100%; /* Make the logo full width on smaller screens */
  }

  nav {
    flex-direction: column; 
    align-items: center; 
  }

  nav li {
    margin: 10px 0; /* Adjust margin for better spacing */
  }

  .nav-link {
    display: block; /* Display links as block elements for better touch targets */
    width: 100%; /* Make links full width */
  }

  #hero {
    padding: 100px 15px 60px 15px;
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0% 100%);
  }

  #hero h2 {
    font-size: 1.8em;
    max-width: 90%;
    margin-bottom: 25px;
  }

  #bookPickupBtn {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  #accessories {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #accessories .product {
    width: 90%;
    margin: 10px 0;
  }
  #accessories .btn {
    width: 80%;
    margin: 10px 0;
  }


}
