/* iLanding — custom CSS (only what Tailwind utilities can't express cleanly) */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Keyframe animations ---------- */
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes experience-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shapes-float {
  0%, 100% { transform: scale(0.8) rotate(45deg) translateY(0); }
  50% { transform: scale(0.8) rotate(45deg) translateY(-20px); }
}
.animate-float-badge { animation: float-badge 3s ease-in-out infinite; }
.animate-exp-float { animation: experience-float 3s ease-in-out infinite; }
.animate-shapes-float { animation: shapes-float 3s ease-in-out infinite; }
.animate-shapes-float-slow { animation: shapes-float 4s ease-in-out infinite; }

@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-gear-spin {
  display: inline-block;
  animation: gear-spin 4s linear infinite;
}

/* ---------- Clients logo marquee ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 22s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* ---------- FAQ accordion (smooth height without JS measuring) ---------- */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}
.faq-content > p {
  overflow: hidden;
  margin: 0;
}
.faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}
.faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
  color: #0d83fd;
}
.faq-item h3:hover {
  color: #0d83fd;
}
.faq-item.faq-active h3 {
  color: #0d83fd;
}

/* ---------- Desktop nav dropdown (hover flyout, xl and up) ---------- */
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 10px 20px;
  transition: color 0.3s;
}

@media (min-width: 1200px) {
  .nav-dropdown-menu {
    position: absolute;
    left: 14px;
    top: 130%;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .nav-dropdown:hover > .nav-dropdown-menu {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
  .nav-dropdown-deep > .nav-dropdown-menu {
    top: 0;
    left: -90%;
    visibility: hidden;
  }
  .nav-dropdown-deep:hover > .nav-dropdown-menu {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

@media (min-width: 1200px) {
  .nav-link {
    font-size: 16px;
    font-weight: 400;
    padding: 18px 16px;
  }
}

/* ---------- Mobile nav dropdown (below xl, JS toggled) ---------- */
@media (max-width: 1199px) {
  .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown-menu.dropdown-open {
    display: block;
  }
  .nav-toggle-icon.dropdown-open {
    transform: rotate(180deg);
    background-color: #0d83fd;
    color: #fff;
  }
}

/* ---------- Scroll-top button ---------- */
#scroll-top {
  transition: all 0.4s;
}
#scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top:not(.active) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
}

/* ---------- Video lightbox ---------- */
#video-modal {
  transition: opacity 0.3s;
}
