.about {
  background-color: var(--subColor);
}
.about .container {
  padding: 0 20px;

  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 150px;
}
.about .container .head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 70px;
  padding-top: 70px;
  animation: updown 0.8s ease-out;
}
.about .container .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  padding: 0 20px;
}
.about .container .content .values,
.about .container .content .vision {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 15px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  height: 400px;
}

.about .container .content .values {
  background-image: url(../assets/value.png);
}
.about .container .content .vision {
  background-image: url(../assets/vision.jpg);
}
.about .container .content .values::after,
.about .container .content .vision::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); 
  border-radius: 15px;
  z-index: 1;
}


.about .container .content div h3 {
  color: var(--subColor);
  font-size: 30px;
  z-index: 2;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
  font-weight: bolder;
}
.about .container .content div h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background:  var(--subColor);
  border-radius: 2px;
  transition: var(--transition-time);
}
.about .container .content .vision:hover h3::after,
.about .container .content .values:hover h3::after {
  width: 140px;
}
.about .container .content div  p {
  color: var(--subColor);
  font-size: 18px;
  line-height: 1.8;
  z-index: 2;
  text-align: justify;
  z-index: 3000;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.about .container .content .vision {
  animation: downup 0.8s ease-out 0.2s both;
}
.about .container .content .values {
  animation: downup 0.8s ease-out 0.4s both;
}
@media (max-width: 768px) {
  .about .container {
    padding: 0px;
  }
  .about .container .content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
    place-items: center;
  }
  .about .container .content .values,
  .about .container .content .vision {
    width: 95%;
  }
  .about .container .content div h3 {
    margin-bottom: 15px;
  }
}
@media (max-width: 480px) {
  .about {
    padding: 30px 0;
  }
  .about .container .content {
    gap: 20px;
    padding: 0 5px;
    width: 100%;
  }
  .about .container .content .values,
  .about .container .content .vision {
    padding: 25px 15px;
    height: 500px;
  }
  .about .container .content div h3::after {
    width: 40px;
    height: 2px;
  }
}


/* timeline section */

.history {
  background-color: var(--mainColor);
  padding: 50px 0;
  overflow-x: hidden;
}

.history .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.history .container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--subColor);
  top: 100px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.history .container h2 {
  color: var(--subColor);
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bolder;
}

.history .container .timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.history .container .timeline .item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 800px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history .container .timeline .item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.history .container .item::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background-color: var(--subColor);
  border-radius: 50%;
}
.history .container .item:nth-child(odd)::before {
  right:-100px;
}

.history .container .item:nth-child(odd) {
  left: -250px;
}

.history .container .item h3 {
  color: var(--subColor);
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: bold;
}

.history .container .item p {
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 930px) {
  .history .container .timeline {
    margin-right: 30px;
    position: relative;
  }
  .history .container .timeline .item  {
    left: 0px;
    right: 0px;
  }

  .history .container .item:nth-child(even)::before,
  .history .container .item:nth-child(odd)::before{
  right: -40px;
  }

  .history .container::after {
    right:30px;
  }

  .history .container::after  {
    opacity: 0;
  }
    .history .container .timeline::after {
      content: '';
      position: absolute;
      width: 4px;
      background-color: var(--subColor);
      top: 10px;
      bottom: 10px;
      left: 50%;
      transform: translateX(4700%);
      border-radius: 2px;
    }
}

@media (min-width: 930px) {
  .history .container .item:nth-child(even) {
    right:-250px;
  }
  .history .container .item:nth-child(even)::before {
  left: -100px;
}
}

/* our team section */

.team {
  background-color: var(--subColor);
  padding: 50px 0;
}

.team .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.team .container h2 {
  color: var(--mainColor);
  font-size: 50px;
  margin-bottom: 80px;
  text-align: center;
  font-weight: bolder;
}

.team .container .first_row,
.team .container .second_row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}
.team .container .first_row .person {
  margin-bottom: 20px;
}
.team .container .first_row .person,
.team .container .second_row .person {
  display: flex;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 250px;
  width: 400px;
}

.team .container .first_row .person .img,
.team .container .second_row .person .img {
  border-radius: 50%;
  overflow: hidden;
  width: 150px;
  position: absolute;
  top: -50px;
  left: -60px;
  transition: all 0.3s ease;
}

.team .container .first_row .person img,
.team .container .second_row .person img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 10px solid var(--subColor);
  border-radius: 50%;
}

.team .container .first_row .person .name,
.team .container .second_row .person .name {
  text-align: right;
}
.team .container .first_row .person .name p:first-of-type,
.team .container .second_row .person .name p:first-of-type{
  position: relative;
}
.team .container .first_row .person .name p:first-of-type::after,
.team .container .second_row .person .name p:first-of-type::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0px;
  width: 60px;
  height: 3px;
  background-color: var(--subColor);
  border-radius: 2px;
  transition: var(--transition-time);
} 

.team .container .first_row .person .name .detailes,
.team .container .second_row .person .name .detailes{
  padding-top: 25px;
}

.team .container .first_row .person:hover .img,
.team .container .second_row .person:hover .img {
  transform: translateY(-10px);
  transition: all 0.3s ease;
  }

  .team .container .first_row .person:hover .name p:first-of-type::after,
  .team .container .second_row .person:hover .name p:first-of-type::after {
  width: 200px;
}

@media screen and (max-width: 980px) {
  .team .container .first_row .person .img,
  .team .container .second_row .person .img {
    top: -50px;
    left: -20px;
  }
}
@media screen and (max-width: 480px) {
.team .container .first_row .person,
.team .container .second_row .person {
  width: 320px;
}
}

.partners {
  background-color: var(--mainColor);
  padding: 50px 0;
}
.partners .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

.partners .container h2 {
  color: var(--subColor);
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bolder;
}
.partners .container .partner_group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.partners .container .partner_group .partner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  margin: 10px;
  transition: transform 0.3s ease;
  width: 180px;
  height: 180px;
  position: relative;
  overflow: hidden;
}
.partners .container .partner_group .partner  img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 20px;
  transition: transform 0.3s ease;
  filter: grayscale(40%);
}

.partners .container .partner_group .partner:hover  img {
  transform: scale(1.08);
  filter: grayscale(0%);
}
.partners .container .partner_group .partner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: all 0.3s ease;
}