/* ============================================================
   MultyLogics — Tailwind-based redesign
   Small hand-written layer for interactive states Tailwind's
   CDN build can't express as utility classes alone.
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  background: #0b1220;
  font-family: "Inter", "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

.gradient-text {
  background: linear-gradient(90deg, #2b64f8, #33a9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Desktop: reveal mega-menu on hover of its parent */
@media (min-width: 1024px) {
  .has-mega .mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .has-mega:hover .mega-menu,
  .has-mega.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile nav + mega-menu accordion */
@media (max-width: 1023px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px 24px;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link { display: block; padding: 12px 4px; }
  .mega-menu {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    display: none !important;
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 6px;
    transform: none !important;
    box-shadow: none;
  }
  .has-mega.open .mega-menu { display: grid !important; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.open ~ .header-cta .nav-toggle span:nth-child(1),
.header-cta:has(+ .nav.open) .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

/* ---------- Hero spin badge ---------- */
.hero-badge { animation: spin-badge 22s linear infinite; }
@keyframes spin-badge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item .faq-icon { transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Contact form status ---------- */
.form-status { min-height: 1.2em; }
.form-status.success { color: #33a9ff; }
.form-status.error { color: #ff6b6b; }

/* ---------- Marquee (technologies) ---------- */
.tech-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
