/* Base Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

/* Hero Section with Background */
header.hero {
  position: relative;
  height: 91vh;
  background: url('../Images/VehicleDashboardWithCarPlayPhone.jpg') center center / cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);*/
  background: linear-gradient(to bottom, rgba(0, 0, 0), transparent);
  z-index: 1;
}

/* Logo Positioning */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.site-logo {
  height: 100px;
  width: auto;
}

/* Nav Menu Styles */
.nav-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
  cursor: pointer;
  z-index: 3;
}

/* Hero Content */
/*.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}*/

.hero-content {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  max-width: 800px;
  padding: 1rem 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);  /*Darker, consistent background */
  backdrop-filter: blur(3px);      /*Adds a frosted glass effect */
 

  border-radius: 20px;
  color: white;
  line-height: 1.6;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #488AFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 20px;
   
}

.cta-buttons img {
  /*height: 50px;*/
  margin: 0.5rem;
  vertical-align: middle;
}

.scroll-indicator {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  color: #488AFF;
  /*color: white;*/
  animation: bounce 1s infinite;
  /*opacity: 0.9;*/
  z-index: 3; /* Ensure it's above the hero content */
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(15px); }
}

.section-heading {
  text-align: center;
  padding: 1rem 1rem 1rem;
  /*background-color: #263238;*/
  background: linear-gradient(to right, #263238, #607d8b);
  color: white;
}

.section-heading h2 {
  font-size: 2.2rem;
  margin: 0;
}

.section-divider {
  width: 100px;
  height: 6px;
  margin: 1rem auto 0;
  background: #488aff; /* or white, or a brand accent */
  border-radius: 2px;
}



/* Featurette Sections */
section.featurette {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 2rem;
  background-color: #f9f9f9;
}

.featurette:nth-child(even) {
  background-color: #ffffff;
}

.featurette img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
}

.feature-text {
  max-width: 500px;
}

.feature-text h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

/* Footer */
footer {
  background: #263238;
  color: #aaa;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

/* Responsive Styling */
@media (max-width: 768px) {
  header.hero {
    background-position: right center;
  }
  
  .site-logo {
  height: 70px;
  width: auto;
}
   .hero-content {
    /*max-width: 95%;*/
    padding: 1rem 1rem;
    bottom: 20px;
    /*position: static;*/
    /*transform: none;*/
    width: 90%;
    /*margin: 0 auto;*/
  }

  .hero-content h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }


  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .featurette {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-menu ul.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}
