/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  margin-top: 40px;
  font-weight: bold;
  text-align: center;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: block;
  width: 180px;
  height: 50px;
  background-image: url('https://www.china-constructionmachinery.com/image-files/china-construction-machinery-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffcc00;
}

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 600px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: #444;
    padding: 10px 0;
  }

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

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }
}

/* Slide Text Overlay */
.slide-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
  max-width: 90%;
  z-index: 5;
}
 

/* Slider Section */
.slider {
  position: relative;
  width: 100vw;
  height: 500px;
  overflow: hidden;
  margin: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #ffcc00;
}

/* Hero Sections */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: #000;
  color: #ffcc00;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #333;
  color: #ffcc00;
}


.split-hero {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 500px;
}

.split-hero-text {
  flex: 1;
  background-color: #000;
  color: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.split-hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.split-hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: #000;
  color: #f7c600; /* Caterpillar yellow */
  padding: 12px 24px;
  font-weight: bold;
  border: 2px solid #f7c600;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
  background-color: #f7c600;
  color: #000;
}

.split-hero-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* Responsive layout for screens 940px and below */
@media (max-width: 940px) {
  .split-hero {
    flex-direction: column;
    height: auto;
  }

  .split-hero-text {
    padding: 40px 20px;
  }

  .split-hero-image {
    width: 100%;
    height: 300px;
  }
}



.china-hero {
  background-color: #ffcc00;
  color: #000;
}

.china-hero a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

.china-hero a:hover {
  color: #333;
}

.right-choice-hero {
  background-color: #ffffff;
  color: #000;
  padding: 60px 20px;
  text-align: center;
}

.right-choice-hero .container {
  max-width: 1000px;
  margin: 0 auto;
}

.right-choice-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.right-choice-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.rhino-hero {
  background-color: #e35205;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.rhino-hero .container {
  max-width: 1000px;
  margin: 0 auto;
}

.rhino-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.rhino-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.heracles-hero {
  background-color: #000;
  color: #fff;
  padding-bottom: 3rem;
}

/* Features */
.features {
  padding: 3rem 0;
  text-align: center;
}

.feature-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
}

.card h3 {
  margin-bottom: 1rem;
  color: #000;
}

/* Heracles image boxes */
.image-boxes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.image-box {
  flex: 1;
  max-width: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.15);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-box img:hover {
  transform: scale(1.05);
}



/* Footer */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}




/* Go to Top Button */
#goTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #222; /* Dark Gray */
  color: #ffcc00;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

#goTopBtn:hover {
  background-color: #222;
}

/* General Spacing Styles */
    body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
    }
    .section {
      width: 90%;
      margin: 30px auto;
    }
    .image-container {
      text-align: center;
      margin: 20px 0;
    }
    h1, h2, h3 {
      text-align: center;
      margin: 25px 0 15px 0;
    }
    p {
      text-align: center;
      margin: 15px 0;
    }
    table {
      margin: 25px auto;
    }
    
   
    
    /* Table Styling */
    table.specs {
      width: 90%;
      border-collapse: collapse;
    }
    table.specs td {
      padding: 8px;
      border: 1px solid #ddd;
    }
    table.specs tr.header-row {
      background-color: #333;
      color: white;
    }
    table.specs tr:nth-child(even) {
      background-color: #f2f2f2;
    }