/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Intro Animation Specifics */
#intro-layer {
  pointer-events: all;
  /* Smooth fade out for the black background */
  transition: opacity 0.8s ease-out;
}

#animating-pill {
  /* Start as a square ALREADY AT THE TOP position */
  width: 80px;
  height: 80px;
  border-radius: 20px;

  /* 24px matches 'top-6' tailwind class */
  top: 24px;
  left: 50%;
  /* Center horizontally only */
  transform: translateX(-50%);

  z-index: 101;
  /* Transition settings for the width expansion */
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ACTIVE NAVIGATION LINK STYLE (Scroll Spy) */
.desktop-link.active-nav-link {
  background-color: #1e293b;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* FLUID WATER HIGHLIGHTER */
#nav-highlighter {
  background-color: rgba(30, 41, 59, 0.85) !important;
  backdrop-filter: blur(4px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
  will-change: transform, width;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* INFINITE SCROLL ANIMATION (Ticker) */
/* CHANGED: Reversed values to make it scroll Left -> Right */
@keyframes infinite-scroll {
  from {
    transform: translateX(-100%); /* Start from left (off-screen) */
  }
  to {
    transform: translateX(0); /* End at original position */
  }
}

.animate-infinite-scroll {
  animation: infinite-scroll 25s linear infinite;
}

.group:hover .animate-infinite-scroll {
  animation-play-state: paused;
}
