/* Bio Modal Styles */

.bio-modal {
  background: rgba(245, 245, 220, 0.98);
}

.bio-modal .overlay-background {
  background: rgba(245, 245, 220, 0.95);
}

#bio-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.bio-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bio-modal.active .bio-modal-content {
  transform: translateX(0);
}

.bio-container {
  max-width: 800px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #3b3b77;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(59, 59, 119, 0.3);
  backdrop-filter: blur(10px);
  max-height: 90vh;
  overflow-y: auto;
}

.bio-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(59, 59, 119, 0.2);
}

.bio-photo {
  width: 120px;
  height: 120px;
  margin-right: 2rem;
  flex-shrink: 0;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  border: 2px solid #3b3b77;
  background: #f5f5dc;
}

.photo-placeholder {
  width: 120px;
  height: 120px;
  border: 3px solid #3b3b77;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5dc, #e8e8d0);
  transition: transform 0.3s ease;
}

.photo-placeholder:hover {
  transform: scale(1.05);
}

.photo-icon {
  font-size: 48px;
  opacity: 0.6;
}

.bio-intro {
  flex: 1;
}

.bio-container .overlay-title {
  font-size: 36px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #3b3b77;
  text-stroke: 2px #3b3b77;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bio-tagline {
  font-size: 18px;
  color: #3b3b77;
  margin: 0 0 15px 0;
  font-weight: 500;
  opacity: 0.9;
}

/* Contact row (email + social links) */
.bio-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3b3b77;
  font-size: 14px;
  opacity: 0.85;
  flex-wrap: wrap;
}

.contact-icon { font-size: 14px; }

.contact-sep { color: #3b3b77; opacity: 0.5; margin: 0 2px; }

/* Contact links: no blue, no underline */
.bio-contact a { color: #3b3b77; text-decoration: none; }
.bio-contact a:hover { text-decoration: none; opacity: 0.9; }

.social-icon { display: inline-block; vertical-align: middle; }

/* Tiny monochrome LinkedIn badge */
.li-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  font-weight: 700;
  color: #3b3b77;
  border: 1px solid rgba(59, 59, 119, 0.5);
  border-radius: 3px;
  text-transform: lowercase;
}

.bio-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b3b77;
  font-size: 16px;
  opacity: 0.8;
}

.location-icon {
  font-size: 14px;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.bio-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: #3b3b77;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(59, 59, 119, 0.2);
}

.bio-section p {
  color: #3b3b77;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
  opacity: 0.9;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.timeline-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: #3b3b77;
  background: rgba(59, 59, 119, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #3b3b77;
  margin: 0 0 5px 0;
}

/* Use h3 for item titles inside timeline but keep the smaller size */
.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #3b3b77;
  margin: 0 0 5px 0;
}

.timeline-company {
  font-size: 14px;
  color: #3b3b77;
  font-weight: 500;
  opacity: 0.7;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-description {
  color: #3b3b77;
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
}

/* Publications and other long lists inside timeline-description should appear smaller */
.bio-section .timeline-description {
  font-size: 14px;
}

.bio-section .timeline-description ul {
  padding-left: 18px;
  margin: 0;
}

.bio-section .timeline-description li {
  margin-bottom: 6px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.skill-category h4 {
  font-size: 18px;
  font-weight: 600;
  color: #3b3b77;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(59, 59, 119, 0.2);
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  color: #3b3b77;
  padding: 8px 0;
  border-bottom: 1px solid rgba(59, 59, 119, 0.1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.skill-category li:hover {
  opacity: 1;
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bio-modal-content {
    padding: 20px;
  }
  
  .bio-container {
    padding: 30px 20px;
    margin: 20px 0;
  }
  
  .bio-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .bio-container .overlay-title {
    font-size: 28px;
  }
  
  .bio-tagline {
    font-size: 16px;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 15px;
  }
  
  .timeline-year {
    align-self: flex-start;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .bio-container {
    padding: 20px 15px;
  }
  
  .bio-container .overlay-title {
    font-size: 24px;
    letter-spacing: 1px;
  }
  
  .photo-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .photo-icon {
    font-size: 36px;
  }
  
  .bio-section h3 {
    font-size: 20px;
  }
  
  .bio-content {
    gap: 25px;
  }
}
