/* Small custom touches that go beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
}

/* Mobile hamburger -> X animation */
#menuBtn.is-open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menuBtn.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

#menuBtn.is-open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Slow rotation for the circular "AI TECH DIGI" seal in the About section */
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* Services cards: the featured card is full size by default. Hovering any
   card in the row expands that card to full size and shrinks the rest,
   including the featured one. Desktop only -- mobile keeps its scroll row. */
@media (min-width: 1024px) {
  .service-row .service-card {
    flex-grow: 1;
    flex-basis: 0%;
    transition: flex-grow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .service-row .service-card.is-featured {
    flex-grow: 3;
  }

  .service-row:hover .service-card {
    flex-grow: 1;
  }

  .service-row:hover .service-card:hover {
    flex-grow: 3;
  }

  /* Description + Learn More: visible on the featured card by default,
     swaps to whichever card is hovered, hidden on every other card. */
  .service-card .service-desc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
  }

  .service-card .service-desc-panel>div {
    overflow: hidden;
  }

  .service-card.is-featured .service-desc-panel {
    grid-template-rows: 1fr;
  }

  .service-row:hover .service-card .service-desc-panel {
    grid-template-rows: 0fr;
  }

  .service-row:hover .service-card:hover .service-desc-panel {
    grid-template-rows: 1fr;
  }
}

/* "How It Works" slider: equal-height cards, no default Slick arrows/dots */
.how-it-works-slider .slick-track {
  display: flex !important;
}

.how-it-works-slider .slick-slide {
  height: auto;
}

.how-it-works-slider .slick-slide>div {
  height: 100%;
}

/* Featured Projects card stack: fanned/overlapping by default, spreads into
   a row when the stack is hovered. */
.project-stack .project-card {
  top: 50%;
  left: 50%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-stack .project-card:nth-child(1) {
  transform: translate(-50%, -50%) translateX(-28px) rotate(-8deg);
  z-index: 1;
}

.project-stack .project-card:nth-child(2) {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 3;
}

.project-stack .project-card:nth-child(3) {
  transform: translate(-50%, -50%) translateX(28px) rotate(8deg);
  z-index: 2;
}

.project-stack:hover .project-card:nth-child(1) {
  transform: translate(-50%, -50%) translateX(-19rem) rotate(0deg);
  z-index: 2;
}

.project-stack:hover .project-card:nth-child(2) {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 2;
}

.project-stack:hover .project-card:nth-child(3) {
  transform: translate(-50%, -50%) translateX(19rem) rotate(0deg);
  z-index: 2;
}

/* Running marquee under the video section: two identical groups placed
   side by side, scrolled left by exactly one group's width for a seamless loop. */
.marquee-track {
  animation: marquee-scroll 24s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Testimonials slider: equal-height fade slides, pill-shaped dot indicator */
.testimonial-slider .slick-track {
  display: flex !important;
}

.testimonial-slider .slick-slide {
  height: auto;
}

.testimonial-slider .slick-slide>div {
  height: 100%;
}

.testimonial-dots ul.slick-dots {
  position: static;
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
}

.testimonial-dots ul.slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.testimonial-dots ul.slick-dots li button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 9999px;
  background: #d1d5db;
  font-size: 0;
  line-height: 0;
  transition: background-color 0.3s, width 0.3s;
}

.testimonial-dots ul.slick-dots li button:before {
  content: none;
}

.testimonial-dots ul.slick-dots li.slick-active button {
  width: 20px;
  background: #121212;
}

/* Team slider: equal-height cards, plain (unboxed) dot row */
.team-slider .slick-track {
  display: flex !important;
}

.team-slider .slick-slide {
  height: auto;
}

.team-slider .slick-slide>div {
  height: 100%;
}

.team-dots ul.slick-dots {
  position: static;
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-dots ul.slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.team-dots ul.slick-dots li button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 9999px;
  background: #d1d5db;
  font-size: 0;
  line-height: 0;
  transition: background-color 0.3s, width 0.3s;
}

.team-dots ul.slick-dots li button:before {
  content: none;
}

.team-dots ul.slick-dots li.slick-active button {
  width: 20px;
  background: #121212;
}

/* FAQ accordion: smooth height animation via the 0fr/1fr grid-rows trick
   (no JS height measurement needed), plus-to-minus icon via opacity fade. */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-icon-vert {
  transition: opacity 0.2s ease;
  transform-origin: center;
}

.faq-item.is-open .faq-icon-vert {
  opacity: 0;
}


.rounded-full {
  border-radius: 10px !important;
}