/* Fix background scrolling */
body {
  background-attachment: fixed !important;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 40px 0;
  margin: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3A7CA5, #1F4E5F);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s ease-out;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3A7CA5, #1F4E5F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(58, 124, 165, 0.3);
  border: 4px solid white;
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(58, 124, 165, 0.2);
}

.timeline-period {
  display: inline-block;
  background: linear-gradient(135deg, #3A7CA5, #1F4E5F);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.timeline-content h3 {
  color: #1F4E5F;
  font-size: 1.6rem;
  margin: 10px 0;
}

.timeline-location {
  color: #666;
  font-size: 0.95rem;
  margin: 5px 0 15px;
}

.education-details {
  background: rgba(58, 124, 165, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.detail-row {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.detail-row strong {
  color: #1F4E5F;
  min-width: 120px;
}

.detail-row span {
  color: #2A2A2A;
  flex: 1;
}

.description-box {
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.8), rgba(225, 235, 245, 0.8));
  border-left: 4px solid #3A7CA5;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.description-box p {
  margin: 0;
  line-height: 1.6;
  color: #2A2A2A;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.skill-tag {
  background: linear-gradient(135deg, #3A7CA5, #1F4E5F);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.education-summary {
  background: linear-gradient(135deg, rgba(58, 124, 165, 0.1), rgba(31, 78, 95, 0.05));
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #3A7CA5;
  margin: 40px 0;
  margin-bottom: 10px;
}

.education-summary h3 {
  margin-top: 0;
}

.achievements-section {
  margin: 40px 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.achievement-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(58, 124, 165, 0.2);
  border-color: #3A7CA5;
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.achievement-card h4 {
  color: #1F4E5F;
  margin: 10px 0;
  font-size: 1.1rem;
}

.achievement-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 65px;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .detail-row {
    flex-direction: column;
    gap: 5px;
  }

  .detail-row strong {
    min-width: auto;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

