.scroll-link {
  color: black;
  text-decoration: none;
}

.scroll-link.active {
  color: #ed7902; /* Change color when active */
}

.container-about {
  max-width: 1278px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 70px;
  margin-bottom: 70px;
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* height: 20rem; */
  align-items: center;
}
.mt {
  margin-top: 70px;
}
.about-title {
  margin-bottom: 15px;
}

.vectors-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
  /* background-color: rgb(192, 196, 196); */
}

.shape-1 {
  width: 100%; /* Make the image responsive based on container width */
  max-width: 200px; /* Limit the maximum width */
  height: 150px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

@media (max-width: 767px) {
  .shape-1 {
    max-width: 150px; /* Adjust image size for smaller screens */
    height: 120px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .shape-1 {
    max-width: 180px; /* Slightly larger for tablets */
    height: 140px; /* Fixed height for tablets */
  }
}

@media (min-width: 1024px) {
  .shape-1 {
    max-width: 200px; /* Full size for larger screens */
    height: 150px; /* Fixed height for large screens */
  }
}

.after-line-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.explain {
  /* width: 50%; */
  max-width: 550px;

  text-align: justify;

  word-wrap: break-word;
  hyphens: auto;
  margin: 0 auto;
  padding: 10px;
  font-style: italic;
  height: 300px;
}

/* Adjustments for large screens */
@media (min-width: 1024px) {
  .explain {
    width: 60vw;
    font-style: italic;
  }
}

/* Adjustments for medium screens (tablets) */
@media (max-width: 768px) {
  .explain {
    /* width: 90vw; */
    font-style: italic;
  }
}

/* Adjustments for small screens (phones) */
@media (max-width: 480px) {
  .explain {
    width: 95vw; /* Almost full width on small screens */
    font-size: 0.9rem; /* Slightly smaller font for better fit */
  }
}

.explain-image {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.under-explain-image {
  text-align: center;
  text-decoration: underline;
}

.by-shape-1 {
  padding-bottom: 9px;
}
.four-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns by default */
  grid-gap: 60px; /* Gap between grid items */
  padding: 10px;
}

/* Adjustments for larger screens */
@media (min-width: 1024px) {
  .four-items {
    grid-template-columns: repeat(2, 1fr); /* Four columns for large screens */
    grid-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .four-items {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px;
  }
}

@media (max-width: 768px) {
  .four-items {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
  }
}

.four-1 {
  width: 300px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.under-four-items {
  position: relative;
  width: 100%;
}

.about-text-image-container {
  z-index: 10;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center text over the image */
  color: white; /* Text color */
  text-align: center; /* Center text */
  padding: 10px; /* Optional: Add padding */
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Semi-transparent background for readability */
  border-radius: 5px;
}
.about-text-image {
  font-size: 1rem; /* Adjust font size */
  /* line-height: 1.5;  */
  margin: 0;
}

.image-under-text {
  width: 100%;
  max-width: 100%;
  height: 130vh;
  display: block;
  filter: brightness(0.7);
  object-fit: cover; /* Ensures the image covers the container while maintaining its aspect ratio */
}
.shapping-one {
  background-color: rgb(220, 218, 217);
  border-top-left-radius: 25px;
}
/* Optional: Add media queries for extra responsiveness */
@media (max-width: 768px) {
  .image-under-text {
    height: 500px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 480px) {
  .image-under-text {
    height: 300px; /* Further adjust height for mobile screens */
  }
}

@media only screen and (max-width: 800px) {
  /* .four-items {
    grid-gap: 20px;
  } */
  .after-line-container {
    display: flex;
    flex-direction: column;
  }
  .after-line {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}
.about-content {
  width: 100%;
  height: auto;
  z-index: 50;
}

@media (min-width: 640px) {
  .container-about {
    max-width: 640px;
  }
  .about-content {
    /* width: 75%; */
    /* line-height: 1.5; */
  }
}

@media (min-width: 768px) {
  .container-about {
    max-width: 768px;
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .container-about {
    max-width: 1024px;
  }
  .about-content {
    /* background-color: rgb(194, 194, 193); */
  }
  .about-text-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2rem;
    color: white;
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* line-height: 1.5; */
    margin: 0;
    height: 300px;
  }
  .four-1 {
    width: 200px;
  }
}

@media (min-width: 1280px) {
  .container-about {
    max-width: 1280px;
  }
  .title-design {
    font-size: 30px;
  }
}

@media (min-width: 1536px) {
  .container-about {
    max-width: 1536px;
  }
}

/* For medium screens */

/* For small screens */
