/* Modal Styles */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(180, 78, 78, 0.2);
  z-index: 999;
}

.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-open {
  overflow: hidden;
}

.modal-open .modal-backdrop {
  display: block;
  opacity: 1;
}

.about-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 800px; /* Increased from 500px to 600px */
  height: 100%;
  background-color: #181615;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  transition: right 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother transition with easing */
  z-index: 1000;
  padding: 30px;
}


.about-modal.open {
  right: 0;
  opacity: 1;
}




.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  transition: transform 2s ease;
}

.close-modal:hover {
  color: #4b95d1; /* Adds hover effect to close button */
}

/* Profile Section in Modal */
.profile-section {
  padding-bottom: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex-grow: 1;
}

.profile-name {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 5px 0;
  color: #69A9FF;
}

.profile-title {
  font-size: 15px;
  color: #f3f1eb;
  margin: 0;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.6;
}

.profile-bio p {
  margin-bottom: 15px;
}

.section-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

/* Experience Section in Modal */
.experience-section {
  padding-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 25px 0;
  color: #69A9FF;

}

.project-title {
  margin-top: 50px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
}

.experience-item {
  display: flex;
  margin-bottom: 25px;
}

.experience-date {
  width: 180px;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  display: flex;         /* align text with details block */
  align-items: flex-start; /* ensure it sits flush at the top */
  line-height: 1.2;      /* keep consistent rhythm */

}

.experience-details {
  flex-grow: 1;
}

.experience-role {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 3px 0;
}

.experience-location {
  font-size: 14px;
  color: #f3f1eb;
  margin: 0 0 8px 0;
}

.experience-description {
  font-size: 14px;
  margin: 0 0 8px 0;
}

/* Skills Section in Modal */
.skills-section {
  margin-bottom: 30px;
  
}

.skills-category {
  font-size: 15px;
  font-weight: 500;
  margin: 10px 0 5px 0;
}

.skills-list {
  font-size: 14px;
  margin: 0 0 15px 0;
}

/* Education Section in Modal */
.education-section {
  padding-bottom: 20px;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .about-modal {
    max-width: 90%; /* More responsive on tablets */
  }
}

@media (max-width: 576px) {
  .about-modal {
    width: 100%;
    max-width: none;
    padding: 25px 20px;
  }
  
  .experience-item {
    flex-direction: column;
  }
  
  .experience-date {
    width: 100%;
    margin-bottom: 5px;
  }
}