/* 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 */
}

/* hero section  */
@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* marquee  */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-scroll {
  animation: infiniteScroll 30s linear infinite;
  /* Optional: pause the marquee when the user hovers over it */
  /* cursor: pointer; */
}
.animate-scroll:hover {
  animation-play-state: paused;
}

/* reviews  */

@keyframes galacticFloat1 {
  0%,
  100% {
    transform: translateY(0px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-20px) rotate(1.5deg);
  }
}
@keyframes galacticFloat2 {
  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(15px) rotate(-0.5deg);
  }
}
@keyframes galacticFloat3 {
  0%,
  100% {
    transform: translateY(0px) rotate(1deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
}
@keyframes galacticFloat4 {
  0%,
  100% {
    transform: translateY(0px) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-25px) rotate(1deg);
  }
}
@keyframes galacticFloat5 {
  0%,
  100% {
    transform: translateY(0px) rotate(1.5deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.5deg);
  }
}

.animate-galactic-1 {
  animation: galacticFloat1 7s ease-in-out infinite;
}
.animate-galactic-2 {
  animation: galacticFloat2 8s ease-in-out infinite 0.5s;
}
.animate-galactic-3 {
  animation: galacticFloat3 6s ease-in-out infinite 1s;
}
.animate-galactic-4 {
  animation: galacticFloat4 9s ease-in-out infinite 1.5s;
}
.animate-galactic-5 {
  animation: galacticFloat5 10s ease-in-out infinite 2s;
}
