#formaction {
  position: relative;
  text-align: center;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.2), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255, 102, 178, 0.25), transparent 50%),
              linear-gradient(135deg, #0a0a0a, #1a0016);
  animation: gradientFlow 12s ease-in-out infinite alternate;
}

#formaction::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.12), transparent 70%);
  mix-blend-mode: screen;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite alternate;
}


@keyframes gradientFlow {
  0% {
    background: radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.3), transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(255, 102, 178, 0.25), transparent 50%),
                linear-gradient(135deg, #0a0a0a, #1a0016);
  }
  50% {
    background: radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.4), transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(255, 102, 178, 0.25), transparent 55%),
                linear-gradient(135deg, #0c0015, #1a001f);
  }
  100% {
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.3), transparent 40%),
                radial-gradient(circle at 90% 60%, rgba(255, 102, 178, 0.3), transparent 60%),
                linear-gradient(135deg, #0a0a0a, #1a0016);
  }
}

@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.filter-buttons button {
  padding: 8px 18px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  background: #ff007f3d;
  color: #fff;
  transition: all 0.3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: #ff007f;
}

.section-title {
  color: #d30069;
  margin: 10px 0 10px 0;
  font-size: 1.8rem;
  text-align: center;
}

.formation-container {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.formation-container::-webkit-scrollbar {
  height: 8px;
}

.formation-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.formation-container::-webkit-scrollbar-thumb {
  background: #ff007f;
  border-radius: 4px;
  transition: background 0.3s;
}

.formation-container::-webkit-scrollbar-thumb:hover {
  background: #ff66b2;
}

.formation-container {
  scrollbar-width: thin;
  scrollbar-color: #ff007f rgba(255,255,255,0.3);
}

.formation-academic {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.formation-card {
  background: #fff;
  padding: 15px;
  margin-top: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  flex-shrink: 0;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255,0,127,0.3);
}

.formation-card h3 {
  font-size: 1rem;
  color: #ff007f;
  margin-bottom: 6px;
}

.institution-year {
  font-size: 0.75rem;
  color: #555555c7;
  margin-top: 0;
  margin-bottom: 12px;
}

.formation-card p {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.3;
}

.certification-card {
  background: #fff;
  min-width: 180px;
  max-width: 220px;
  padding: 15px;
  margin-top: 40px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  flex-shrink: 0;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255,0,127,0.3);
}

.certification-card h3 {
  font-size: 1rem;
  color: #ff007f;
  margin-bottom: 6px;
}

.institution-year {
  font-size: 0.75rem;
  color: #555555c7;
  margin-top: 0;
  margin-bottom: 12px;
}

.certification-card p {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.3;
}

@media (max-width:768px) {
  .formation-container {
    gap: 10px;
    padding: 15px 0;
  }

  .formation-card {
    min-width: 85vw;
    max-width: 90vw;
    padding: 12px;
  }

  .formation-card h3 { font-size: 0.95rem; }
  .institution-year { font-size: 0.7rem; }
  .formation-card p { font-size: 0.75rem; }
}
