/* --- ADVANCED TITLE HEADER --- */
@keyframes scaleInHeader {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes textFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header-advanced {
  position: relative;
  margin-top: 40px;
  margin-bottom: 50px;
  padding: 70px 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #42a5f5 100%);
  overflow: hidden;
  text-align: center;
  color: #fff;
  box-shadow: 0 25px 50px rgba(13, 71, 161, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: scaleInHeader 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
}

.header-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Let mousemove trigger on the section */
}

.header-bg-animated .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  transition: all 0.5s ease;
  animation: floatBg 10s infinite alternate ease-in-out;
  opacity: 0.4;
}

.header-bg-animated .blob-1 {
  width: 400px;
  height: 400px;
  background: #6dd5fa;
  top: -10%;
  right: -5%;
}

.header-bg-animated .blob-2 {
  width: 300px;
  height: 300px;
  background: #2979ff;
  bottom: -10%;
  left: -5%;
  animation-delay: -5s;
}

@keyframes floatBg {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 40px) scale(1.1);
  }
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e0f2fe;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

  opacity: 0;
  animation: textFadeUp 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.3s forwards;
}

.badge-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(0, 230, 118, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.main-page-title {
  font-size: 3.4rem;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  line-height: 1.2;

  opacity: 0;
  animation: textFadeUp 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.5s forwards;
}

.page-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 650px;
  margin: 0;
  line-height: 1.7;

  opacity: 0;
  animation: textFadeUp 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.7s forwards;
}

@media (max-width: 768px) {
  .page-header-advanced {
    padding: 50px 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
  }

  .main-page-title {
    font-size: 2.3rem;
  }
}