/* Timeline styles */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 153, 0, 0.2), rgba(255, 153, 0, 0.6));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 1rem 3rem;
  position: relative;
  background-color: transparent;
  width: 50%;
  margin: 2rem 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #ff9900; /* AWS Orange */
  border: 3px solid rgba(255, 153, 0, 0.5);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(255, 153, 0, 0.3);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: #ff9900; /* AWS Orange */
}

.timeline-content h2 {
  font-size: 1.5rem;
  color: #ff9900; /* AWS Orange */
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.timeline-content h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #d5dbdb; /* Light gray for better contrast */
  margin-bottom: 1rem;
}

/* Existing styles remain the same */
.timeline-content li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: max-height 0.3s ease-out;
}

/* Hide elements with the hidden class */
.timeline-content li.hidden {
  display: none;
}

/* Style for the "show more" button */
.more-info {
  color: #ff9900; /* AWS Orange */
  cursor: pointer;
  margin-top: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.more-info:hover {
  color: #ec7211; /* Darker AWS Orange */
  text-decoration: underline;
}

/* Limit the initial height of timeline content */
.timeline-content {
  max-height: none;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Add some spacing between list items */
.timeline-content ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

/* Style for the achievements list */
.timeline-content li {
  color: #d5dbdb; /* Light gray for better contrast */
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .timeline-content {
      padding: 1rem;
  }
  
  .timeline-content li {
      font-size: 0.9rem;
  }
}

.more-info {
  color: #ff9900; /* AWS Orange */
  cursor: pointer;
  margin-top: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.more-info:hover {
  color: #ec7211; /* Darker AWS Orange */
  text-decoration: underline;
}

.timeline-content li.hidden {
  display: none;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  color: #d5dbdb; /* Light gray for better contrast */
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Updated Education cards to make them more rectangular and compact */
.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 1200px;
}

.education-item {
  background: rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 80px; /* Fixed height to make them more rectangular */
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.education-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.2);
  border-color: #ff9900; /* AWS Orange */
}

.education-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #ff9900; /* AWS Orange */
  flex-shrink: 0;
}

.education-details {
  flex-grow: 1;
  overflow: hidden;
}

.education-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.education-institution {
  font-size: 0.8rem;
  color: #d5dbdb; /* Light gray for better contrast */
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.education-date {
  font-size: 0.75rem;
  color: #ff9900; /* AWS Orange */
  font-weight: 500;
}

/* Highlight animation */
.education-item.highlight {
  animation: glow 2s infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.2);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .education-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .education-item {
    padding: 0.75rem;
    height: 70px;
  }
  
  .education-icon {
    font-size: 1.25rem;
  }
}