/* ===========================
   BASE ABOUT SECTION
=========================== */
.about-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
  width: 100%;
  min-height: 600px;
  overflow: visible;
  z-index: 2;
  scroll-margin-top: 80px;
}

/* ===========================
   DARK BACKGROUND (DESKTOP ONLY)
=========================== */
.about-section::before {
  content: "";
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 65%;
  background-color: #203147;
  z-index: 1;
}

/* ===========================
   SHAPE + IMAGE CONTAINER
=========================== */
.shape-container {
  position: relative;
  width: 480px;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  margin-left: 180px;
}

.shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #f7a600;
  border-radius: 40% 20% 10% 2% / 40% 20% 10% 2%;
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.3);
}

/* ===========================
   IMAGE FIX (RESPONSIVE)
=========================== */
.about-image {
  width: 125%;
  height: auto;
  z-index: 3;
  margin-left: 35px;
  transform: scale(1.05);
  transition: 0.3s ease;
}

.about-image:hover {
  transform: scale(1.15);
}

/* ===========================
   TEXT CONTENT
=========================== */
.about-content {
  position: relative;
  z-index: 3;
  background-color: #203147;
  margin-top: 140px;
  margin-right: 300px;
  padding: 3rem 3.5rem;
  max-width: 530px;
  border-radius: 4px;
}

.about-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* FIXED RESPONSIVE */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  white-space: nowrap;       /* keep in one line */
  overflow: visible;         /* show entire text */
  text-overflow: unset;      /* remove "..." */
}

.about-content h1 span {
  color: #f7a600; /* FIX OVERFLOW */
  line-height: 1.2;
}


.about-content h1 span {
  color: #f7a600;
}

.about-content p {
  font-size: 1rem;
  color: #d4d4d4;
  line-height: 1.8;

}


/* ===========================
   TABLET FIX
=========================== */
@media (max-width: 1100px) {

  .about-section {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .shape-container {
    width: 380px;
    height: 330px;
    margin: 0 auto;
    order: -1;
  }

  .about-image {
    width: 100%;
    margin-left: 0;
    transform: scale(1);
  }

  .about-section::before {
    height: 33%;
    bottom: 40px;
  }

  .about-content {
    margin: 0 auto;
    text-align: center;
    max-width: 600px;
  }
}

/* ===========================
   MOBILE VIEW (MAIN FIX)
=========================== */
@media (max-width: 780px) {

  /* Remove dark background */
  .about-section::before {
    display: none !important;
  }

  /* Stack everything vertically and center */
  .about-section {
    flex-direction: column;
    align-items: center;   /* center horizontally */
    justify-content: flex-start;
    gap: 12px;             /* small gap between elements */
    padding: 3rem 5%;      /* add horizontal padding for responsiveness */
  }

  /* H1 on top */
  .about-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 8px;
    text-align: center;
    order: -1;
  }

  /* Shape container centered */
  .shape-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .shape {
    width: 100%;
    height: 100%;
  }

  .about-image {
    width: 100%;
    margin: 0;
    transform: scale(1);
  }

  /* Content below shape, centered and responsive */
  .about-content {
    width: 100%;            /* take full available width */
    max-width: 360px;       /* limit max width */
    margin: 10px auto 0;    /* auto margin centers it */
    padding: 1.7rem;
    text-align: center;
    box-sizing: border-box; /* ensure padding doesn't break width */
  }
}



/* Extra small devices */
@media (max-width: 500px) {
  .shape-container,
  .about-content {
    width: 95%;
    max-width: 300px;
  }

  .shape {
    height: 220px;
  }

  .about-content h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 6px;
  }

  .about-content {
    margin-top: 8px;       /* maintain small gap */
    padding: 1.5rem;
  }
}