/* Custom Scrollbar for Mega Menus */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* Infinite Marquee Animation */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  animation: scroll-left 30s linear infinite;
  will-change: transform;
}
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* GSAP Initial States */
.section-fade-up {
  opacity: 0;
  transform: translateY(40px);
  visibility: hidden;
}

.gsap-feature-card {
  opacity: 0;
  transform: translateY(30px);
}
/* new code  */
/* Tab Fade Animation utilities */
.tab-content {
  transition: opacity 0.3s ease-in-out;
}

/* Hide scrollbar completely but allow scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Make sure modal is strictly above everything including fixed headers */
#video-modal {
  z-index: 9999;
}

/* World-class technology and amazing features */
/* Initial State for the new Tech Cards Animation */
.gsap-tech-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

/* Interested in Learning More */

/* footer  */
/* ==============================================
  NEW: Footer Link Hover Text Animation
  ==============================================
*/
.footer-link {
  position: relative;
  display: inline-block;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s ease;
}
.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #1800ac; /* driver primary color */
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.footer-link:hover {
  transform: translateX(6px); /* Slide text to the right slightly */
  color: #1800ac;
}
.footer-link:hover::after {
  width: 100%; /* Underline grows from left to right */
}
