/* Reduce motion for users who prefer it */
/*
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
*/

/* Back to Top Button Responsive Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(123, 47, 255, 0.6);
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  .hero-title.fancy-title {
    display: none;
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  .cta-extreme-down {
    margin-top: 50px !important;
  }
  .btn-fancy {
    font-size: 1rem;
    padding: 10px 24px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .cta-extreme-down {
    margin-top: 30px !important;
  }
  .btn-fancy {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title.fancy-title {
    font-size: 1rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
  }
  .back-to-top {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    bottom: 15px;
    right: 15px;
  }
  .cta-extreme-down {
    margin-top: 5px !important;
  }
  .btn-fancy {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  .section-title {
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    text-overflow: clip;
    margin-left: 8px;
    margin-right: 8px;
  }
  .section-subtitle {
    font-size: 0.7rem;
    margin-left: 8px;
    margin-right: 8px;
  }
}

/* Section Fade and Slide In Animation */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-duration: 0.6s;
  animation-timing-function: ease;
  animation-name: none;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  animation-name: fadeSlideIn;
}
