/* Apply Montserrat globally */
* {
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  
}


body {
  color: #333;
  background-color: #fff;
  min-height: 100%;
  margin: 0;
  font-family: 'Montserrat', 'Arial', sans-serif;
}

.section-one {
  background-color: #001a47;
  background-image: 
    linear-gradient(270deg, #28364640, #013582 50%, #0c357140),
    url('Images/first_section_bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #00c8ff;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Logo and heading */
.logo-text-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px;
}

.logo-text-row .logo {
  width: 115px;
  height: auto;
}

.logo-text-row h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  text-align: justify;
  color: #fff;
  text-align: justify;
  letter-spacing: 0;
  justify-content: center;
  align-items: center;
  width: 700px;
  padding-left: 30px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  line-height: 25px;
  display: flex;
}

/* Left & Right Layout */
.content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Align left container text to the right side */
.left {
  flex: 1;
  min-width: 300px;
  text-align: left;      /* align content to the left */
  display: flex;
  flex-direction: column;
  align-items: flex-end;  /* push items to the right edge */
}

/* Align right container (car image) to the left side */
.right {
  flex: 1;
  text-align: left;       /* align image to left */
  display: flex;
  justify-content: flex-start; /* push image left */
}

/* Adjust image size */
.car-image {
  width: 50%;
  max-width: 500px;
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.4));
}

/* Stats Section */
.stats {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: flex-end; /* align text blocks to the right edge */
}

.stat h1 {
  font-size: 72px;
  font-family: Jura, sans-serif;
  color: #0ff;
  font-weight: 600;
  margin: 0 0 5px 0;
  letter-spacing: 1px;
}

.stat p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.8;
  max-width: 300px;
  text-align: left; /* left-align text paragraphs */
  font-family: Jura, sans-serif;
}

.stat strong {
  color: #0ff;
  font-weight: 600;
  font-family: Jura, sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
  .content {
    flex-direction: column;
    text-align: center;
  }
  .left, .right {
    align-items: center;
    text-align: center;
  }
  .car-image {
    width: 80%;
    margin-top: 40px;
  }
  .stats {
    align-items: center;
  }
  .stat p {
    text-align: center;
  }
}


/* Section 2 */
.section-two {
  background: url('Images/second_section_bg.png') no-repeat center center/cover;
  background-position: 0%;
  background-size: cover;
  background-attachment: fixed;
  padding-top: 127px;
  padding-bottom: 127px;
  display: block;
}

.section-two .w-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

/* Section 3 */
.section-three {
  background-color: #e6ecf2;
  padding: 60px 30px;
  color: #00559f;
}

.section-three .container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.section-three .left {
  flex: 1;
  text-align: center;
}

.device-img {
  width: 300px;
  margin-bottom: 20px;
}

.section-three h1 {
  font-size: 32px;
  color: #0066cc;
}

.section-three h3 {
  font-size: 18px;
  color: #00559f;
  margin-bottom: 15px;
}

.section-three p {
  font-size: 15px;
  color: #00559f;
  margin-bottom: 10px;
}

.section-three .right {
  flex: 2;
}

.section-three ul {
    flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 80%;
  margin-bottom: -16px;
  display: flex;
  list-style: none;
  padding-left: 10%;
}

.section-three li {
  margin-bottom: 20px;
  font-size: 16px;
  color: #000;
}

.section-three li strong {
 color: #00569f;
    font-size: larger;

}

/* Footer Section */
.footer {
  background-color: #f5f7fa;
  background-image: linear-gradient(to right, #283747, #003482);

  color: #fff;
  padding: 40px 30px 20px;
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  width: 250px;
  margin-bottom: 10px;
}

.footer address,
.footer a {
  color: #fff;
  text-decoration: none;
  line-height: 1.6;
}

.footer a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
}

.section-fourth {
  background: url('Images/section_fourth_bg.png') no-repeat center center/cover;
  background-position: 0%;
  background-size: cover;
  background-attachment: fixed;
  padding-top: 300px;
  padding-bottom: 300px;
  display: block;
}


/* Automotive Solutions Section */
.automotive-section {
  background-color: #d6dce5;
  padding: 80px 40px;
  text-align: center;
}

