/* start banner */
.about-banner {
  margin-top: 6rem;
  background-color: rgba(109, 117, 143, 1);
}
.about-banner h1 {
  font-weight: 800;
  font-size: 2.5rem;
}
@media (max-width: 768px) {
  .about-banner h1 {
    font-size: 1.9rem;
  }
}
@media (max-width: 600px) {
  .about-banner h1 {
    font-size: 1.1rem;
  }
}
/* start info */
.info-img {
  height: 500px;
  background-color: red;
}
.info-img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.info-content .title {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(109, 117, 143, 1);
}

.info-content .desc {
  font-size: 18px;
  font-weight: 500;
  color: rgba(109, 117, 143, 1);
  line-height: 1.5rem;
}
@media (max-width: 400px) {
  .info-content .desc {
    font-size: 1rem;
  }
}
/* start education */

.education .line img {
  object-fit: cover;
}
@media (min-width: 991px) {
  .education .content {
    overflow: auto;
    max-height: 600px;
  }
}
.education .content span {
  font-size: 14px;
  font-weight: 700;
}
.education .content .title {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(109, 117, 143, 1);
}
.education .content .desc {
  font-size: 18px;
  font-weight: 500;
  color: rgba(109, 117, 143, 1);
  line-height: 1.5rem;
}
/* timeline styles  */

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 30px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #444a61;
  transform: translateY(-50%);
  z-index: 1;
  width: 100%;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
  z-index: 2;
  flex: 1;
  bottom: 1rem;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-item.active .year {
  font-size: 20px;
  font-weight: 700;
  color: #444a61;
  transform: translateY(-2px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.active .marker {
  width: 16px;
  height: 16px;
  background: #444a61;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
  transform: scale(1.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  bottom: 6px;
}

.year {
  font-size: 15px;
  font-weight: 300;
  color: #2d3748;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  left: 7px;
}

.marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #444a61;
  box-shadow: 0 0 0 3px #444a61;
  margin-bottom: 6px;
  transition: all 0.4s cubic-bezier(63, 66, 70, 1);
  cursor: pointer;
  position: relative;
  bottom: -4px;
}

/* Hover effects for better interaction */
.timeline-item:hover .marker {
  transform: scale(1.1);
  background: #444a61;
  box-shadow: 0 0 0 3px rgba(63, 66, 70, 0.3);
}

.timeline-item:hover .year {
  color: #444a61;
  font-weight: 500;
}

@media (max-width: 768px) {
  .timeline-item.active .year {
    bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    left: 5px;
  }

  .timeline-item.active .marker {
    width: 14px;
    height: 14px;
    bottom: 4px;
    position: relative;
    left: 2px;
    transform: scale(1.2);
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    top: 12px;
    bottom: 0;
    right: 22px;
    left: auto;
    width: 3px;
    height: 76%;
    transform: none;
  }

  .timeline-item {
    flex-direction: row;
    margin-bottom: 30px;
    width: 100%;
    align-items: center;
    bottom: 0;
  }

  .year {
    margin-bottom: 0;
    margin-right: 20px;
    min-width: 80px;
    font-size: 15px;
    font-weight: normal;
    position: relative;
    bottom: 5px;
    left: 0;
  }

  .marker {
    margin-bottom: 0;
    margin-right: 20px;
    order: -1;
    position: relative;
    bottom: 0;
  }

  /* Mobile hover effects */
  .timeline-item:hover .marker {
    transform: scale(1.05);
  }
}

/* Smooth transition for content changes */
.education .img-container img {
  transition: opacity 0.3s ease;
}

.education .content span,
.education .content .title,
.education .content .desc {
  transition: color 0.3s ease;
}
