@font-face {
  font-family: "Roboto";
  src: url("../css/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  overflow-x: hidden;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ==========================================================
   🦷 BioDentix™ Animation Pack — Global Styles
   Author: Lucifer Morningstar
   Use anywhere across site: buttons, cards, logos, sections
   ========================================================== */

/* 🌈 1. Gradient Slide Animation */
@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 5s ease infinite;
}

/* 🌤️ 2. Fade In Up (Entrance Animation) */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fade-in-up 1s ease forwards;
}

/* ⏱️ Delay Utilities */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}

/* 🌊 3. Slow Bounce (Looping Float) */
@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.animate-bounce-slow {
  animation: bounce-slow 4s ease-in-out infinite;
}

/* ✨ 4. Glow + Float Hybrid (Reusable Premium Effect) */
@keyframes glow-float {
  0% {
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
}
.animate-glow-float {
  animation: glow-float 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.animate-glow-float:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 200, 0, 0.4);
}

/* ===== Custom Scrollbar Theme ===== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f97316, #facc15, #22c55e);
  border-radius: 10px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #22c55e, #facc15, #f97316);
}

/* ===== Scroll to Top Button ===== */
#scrollToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: conic-gradient(var(--scroll-gradient, #bbb) 0deg, #222 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#scrollToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.6);
}

/* inner glowing circle */
#scrollToTop span {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(to right, #f97316, #facc15, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
  transition: all 0.3s ease;
}

/* Arrow icon */
#scrollToTop::before {
  content: "⮝";
  position: absolute;
  font-size: 1.8rem;
  color: white;
  z-index: 10;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}

#scrollToTop:hover::before {
  transform: translateY(-3px);
}
