/* ===========================================================
   SOUHARDA SIGNATURE BUTTON v5.0
   Ultra Glass • Double Glow • Breathing Aura • Pill Style
   =========================================================== */

.s5-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 20px;              /* Pill shape */
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;

  text-decoration: none;
  color:#345DBC;/* Souharda Blue Text */

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  position: relative;
  overflow: hidden;

  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Arrow movement */
.s5-btn .arrow {
  display: inline-block;
  transition: transform 0.45s ease;
  font-weight: 700;
}

.s5-btn:hover .arrow {
  transform: translateX(10px);
}

.s5-btn {
    margin-right: 0 !important;
}

/* ===========================================================
   1) MAIN ANIMATED TRICOLOR BORDER
   =========================================================== */
.s5-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;

  padding: 2px;
  background: linear-gradient(
    120deg,
    rgba(255, 140, 0, 0.35),
    rgba(255, 255, 0, 0.35),
    rgba(0, 200, 0, 0.35)
  );

  background-size: 320% 320%;
  animation: s5BorderFlow 4.8s ease-in-out infinite;

  /* Mask for border only */
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  mask: 
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Ultra-smooth silent gradient movement */
@keyframes s5BorderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===========================================================
   2) SECOND GLOW LAYER (moving inner glow)
   =========================================================== */
.s5-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 45px;

  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );

  opacity: 0.6;
  filter: blur(6px);

  animation: s5SoftGlow 6.5s ease-in-out infinite alternate;
}

@keyframes s5SoftGlow {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.75; }
  100% { opacity: 0.4; }
}

/* ===========================================================
   3) OUTER AURA (very soft breathing glow)
   =========================================================== */
.s5-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 18px rgba(5, 52, 121, 0.12),
    0 0 28px rgba(255, 255, 255, 0.10);
}
