/* Ultra-Smooth SVG Arrow Icons */

/* Forward Arrow - SVG-based for maximum smoothness */
.icon-arrow-right:before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  margin-left: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  top: 2px !important;
  vertical-align: middle !important;
}

/* Back to Top Arrow - SVG-based for maximum smoothness */
.fa-arrow-up:before,
.fas.fa-arrow-up:before,
.fa-regular.fa-arrow-up:before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  top: 0px !important;
  vertical-align: middle !important;
}

/* Enhanced Hover Animations */
.arrow-btn i.icon-arrow-right:before {
  transform: translateX(0) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.arrow-btn:hover i.icon-arrow-right:before {
  transform: translateX(4px) !important;
  filter: brightness(1.2) !important;
}

.theme-btn i.icon-arrow-right:before {
  transform: translateX(0) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-btn:hover i.icon-arrow-right:before {
  transform: translateX(5px) !important;
  filter: brightness(1.1) !important;
}

.back-to-top:hover i.fa-arrow-up:before,
.back-to-top:hover i.fas.fa-arrow-up:before,
.back-to-top:hover i.fa-regular.fa-arrow-up:before {
  transform: translateY(-3px) !important;
  filter: brightness(1.2) !important;
}

/* Pulse animation for back-to-top button */
.back-to-top {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
}

/* Smooth loading animation */
.icon-arrow-right:before,
.fa-arrow-up:before,
.fas.fa-arrow-up:before,
.fa-regular.fa-arrow-up:before {
  animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ensure all arrow elements are visible */
i[class*="arrow"],
.arrow-btn,
.back-to-top {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

/* Force visibility for all arrow classes */
[class*="arrow"] {
  opacity: 1 !important;
  visibility: visible !important;
}
