@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;
}

/* ===== Custom Scrollbar (Blue → Aqua Theme) ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    #3b82f6,
    #06b6d4,
    #0ea5e9
  ); /* blue → aqua */
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0ea5e9, #06b6d4, #3b82f6);
}

/* ===== Scroll to Top Button (Blue → Aqua Theme) ===== */
#scrollToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: conic-gradient(
    var(--scroll-gradient, #3b82f6) 0deg,
    #0e0e0e 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(6, 182, 212, 0.6); /* aqua glow */
}

/* Inner glowing circle */
#scrollToTop span {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(
    to right,
    #3b82f6,
    #06b6d4,
    #0ea5e9
  ); /* blue → aqua */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); /* aqua glow */
  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);
}

.marquee {
  animation: scroll-left 18s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Each certificate rotates individually */
@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-spinSlow {
  animation: spinSlow 14s linear infinite;
}
