/* ==========================================================================
   Utility & Helper Classes
   ========================================================================== */

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 41px;
  height: 41px;
  background: #0500ef;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-btn:hover {
  transform: translateY(-5px);
}

.scroll-to-top-btn img {
  width: 11px;
  height: 11px;
  transform:rotate(-45deg);
}

/* Loading Spinner */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}


.page-loader.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0s, visibility 0s;
}

.spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.spinner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top: 4px solid #2042BF;
  border-right: 4px solid #2042BF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 85% 50%, 50% 15%);
}

.spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-bottom: 4px solid #0500EF;
  border-left: 4px solid #0500EF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  animation-delay: 0.2s;
  clip-path: polygon(0% 0%, 100% 50%, 0% 85%, 0% 100%, 0% 100%);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Button Utilities */
@media(max-width:768px){
  .cta-button{
    padding: 12px 24px;
    font-size: 1rem;
    gap: 0.5rem;
  }

  .cta-button span {
    font-size: 1rem;
  }

  .hero-button-icon {
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
  }
  } 
  
  @media (max-width: 992px){
 .spinner {
    width: 50px;
    height: 50px;
 }
}
