* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

.justify-between{
  display: flex;
  justify-content: space-between;
}

.color-red{
  color: red;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 990;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li {
  position: relative;
  /* color: white; */
  color: #000000;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav li:hover{
  color: red !important;
}

header.scrolled nav ul li {
  color: black;
}
nav ul li ul {
  /* position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  background: white;
  padding: 0.5rem 1rem;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px; */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: white;
  /* padding: 0.5rem 1rem; */
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 999; /* make sure it’s above */
}

nav ul li:hover > ul {
  display: flex;
}

nav ul li ul li{
  /* padding-left:1rem; */
  padding: 0 1rem;
  /* padding-top: 0.25rem; */
}


nav ul li ul li:hover > .nav-sub-products {
  display: flex;
}

.nav-sub-products{
  position: absolute;
  top: 0;
  left: 95%; /* make it open to the right of parent */
  min-width: 180px;
  background: white;
  /* padding: 0.5rem 1rem;
  margin-left: 1rem; */
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 999;
}


.contact-btn {
  background: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

header.scrolled .contact-btn {
  background: red;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

header.scrolled .menu-toggle {
  color: black;
}

.text-dark {
  color: #000 !important;
}

/* ---first-section--- */
.first-section{
  margin-top: 5.5rem;
}


/* --- Banner Slider (Corrected CSS) --- */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden; /* This is crucial for the slide effect */
}

.slides {
  display: flex;
  width: 100%;
}

.slide {
  min-width: 100%;
  /* Removed opacity and display properties that were causing conflict */
}

.slide img {
  margin-top: 85px;
  width: 100%;
  height: auto;
  display: block;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  font-size: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  width: 45px;
  height: 45px;
}

button.prev {
  left: 15px;
}
button.next {
  right: 15px;
}

/* --- Section 1 --- */
.section-1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  background: #f7f7f7;
}

.section-1 .imagee,
.section-1 .content {
  flex: 1 1 400px;
  padding: 1rem;
  box-sizing: border-box;
}

.section-1 .imagee img {
  width: 100%;
  max-width: 100%;
  border-top-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-1 .content {
  text-align: left;
}

.section-1 .content h1 {
  font-family: "Georgia", serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  color: #222;
}

.section-1 .content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;

  font-family: Arial, Helvetica, sans-serif !important;
}

.btn {
  background-color: rgb(204, 2, 2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: rgb(160, 0, 0);
}

.slider-section {
  position: relative;
  height: 320px;
  background: url("../img/road.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.slider-heading {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.slider-content {
  margin-top: -60px;
  position: relative;
  z-index: 3;
  padding: 1rem 0;
}

.card-carousel-wrapper {
  max-width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.card-carousel {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  animation: continuous-scroll 30s linear infinite;
}

.card-carousel-wrapper:hover .card-carousel {
  animation-play-state: paused;
}

@keyframes continuous-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.card {
  flex: 0 0 250px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.card-body {
  padding: 0.75rem;
}
.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: red;
}
.card-body p {
  font-size: 0.9rem;
  color: #666;
}

/* --- gt section--- */
.gt-container {
  /* max-width: 1200px; */
  margin: auto;
  padding: 3rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  /* align-items: center; */
  /* justify-content: space-between; */
  justify-content: center;
}

.gt-image,
.gt-content {
  flex: 1 1 50%;
}

.gt-image img {
  width: 100%;
  /* width: 375px; */
  border-radius: 10px;
  object-fit: cover;
}
.gt-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  gap: 1rem;
  color: #222;
}

.gt-content h1 {
  font-family: "Georgia", serif;
  font-size: 2.2rem;
    color: #222;

}

.gt-content p {
  font-size: 1rem;
  padding: 0 3rem;
  text-align: left;
  color: #555;

  font-family: Arial, Helvetica, sans-serif !important;
}
.gt-content ul {
  font-size: 1rem;
  padding: 0 4rem;
  width: 100%;
  text-align: left;
  color: #555;
}

.gt-content-green {
  display: block;
  color: #02ae5b;
  font-weight: 900;
  font-size: 24px;
}

/* .gt-images {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  align-items: center;
} */

/* .gt-images img {
  text-align: center;

  width: 100%;
  width: 60%;
  height: 50%;
  border-radius: 10px;
  object-fit: cover;
} */

.gt-stats-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  text-align: center;
}

.gt-stat-box {
  flex: 1 1 150px;
}
.gt-stat-box h2 {
  font-size: 2rem;
  color: #1a3c1a;
}
.gt-stat-box p {
  font-size: 0.9rem;
  color: #444;
}

.battery-section {
  text-align: center;
  padding: 30px 10px;
  background: #f2f2f2;
}
.battery {
  width: 200px;
  height: 100px;
  border: 6px solid #333;
  margin: 20px auto;
  position: relative;
  border-radius: 10px;
}
.battery::after {
  content: "";
  width: 20px;
  height: 40px;
  background: #333;
  position: absolute;
  top: 24px;
  right: -26px;
  border-radius: 3px;
}
.charge {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #00e676);
  animation: chargeAnim 2s infinite linear;
  border-radius: 4px;
}
@keyframes chargeAnim {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

.ltl-section {
  text-align: center;
  padding: 4rem 1rem;
}

.ltl-section h2 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.ltl-cards-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ltl-card {
  background: none;
  flex: 1 1 250px;
  max-width: 300px;
}

.ltl-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;

  min-height: 200px;
}

.flip-image{
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.ltl-card-title {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.ltl-card-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid #000;
  border-radius: 25px;
  font-size: 0.85rem;
  text-transform: uppercase;
  background-color: transparent;
  cursor: pointer;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}
.ltl-card-btn:hover {
  background-color: #000;
  color: #fff;
}

.video-section {
  text-align: center;
  padding: 4rem 1rem;
}

.video-section h2 {
  font-family: "Georgia", serif;
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 2rem;
}

.video-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.video-container video {
  width: 45%;
  max-width: 500px;
  height: auto;
}

.logo-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  margin-top: 30px;
  margin-bottom: 30px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.logo-slider-wrapper:hover .logo-slider-track {
  animation-play-state: paused;
}

.logo-slider-track {
  display: flex;
  animation: logo-scroll 30s linear infinite;
  width: max-content;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.logo-slide {
  width: 200px;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-slide img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* --- Footer --- */
.footer {
  background: #eee;
  color: #333;
  font-family: sans-serif;
}
.newsletter {
  background: #ffcdcd;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 3rem 1rem;
}
.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.newsletter-form input {
  padding: 0.75rem;
  border-radius: 20px;
  border: none;
  width: 250px;
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  border: none;
  background: #333;
  color: white;
  cursor: pointer;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  justify-content: space-around;
  background: #fff;
}
.footer-brand {
  max-width: 250px;
  margin-bottom: 2rem;
}
.footer-brand .social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  background: #222;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 1.2rem;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}
.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 0.5rem;
}
.footer-column ul li a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-bottom {
  background: #111;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
  }
  nav.active {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul li,
  header.scrolled nav ul li {
    color: rgb(95, 65, 65);
  }
  .slide img {
    margin-top: 87px;
  }
  .menu-toggle {
    display: block;
  }
  .slider-heading {
    font-size: 1.7rem;
  }
  .card {
    flex: 0 0 70%;
  }
  .card-carousel {
    animation-duration: 25s;
  }
  .section-1 {
    flex-direction: column;
    text-align: center;
  }
  .section-1 .content {
    text-align: center;
  }
  .gt-container {
    flex-direction: column;
  }
  .gt-text-content,
  .gt-images {
    flex: 1 1 100%;
    padding: 0;
  }
  .ltl-cards-container {
    flex-direction: column;
    align-items: center;
  }
  .video-container {
    flex-direction: column;
    align-items: center;
  }
  .video-container video {
    width: 100%;
    max-width: 500px;
  }
  .logo-slide {
    min-width: 50%;
  }
  .footer-main,
  .footer-columns {
    flex-direction: column;
    align-items: center;
  }
  .footer-column {
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    max-width: 300px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .logo-slide {
    min-width: 33.33%;
  }
}
