.profil-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  min-width: 320px;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);

  opacity: 0;
  animation: popInCentered 0.8s ease-out 0.2s both;
}

.profil-container::-webkit-scrollbar {
  display: none;
}

.profil-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.profil-title {
  font-family: var(--display-font);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s both;
}

.profil-subtitle-main {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.formation-timeline {
  text-align: left;
  margin-bottom: 2rem;
}

.timeline-section {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.4s both;
}

.section-title {
  font-family: var(--display-font);
  font-size: 1.5rem;
  color: #4ecdc4;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
  text-align: center;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  text-align: center;
  margin-bottom: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out both;
}

.timeline-item:nth-child(2) {
  animation-delay: 1.6s;
}
.timeline-item:nth-child(3) {
  animation-delay: 1.8s;
}
.timeline-item:nth-child(4) {
  animation-delay: 2s;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.year {
  background: linear-gradient(135deg, #4ecdc4, #45b7d1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  flex: 1;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
}

.formation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.formation-title {
  font-family: var(--display-font);
  font-size: 1.3rem;
  color: #4ecdc4;
  margin-bottom: 0.5rem;
}

.formation-status {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.formation-status:not(.completed):not(.experience) {
  background: linear-gradient(135deg, #feca57, #ff9ff3);
  color: white;
}

.formation-status.completed {
  background: linear-gradient(135deg, #96ceb4, #4ecdc4);
  color: white;
}

.formation-status.experience {
  background: linear-gradient(135deg, #54a0ff, #45b7d1);
  color: white;
}

.formation-school {
  font-weight: 600;
  color: #feca57;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.formation-degree {
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.formation-description {
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.formation-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.highlight {
  color: #feca57;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(254, 202, 87, 0.3);
}

.promo-section {
  margin: 3rem 0 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2.2s both;
}

.promo-photo {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

.promo-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.promo-image:hover {
  transform: scale(1.02);
}

.promo-caption {
  font-style: italic;
  opacity: 0.8;
  color: #4ecdc4;
}

.navigation-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 2.4s both;
  margin-top: 2rem;
}

.navigation-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
  background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
}

@keyframes popInCentered {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .profil-container {
    padding: 1.5rem;
    width: 95%;
  }

  .profil-title {
    font-size: 2rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-marker {
    align-items: flex-start;
    min-width: auto;
  }

  .formation-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .formation-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .profil-container {
    padding: 1rem;
  }

  .profil-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .intro-text {
    font-size: 0.9rem;
  }

  .timeline-card {
    padding: 1rem;
  }
}
