/* Registration Progress Section Wrapper */
.registration-progress-section-wrapper {
  position: relative;
  width: 100%;
}

/* Registration Progress Section */
.registration-progress-section {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.progress-container {
  border-radius: 20px;
  padding: 2.5rem 2rem;
}

.progress-container h5 {
  font-size: 2rem;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.4);
  letter-spacing: 2px;
  color: #00bfff;
  font-weight: 700;
}

.current-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.count-number {
  text-shadow: 1px 1px 1px #2ef5ff;
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00bfff 0%, #1e90ff 50%, #00bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(0, 191, 255, 0.9));
  animation: glow-pulse 2s ease-in-out infinite;
  padding: 1rem 2.5rem;
  border: 3px solid rgba(0, 191, 255, 0.6);
  border-radius: 20px;
  box-shadow: 
    0 0 30px rgba(0, 191, 255, 0.4),
    0 0 60px rgba(0, 191, 255, 0.2),
    inset 0 0 30px rgba(0, 191, 255, 0.15);
  position: relative;
  backdrop-filter: blur(10px);
  background-image: 
    linear-gradient(135deg, #00bfff 0%, #1e90ff 50%, #00bfff 100%),
    linear-gradient(135deg, rgba(0, 30, 60, 0.6) 0%, rgba(0, 50, 100, 0.4) 100%);
  background-origin: border-box;
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
}

.count-number::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, 
    rgba(0, 191, 255, 0.3), 
    rgba(30, 144, 255, 0.5), 
    rgba(0, 212, 255, 0.3));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-glow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes border-glow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.count-label {
  font-size: 1.2rem;
  opacity: 0.95;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Progress Bar */
.progress-bar-wrapper {
  position: relative;
  margin-top: 3rem;
}

.progress-bar-track {
  width: 100%;
  height: 32px;
  background: rgba(0, 30, 60, 0.8);
  border-radius: 16px;
  overflow: visible;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 191, 255, 0.3);
  border: 2px solid rgba(0, 191, 255, 0.4);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    #00bfff 0%, 
    #1e90ff 25%, 
    #00d4ff 50%, 
    #1e90ff 75%, 
    #00bfff 100%);
  border-radius: 12px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 30px rgba(0, 191, 255, 0.8),
    0 0 60px rgba(0, 191, 255, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: visible;
  animation: progress-glow 2s ease-in-out infinite;
}

.progress-bar-fill::before {
  content: '';
  
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background-image: url('../images/icon/AB3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.8));
  animation: icon-gallop 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes icon-gallop {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-55%) ;
  }
  100% {
    transform: translateY(-50%) ;
  }
  /* 0% {
    transform: translateY(-50%) scale(1);
  }
  25% {
    transform: translateY(-70%) scale(1.05);
  }
  50% {
    transform: translateY(-50%) scale(0.95);
  }
  75% {
    transform: translateY(-70%) scale(1.05);
  }
  100% {
    transform: translateY(-50%) scale(0.95);
  } */
}

@keyframes progress-glow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(0, 191, 255, 0.8),
      0 0 60px rgba(0, 191, 255, 0.4),
      inset 0 2px 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(0, 191, 255, 1),
      0 0 80px rgba(0, 191, 255, 0.6),
      inset 0 2px 15px rgba(255, 255, 255, 0.5);
  }
}

/* .progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  animation: shimmer 3s infinite; 
} */

/* Milestone Markers */
.milestone-markers {
  position: relative;
  /* margin-top: 1.5rem; */
  height: 180px;
}

.milestone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  filter: grayscale(1);
}

.milestone.reached {
  opacity: 1;
  filter: grayscale(0);
  animation: milestone-reached 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.milestone.active {
  opacity: 0.6;
  filter: grayscale(1);
}

.milestone-icon {
  width: 120px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: rgba(100, 100, 100, 0.3);
  border: 3px solid rgba(150, 150, 150, 0.4);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.milestone.reached .milestone-icon {
  background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
  border-color: #00d4ff;
  border-width: 3px;
  box-shadow: 
    0 0 35px rgba(0, 191, 255, 0.9),
    0 0 70px rgba(0, 191, 255, 0.5),
    inset 0 2px 15px rgba(255, 255, 255, 0.4);
}

.milestone.active .milestone-icon {
  background: rgba(100, 100, 100, 0.3);
  border-color: rgba(150, 150, 150, 0.4);
}

.milestone-icon img {
  width: 60px;
  height: 60px;
  filter: brightness(0.4) grayscale(1);
  transition: filter 0.4s ease;
  flex-shrink: 0;
}

.milestone-icon span {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: rgba(200, 200, 200, 0.6);
  transition: color 0.4s ease;
}

.milestone.reached .milestone-icon span {
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
}

/* Special Gold Style for Last Milestone (2M) */
.milestone[data-milestone="2000000"] .milestone-icon {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.4) 0%, rgba(184, 134, 11, 0.4) 100%);
  border-color: rgba(218, 165, 32, 0.6);
}

