.aboutus {
  padding: 2% 0%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.aboutus h1 {
  width: fit-content;
  margin: auto;
  font-size: 2.5rem;
  color: var(--primaryColor);
  border-bottom: 4px solid var(--primaryColor);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}
.aboutus h1:hover {
  color: var(--helperColor);
  border-color: var(--helperColor);
}

.aboutus-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 40px;
}

/* --------------------------------------------- */

.aboutus-image {
  width: 45%;
  height: 100%;
  background: linear-gradient(
    190deg,
    var(--gray) 0%,
    var(--primaryColor) 73%
  );
  box-shadow: 0 8px 20px var(--shadow);
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.aboutus-image:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px var(--shadow);
}

.aboutus-image div {
  width: 95%;
  text-align: center;
  position: relative;
  top: -20px;
  right: 20px;
  border-radius:25px;
}

.aboutus-image div img {
  border-radius:25px;
  width: 95%;
  margin: auto;
  height: fit-content;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.aboutus-image div img:hover {
  transform: scale(1.05);
}

/* ------------------------------------------------ */

.aboutus-details {
  width: 45%;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aboutus-details div h3 {
  width: fit-content;
  font-size: 2.2rem;
  color: var(--primaryColor);
  position: relative;
}
.aboutus-details div h3::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: var(--helperColor);
  margin-top: 8px;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.aboutus-details div h3:hover::after {
  width: 100%;
}

.aboutus-details div p {
  font-size: 1.2rem;
  line-height: 2rem;
  color: var(--middleColor);
  text-align: justify;
}
/* الحالة الأولية (مخفي) */
.aboutus h1,
.aboutus-image,
.aboutus-details {
  opacity: 0;
  transform: translateY(40px);
}

/* حركة العنوان */
.aboutus h1.show {
  animation: fadeDown 1s ease forwards;
}

/* حركة الصورة */
.aboutus-image.show {
  animation: zoomIn 1s ease forwards;
}

/* حركة النصوص */
.aboutus-details.show {
  animation: slideRight 1s ease forwards;
  animation-delay: 0.3s;
}

/* Keyframes */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}




/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

@media (max-width: 760px) {
  .aboutus {
    gap: 60px;
    padding: 4% 2%;
  }

  .aboutus h1 {
    font-size: 1.8rem;
  }

  .aboutus-container {
    flex-direction: column;
    gap: 50px;
  }

  .aboutus-image {
    width: 100%;
    border-radius: 30px;
  }

  .aboutus-details {
    width: 100%;
    text-align: center;
    gap: 20px;
  }

  .aboutus-details div h3 {
    margin: auto;
    font-size: 1.6rem;
  }

  .aboutus-details div p {
    font-size: 1.1rem;
    line-height: 1.8rem;
  }
}

@media screen and (min-width: 761px) and (max-width: 992px) {
  .aboutus {
    gap: 60px;
    padding: 4% 2%;
  }

  .aboutus h1 {
    font-size: 2rem;
  }

  .aboutus-container {
    flex-direction: column;
    gap: 50px;
  }

  .aboutus-image {
    width: 100%;
    border-radius: 40px;
  }

  .aboutus-details {
    width: 100%;
    text-align: center;
    gap: 20px;
  }

  .aboutus-details div h3 {
    margin: auto;
    font-size: 1.8rem;
  }

  .aboutus-details div p {
    font-size: 1.2rem;
    line-height: 2rem;
  }
}
