/* General Styles */
* {
  margin: 0;
  padding: 2px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #182570d3;
  color: white;
  padding: 1rem 2rem;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  vertical-align: middle;
}

.logo {
  display: flex;
  align-items: center;
}

.logo span {
  margin-left: 10px;
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style-type: none;
}

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

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
}
nav ul li a:hover {
  color: #ffd700;
}


.login-btn {
  background-color: white;
  color: #182570d3;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* Styles for the hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 4px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* When the hamburger is active, transform it into a cross */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Media query to display the hamburger menu on smaller screens */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.active {
    display: flex;
  }
}


/* Main Section */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh;
  padding: 20px;
  flex-wrap: wrap;
}

.text-content {
  max-width: 500px;
  margin-right: 20px;
  margin-bottom: 20px;
}

.text-content h3 {
  color: #182570d3;
  font-size: 18px; /* Adjusted for responsiveness */
}

.text-content h1 {
  font-size: 36px; /* Reduced from 53px for smaller devices */
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.2;
}

.text-content p {
  font-size: 16px;
  margin-bottom: 10px;
}

.signup-btn {
  background-color: #182570d3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  font-weight: bold;
}

.image-content img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0;
  border-radius: 10px;
}

/* Bike Section */
.bike-section {
  background-color: #182570d3;
  padding: 25px;
  text-align: center;
}

.bike-section h2 {
  color: #fff;
  font-size: 24px;
}

.bike-section p {
  color: #ffffffd7;
  font-size: 16px;
  margin-bottom: 15px;
}

.bike-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.bike-gallery img {
  width: 100px;
  border-radius: 10px;
}

/* Features Section */
.features {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
}

.features h2 {
  font-size: 36px;
  color: #333;
}

.features p {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: #e8ebf5;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.feature-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.feature-card a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.feature-card a:hover {
  color: #0057b3f6;
}

/* Commute Section */
.commute-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f8f9fc;
}

.commute-section h2 {
  font-size: 36px;
  color: #333;
}

.commute-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.commute-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.commute-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: left;
  width: 30%; /* Adjusted for better responsiveness */
  padding: 20px;
}

.commute-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.commute-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.commute-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.commute-card a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.commute-card a:hover {
  color: #0056b3;
}

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

/* Testimonials Section */
.testimonial-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
}

.testimonial-section h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.testimonial-section p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #666;
}

.slider {
  position: relative;
  max-width: 600px;
  margin: 20px auto;
}

.slider-content {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.slide {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.slide img {
  width: 100px;
  height: 100px;
  border-radius: 50%; /* Changed to 50% for a perfect circle */
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.testimonial-author {
  font-style: italic;
  color: #333;
}

.active {
  display: block;
}

.arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.arrow {
  font-size: 2em;
  color: #333;
  cursor: pointer;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.248);
  border-radius: 50%;
  transition: background-color 0.3s ease;
  flex: 0 0 auto;
}

.arrow:hover {
  background-color: rgba(255, 255, 255, 1);
}

/* Sign Up Section */
.signup-section {
  background-color: #182570d3;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.signup-section h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.signup-section p {
  margin-bottom: 20px;
  font-size: 16px;
  color: black;
}

.signup-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.signup-form input {
  padding: 10px;
  border: none;
  border-radius: 25px;
  margin-right: 10px;
  width: 300px;
  max-width: 100%;
  margin-bottom: 10px;
}

.signup-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background-color: white;
  color: #466495;
  cursor: pointer;
}

.signup-form button:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Footer Section */
footer {
  background-color: #fff;
  color: #333;
  padding: 30px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 50px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  text-align: left;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-column {
  margin-left: 40px;
  min-width: 150px;
}

.footer-column h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #182570d3;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: #0057b3;
}

/* Responsive Styles */

/* For Tablets and below */
@media only screen and (max-width: 1024px) {
  .commute-card {
    width: 45%; /* Adjusted for medium screens */
  }
}

/* For Mobile Devices */
@media only screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    display: none; /* Hidden by default, shown when hamburger is active */
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 0;
    right: 0;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  main {
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-top: 20px;
  }

  .text-content h1 {
    font-size: 28px;
  }

  .text-content h3 {
    font-size: 16px;
  }

  .commute-card {
    width: 100%;
    max-width: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input {
    margin-right: 0;
  }
}

/* For Small Mobile Devices */
@media only screen and (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .bike-gallery {
    flex-direction: column;
    align-items: center;
  }

  .commute-grid {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    margin-top: 20px;
  }

  .footer-column {
    margin-left: 0;
    margin-bottom: 20px;
  }

  .signup-section h2 {
    font-size: 1.5em;
  }

  .signup-form input {
    width: 100%;
    max-width: 300px;
  }
}