.milestone[data-milestone="2000000"].reached .milestone-icon {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #FFA500 100%);
  border-color: #FFD700;
  border-width: 4px;
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 0.9),
    0 0 80px rgba(255, 215, 0, 0.6),
    inset 0 2px 20px rgba(255, 255, 255, 0.5);
  animation: gold-glow 2s ease-in-out infinite;
}

.milestone[data-milestone="2000000"].reached .milestone-label {
  color: #FFD700;
  text-shadow: 
    0 0 25px rgba(255, 215, 0, 1), 
    0 0 50px rgba(255, 215, 0, 0.8),
    0 0 75px rgba(255, 215, 0, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.9);
  font-weight: 900;
}

@keyframes gold-glow {
  0%, 100% {
    box-shadow: 
      0 0 40px rgba(255, 215, 0, 0.9),
      0 0 80px rgba(255, 215, 0, 0.6),
      inset 0 2px 20px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 
      0 0 50px rgba(255, 215, 0, 1),
      0 0 100px rgba(255, 215, 0, 0.8),
      inset 0 2px 25px rgba(255, 255, 255, 0.7);
  }
}

.milestone.active .milestone-icon span {
  color: rgba(200, 200, 200, 0.6);
  font-weight: 600;
}

.milestone.reached .milestone-icon img {
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
  animation: icon-sparkle 2s ease-in-out infinite;
}

.milestone.active .milestone-icon img {
  filter: brightness(0.4) grayscale(1);
}

@keyframes icon-sparkle {
  0%, 100% {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
  }
  50% {
    filter: brightness(1.6) drop-shadow(0 0 15px rgba(255, 255, 255, 1));
  }
}