.automotive-section h2 {
 color: #34485e;
  text-align: center;
  letter-spacing: 10px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  padding-bottom: 60px;
  font-family: Montserrat, sans-serif;
  font-size: 35px;
  font-weight: 600;
  line-height: 25px;
  display: block;
}

.solutions-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.solution-card {
  background: transparent;
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  text-align: left;
  color: #222;
}

.solution-card h3 {
  font-size: 22px;
  color: #0a1f44;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-small {
  height: 22px;
}

.solution-card h4 {
  color: #0055aa;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 15px;
}

.solution-card p {
  font-size: 14.5px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.solution-card h5 {
  color: #000;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-card ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.6;
}

.solution-card ul li {
  font-size: 14px;
  color: #222;
  margin-bottom: 5px;
}

.solution-card img{
    width: 60%;
    height: auto;
    margin-top: 15px;
    border-radius: 8px;
}

.signup-btn {
  margin-top: 25px;
  padding: 12px 40px;
  background-color: #0760a6;
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.signup-btn:hover {
  background-color: #22afe1;
}

/* Responsive */
@media (max-width: 992px) {
  .solutions-container {
    flex-direction: column;
    align-items: center;
  }

  .solution-card {
    max-width: 600px;
  }

  .automotive-section h2 {
    font-size: 26px;
  }
}

.section-two .heading-2 {
  color: #fff;
  letter-spacing: 2px;
  overflow-wrap: break-word;
  font-family: Montserrat, sans-serif;
  font-size: 40px;
  font-weight: 600;
  display: block;
}

.section-two .heading{
    color: #fff;
  font-size: 37px;
  font-weight: 400;
  display: block;
}

.horizontal-bar.beige {
  background-color: #fff;
  display: inline-block;
}
.horizontal-bar {
  background-color: #fff;
  width: 60px;
  height: 2px;
  display: inline-block;
}

text-block-6 {
  color: #fff;
  padding-bottom: 20px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
}

@media (max-width: 768px) {
  body, h1, h2, h3, h4, h5, h6, p, li {
    font-size: 90%; /* scale down all text slightly */
  }
  /* Section Two: smaller text */
  .section-two .heading-2 {
    font-size: 17px;
    line-height: 20px;
  }
  .section-two .heading {
   font-size: 20px;
    line-height: 25px;
  }

  .section-two{
    padding-top: 20px;
    padding-bottom: 40px;
    position: relative;
    background-attachment: scroll;
    padding: 61px 30px;
  }

  .section-fourth{
    display: none;
  }

  /* Section Three: right div text aligned left */
  .section-three .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-three .left {
    text-align: center;
  }
  .section-three .right {
    text-align: left;
    width: 100%;
  }
  .section-three ul {
    padding-left: 5%;
    max-width: 100%;
    flex-direction: column;
  }
  .section-three li {
    font-size: 14px;
  }

  /* Automotive Section: smaller text */
  .automotive-section h2 {
    padding-bottom: 60px;
    font-size: 21px;
  }
  .solution-card h4 {
    font-size: 14px;
  }
  .solution-card p {
    font-size: 13px;
  }
  .solution-card h5 {
    font-size: 14px;
  }
  .solution-card ul li {
    font-size: 13px;
  }
  .solution-card img {
    width: 80%;
  }
  
}

@media (max-width: 768px) {
  .section-one .content {
    flex-direction: row; /* keep left/right layout */
    gap: 20px;
    justify-content: space-between;
  }

  .section-one .left {
    flex: 1;
    min-width: 150px;
    text-align: left;
    align-items: flex-start;
  }

  .section-one .right {
    flex: 1;
    text-align: left;
    display: flex;
    justify-content: flex-start;
  }

  .section-one .logo-text-row h3 {
    font-size: 14px;
    line-height: 18px;
    width: 100%;
    padding-left: 0;
    text-align: left;
  }

  .section-one .logo-text-row .logo {
    width: 80px;
  }

  .section-one .stat h1 {
    font-size: 40px;
  }

  .section-one .stat p {
    font-size: 12px;
    max-width: 200px;
    text-align: left;
  }

  .section-one .car-image {
    width: 100%;
    max-width: 350px;
  }

  .section-one .stats {
    gap: 30px;
  }
}