/* Modern Timeline Styles */
.timeline-container {
  padding: 15px 0;
}

.timeline {
  list-style: none;
  padding: 15px 0;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(to bottom, #306d9f 0%, #5bc0de 50%, #306d9f 100%);
  border-radius: 2px;
}

/* Compact grid layout for desktop */
@media (min-width: 769px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 8px 0;
    padding: 15px 10px;
  }
  
  .timeline::before {
    grid-column: 2;
    grid-row: 1 / -1;
    position: relative;
    left: auto;
    margin: 0 auto;
  }
  
  .timeline-item {
    display: contents;
  }
  
  .timeline-item:not(.timeline-inverted) .timeline-panel {
    grid-column: 1;
    justify-self: end;
    text-align: right;
  }
  
  .timeline-item:not(.timeline-inverted) .timeline-badge {
    grid-column: 2;
    position: relative;
    left: auto;
    margin: 0 auto;
  }
  
  .timeline-item:not(.timeline-inverted)::after {
    content: '';
    grid-column: 3;
  }
  
  .timeline-item.timeline-inverted .timeline-panel {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }
  
  .timeline-item.timeline-inverted .timeline-badge {
    grid-column: 2;
    position: relative;
    left: auto;
    margin: 0 auto;
  }
  
  .timeline-item.timeline-inverted::before {
    content: '';
    grid-column: 1;
  }
  
  /* Arrow adjustments for grid */
  .timeline-item:not(.timeline-inverted) .timeline-panel::before {
    right: -15px;
    left: auto;
    border-left-color: rgba(255, 255, 255, 0.95);
    border-right-color: transparent;
  }
  
  .timeline-item.timeline-inverted .timeline-panel::before {
    left: -15px;
    right: auto;
    border-right-color: rgba(255, 255, 255, 0.95);
    border-left-color: transparent;
  }
  
  /* Right align text for left panels */
  .timeline-item:not(.timeline-inverted) .timeline-heading {
    text-align: right;
  }
  
  .timeline-item:not(.timeline-inverted) .timeline-body {
    text-align: right;
  }
  
  /* Start item spans full width */
  .timeline-item.timeline-start {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 60px 1fr;
  }
  
  .timeline-item.timeline-start .timeline-badge {
    grid-column: 2;
  }
  
  .timeline-item.timeline-start .timeline-panel {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    width: auto;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 15px;
}

.timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

/* Timeline badge (circle on the line) */
.timeline-badge {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: #306d9f;
  color: #fff;
  text-align: center;
  line-height: 44px;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: start;
  margin-top: 10px;
}

.timeline-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timeline-badge span {
  font-size: 0.7rem;
  line-height: 44px;
}

.timeline-badge i {
  font-size: 1.1rem;
  line-height: 44px;
}

.timeline-badge.current {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  animation: pulse 2s infinite;
}

.timeline-badge.phd {
  background: linear-gradient(135deg, #a80039 0%, #dc3545 100%);
}

.timeline-badge.internship {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.timeline-badge.start {
  background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
}

.timeline-badge.science {
  background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%);
}

.timeline-badge.photo {
  background: linear-gradient(135deg, #e83e8c 0%, #fd79a8 100%);
}

.timeline-badge.bank {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Timeline panel (content box) */
.timeline-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Arrow pointing to timeline */
.timeline-panel::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -15px;
  border: 8px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.95);
}

/* Left side items */
.timeline-item:not(.timeline-inverted) .timeline-panel {
  float: left;
}

/* Right side items */
.timeline-item.timeline-inverted .timeline-panel {
  float: right;
}

.timeline-item.timeline-inverted .timeline-panel::before {
  right: auto;
  left: -15px;
  border-left-color: transparent;
  border-right-color: rgba(255, 255, 255, 0.95);
}

/* Timeline heading */
.timeline-heading {
  margin-bottom: 6px;
}

.timeline-date {
  display: inline-block;
  padding: 3px 10px;
  background: #306d9f;
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.timeline-title {
  margin: 5px 0 3px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.timeline-title a {
  color: #306d9f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-title a:hover {
  color: #1e4a6e;
  text-decoration: underline;
}

.timeline-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.timeline-location {
  font-size: 0.8rem;
  color: #777;
  margin-left: 8px;
}

.timeline-location i {
  margin-right: 3px;
}

/* Timeline body */
.timeline-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.timeline-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #555;
}

/* Start marker */
.timeline-item.timeline-start .timeline-panel {
  background: transparent;
  box-shadow: none;
  text-align: center;
  width: 100%;
  float: none;
  margin: 0 auto;
}

.timeline-item.timeline-start .timeline-panel::before {
  display: none;
}

.timeline-item.timeline-start .timeline-title {
  color: #fff;
  font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-badge {
    left: 30px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .timeline-badge span {
    font-size: 0.65rem;
    line-height: 40px;
  }

  .timeline-badge i {
    font-size: 1rem;
    line-height: 40px;
  }

  .timeline-panel {
    width: calc(100% - 70px);
    float: right !important;
    margin-left: 60px;
  }

  .timeline-panel::before {
    right: auto !important;
    left: -15px !important;
    border-left-color: transparent !important;
    border-right-color: rgba(255, 255, 255, 0.95) !important;
  }

  .timeline-item.timeline-start .timeline-panel {
    width: calc(100% - 70px);
    margin-left: 60px;
    text-align: left;
  }
}

/* Summary Section Styles */
.summary-content {
  padding: 20px 0;
}

.summary-content .lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.summary-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.summary-stat {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.summary-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.summary-icon {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}

.summary-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.summary-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-content .badge {
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Section title styling for summary */
#summary h2 {
  font-weight: 600;
  letter-spacing: 1px;
}

#summary hr {
  max-width: 100px;
  margin: 0 auto 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
}

/* Certifications Section Styles */
.certifications-container {
  padding: 10px 0;
}

.certifications-container h4 {
  margin-top: 20px;
  font-weight: 600;
}

.certifications-container h4 i {
  margin-right: 8px;
}

.certification-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cert-category {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px 20px;
}

.cert-level {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-level-pro {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
}

.cert-level-specialty {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  color: #fff;
}

.cert-level-associate {
  background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
  color: #fff;
}

.cert-level-foundational {
  background: linear-gradient(135deg, #4b7bec 0%, #3867d6 100%);
  color: #fff;
}

/* Grid layout for certification items */
.cert-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

@media (min-width: 992px) {
  .cert-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .cert-items-grid {
    grid-template-columns: 1fr;
  }
}

.cert-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cert-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cert-date {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.cert-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.cert-desc {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  padding-left: 5px;
}

.certifications-container .btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.certifications-container .btn-outline-light:hover {
  background: #fff;
  color: #306d9f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.certifications-container .btn-outline-light i {
  margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cert-category {
    padding: 12px 15px;
  }
}

/* Collapsible certification styles */
.cert-toggle {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cert-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

.cert-toggle i {
  font-size: 0.75rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.cert-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.cert-desc-collapse {
  padding-top: 10px;
}

.cert-verify-link {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.cert-verify-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
}

.cert-verify-link i {
  margin-right: 5px;
}


/* Experience List Styles (replaces timeline) */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 0;
}

.experience-item {
  display: flex;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.experience-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #306d9f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.experience-icon span {
  font-size: 0.75rem;
}

.experience-icon i {
  font-size: 1.2rem;
}

/* Icon color variants */
.experience-item.current .experience-icon {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.experience-item.phd .experience-icon {
  background: linear-gradient(135deg, #a80039 0%, #dc3545 100%);
}

.experience-item.internship .experience-icon {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.experience-item.science .experience-icon {
  background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%);
}

.experience-item.photo .experience-icon {
  background: linear-gradient(135deg, #e83e8c 0%, #fd79a8 100%);
}

.experience-item.bank .experience-icon {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

.experience-content {
  flex: 1;
  min-width: 0;
}

.experience-header {
  margin-bottom: 8px;
}

.experience-date {
  display: inline-block;
  padding: 3px 12px;
  background: #306d9f;
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.experience-title {
  margin: 5px 0 3px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.experience-title a {
  color: #306d9f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.experience-title a:hover {
  color: #1e4a6e;
  text-decoration: underline;
}

.experience-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

.experience-location {
  font-size: 0.85rem;
  color: #777;
  margin-left: 8px;
}

.experience-location i {
  margin-right: 3px;
}

.experience-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.experience-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.experience-body ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.experience-body li {
  margin-bottom: 5px;
}

.experience-body strong {
  color: #333;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .experience-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  
  .experience-icon {
    width: 44px;
    height: 44px;
  }
}