.milestone-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(180, 180, 180, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
}
/* Arrow pointing upward above milestone label */
.milestone-label::before {
  content: "▲";
  display: block;
  font-size: 30px;
  text-align: center;
  color: rgba(180, 180, 180, 0.7);
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Glow when milestone reached */
.milestone.reached .milestone-label::before {
  color: #00d4ff;
  text-shadow:
    0 0 10px rgba(0, 191, 255, 1),
    0 0 25px rgba(0, 191, 255, 0.8),
    0 0 40px rgba(0, 191, 255, 0.5);
}

/* Active milestone (current next target) */
.milestone.active .milestone-label::before {
  color: rgba(200,200,200,0.7);
}


.milestone.reached .milestone-label {
  color: #ffffff;
  text-shadow: 
    0 0 20px rgba(0, 191, 255, 1), 
    0 0 40px rgba(0, 191, 255, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 800;
  font-size: 1.2rem;
}

.milestone.active .milestone-label {
  color: rgba(180, 180, 180, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Animations */
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(0, 191, 255, 1));
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes milestone-reached {
  0% {
    transform: translateX(-50%) scale(0.5) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.3) rotate(10deg);
  }
  100% {
    transform: translateX(-50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes milestone-active {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.15);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .registration-progress-section {
    max-width: 100%;
    padding: 0 1rem;
  }

  .progress-container {
    padding: 2rem 1.5rem;
  }

  .progress-container h5 {
    font-size: 1.8rem;
  }

  .count-number {
    font-size: 3.5rem;
    padding: 0.9rem 2rem;
  }

  .milestone-icon {
    width: 110px;
    min-height: 130px;
    padding: 0.9rem 0.7rem;
  }

  .milestone-icon img {
    width: 55px;
    height: 55px;
  }

  .milestone-icon span {
    font-size: 0.7rem;
  }

  .milestone-label {
    font-size: 1rem;
  }

  .milestone-markers {
    height: 170px;
  }
}

@media (max-width: 768px) {
  .registration-progress-section-wrapper {
    margin-top: 2rem !important;
  }

  .progress-container {
    padding: 1.5rem 1rem;
  }

  .progress-container h5 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .count-number {
    font-size: 2.5rem;
    padding: 0.8rem 1.5rem;
  }

  .count-label {
    font-size: 0.9rem;
  }

  .progress-bar-track {
    height: 24px;
    border-radius: 12px;
  }

  .progress-bar-fill::before {
    width: 45px;
    height: 45px;
    right: -18px;
  }

  .milestone-icon {
    width: 90px;
    min-height: 110px;
    padding: 0.7rem 0.5rem;
    border-width: 2px;
  }

  .milestone-icon img {
    width: 45px;
    height: 45px;
  }

  .milestone-icon span {
    font-size: 0.65rem;
  }

  .milestone-label {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .milestone.reached .milestone-label,
  .milestone.active .milestone-label {
    font-size: 0.9rem;
    font-weight: 800;
  }

  .milestone-markers {
    height: 160px;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .progress-container {
    padding: 1.5rem 1rem;
  }

  .progress-container h5 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .count-number {
    font-size: 2.5rem;
  }

  .count-label {
    font-size: 0.9rem;
  }

  .progress-bar-track {
    height: 24px;
    border-radius: 12px;
  }

  .milestone-icon {
    width: 85px;
    min-height: 105px;
    padding: 0.7rem 0.5rem;
    border-width: 2px;
  }

  .milestone-icon img {
    width: 42px;
    height: 42px;
  }

  .milestone-icon span {
    font-size: 0.6rem;
  }

  .milestone-label {
    font-size: 0.75rem;
    font-weight: 700;
  }

  .milestone.reached .milestone-label,
  .milestone.active .milestone-label {
    font-size: 0.8rem;
    font-weight: 800;
  }

  .milestone-markers {
    height: 140px;
    margin-top: 1.5rem;
  }
}

@media (max-width: 360px) {
  .progress-container h5 {
    font-size: 1rem;
  }

  .count-number {
    font-size: 2rem;
  }

  .milestone-icon {
    width: 75px;
    min-height: 95px;
    padding: 0.6rem 0.4rem;
  }

  .milestone-icon img {
    width: 36px;
    height: 36px;
  }

  .milestone-icon span {
    font-size: 0.55rem;
  }

  .milestone-label {
    font-size: 0.7rem;
  }

  .milestone.reached .milestone-label,
  .milestone.active .milestone-label {
    font-size: 0.75rem;
  }

  .milestone-markers {
    height: 130px;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .progress-container {
    padding: 1.5rem 1rem;
  }

  .progress-container h5 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .count-number {
    font-size: 2.5rem;
  }

  .count-label {
    font-size: 0.9rem;
  }

  .progress-bar-track {
    height: 24px;
    border-radius: 12px;
  }

  .milestone-icon {
    width: 45px;
    height: 45px;
    border-width: 2px;
  }

  .milestone-icon img {
    width: 18px;
    height: 18px;
  }

  .milestone-label {
    font-size: 0.7rem;
  }

  .milestone-markers {
    height: 70px;
  }
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
  .milestone-markers {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    height: auto !important;
    margin-top: 2rem !important;
    position: relative !important;
  }

  .milestone {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    opacity: 0.8 !important;
  }

  .milestone.reached {
    opacity: 1 !important;
  }

  .milestone.active {
    opacity: 0.6 !important;
  }
}

@media (max-width: 480px) {
  .registration-progress-section-wrapper {
    margin-top: 1.5rem !important;
  }

  .registration-progress-section {
    padding: 0 0.5rem;
  }

  .progress-container {
    padding: 1.2rem 0.8rem !important;
  }

  .progress-container h5 {
    font-size: 1.1rem !important;
  }

  .count-number {
    font-size: 2rem !important;
    padding: 0.7rem 1.2rem !important;
  }

  .count-label {
    font-size: 0.8rem !important;
  }

  .progress-bar-track {
    height: 20px !important;
  }

  .progress-bar-fill::before {
    width: 40px !important;
    height: 40px !important;
    right: -15px !important;
  }

  .milestone-markers {
    gap: 0.8rem !important;
    margin-top: 1.5rem !important;
  }

  .milestone-icon {
    width: 100% !important;
    min-height: 110px !important;
    padding: 0.7rem 0.5rem !important;
  }

  .milestone-icon img {
    width: 40px !important;
    height: 40px !important;
  }

  .milestone-icon span {
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
  }

  .milestone-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .milestone.reached .milestone-label {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 360px) {
  .progress-container h5 {
    font-size: 1rem !important;
  }

  .count-number {
    font-size: 1.8rem !important;
    padding: 0.6rem 1rem !important;
  }

  .milestone-markers {
    gap: 0.6rem !important;
  }

  .milestone-icon {
    min-height: 100px !important;
    padding: 0.6rem 0.4rem !important;
  }

  .milestone-icon img {
    width: 35px !important;
    height: 35px !important;
  }

  .milestone-icon span {
    font-size: 0.55rem !important;
  }

  .milestone-label {
    font-size: 0.75rem !important;
  }
}
