/* ==========================================================================
   BIXYN — Layout (containers, sections, grids)
   Desktop-first, based on Figma Home_Page_Desktop (1440px).
   ========================================================================== */

/* Centered content container — matches Figma 1200px content width */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + (var(--page-padding) * 3));
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

/* ---------------------------------------------------------------- Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background-color: var(--color-navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.navbar__logo img {
  height: 33px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-48);
  /* margin-left: auto; */
}

.navbar__menu a {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  color: var(--color-white-70);
  transition: color 0.2s ease;
}

.navbar__menu a:hover {
  color: var(--color-white);
}

/* .navbar__cta {
  margin-left: var(--space-48);
} */

.navbar__toggle {
  display: none;
}

.navbar__toggle  {
  width: 24px;
  height: 24px;
}

.close-icon {
  width: 18px;
  height: 18px;
}

/* Hamburger ⇄ X — the icon spins / fades as the src is swapped, so the
   change reads as one smooth transform in both directions. */
.navbar__toggle img {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar__toggle img.icon-swap {
  animation: navIconSwap 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes navIconSwap {
  0% {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .navbar__toggle img {
    transition: none;
  }

  .navbar__toggle img.icon-swap {
    animation: none;
  }
}

/* ------------------------------------------- Navbar Services dropdown */
.navbar__menu .nav-item--services {
  position: relative;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.nav-services-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease;
}

/* Dropdown panel — hidden until opened (desktop + tablet share this base) */
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-submenu a:hover {
  color: var(--color-white);
  background-color: var(--color-bg-alt);
}

/* Open state — driven only by the JS class (tablet + mobile) */
.nav-item--services.submenu-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item--services.submenu-open .nav-caret {
  transform: rotate(90deg);
}

/* Desktop-only hover — kept above 1024px so it never leaks into
   tablet/mobile and can't keep the submenu or caret stuck open. */
@media (min-width: 1025px) {
  .nav-item--services:hover .nav-submenu,
  .nav-item--services:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item--services:hover .nav-caret,
  .nav-item--services:focus-within .nav-caret {
    transform: rotate(90deg);
  }
}

/* ------------------------------------------------------------------ Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.hero .h1 {
  max-width: 900px;
}

.hero__desc {
  max-width: 720px;
  color: var(--color-white);
}

.hero__actions {
  display: flex;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-64);
  flex-wrap: wrap;
  padding-top: var(--space-24);
  border-top: 1.5px solid var(--color-border);
}

.hero__stats--mobile {
  display: none;
}

/* -------------------------------------------------------- Trusted Brands */
.trusted {
  padding: 24px var(--page-padding);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  background-color: var(--color-bg-alt);
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 84px;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee__track img {
  height: 40px;
  width: auto;
}

/* .marquee:hover .marquee__track {
  animation-play-state: paused;
} */

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- Services */
.services {
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
  padding-top: 120px;  padding-bottom: 64px;
}

.services__grid {
  display: flex;
  align-items: stretch;
}

/* --------------------------------------------------------------- Portfolio */
.portfolio {
  background-color: var(--color-bg-alt);
  padding-block: 120px 64px;
}

.portfolio__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-32);
  margin-bottom: var(--space-64);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
}

/* ---------------------------------------------------------------- Process */
.process {
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
  padding-block: 120px 64px;
}

.process__grid {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------- FAQ */
.faq {
  background-color: var(--color-bg-alt);
  padding-block: 100px 80px;
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.faq__intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

/* ------------------------------------------------------------ Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  padding-block: 120px 100px;
}

.testimonials__grid {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------- CTA */
.cta {
  background-color: var(--color-accent);
  padding: 100px var(--page-padding);
}

.cta__inner {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-40);
  text-align: center;
}

.about-cta {
  color: var(--color-white);
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.cta__title {
  color: var(--color-accent-dark);
  text-align: center;
}

.cta__subtitle {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: 28px;
  color: var(--color-text-soft);
}

.text-br {
  display: none;
}

/* ----------------------------------------------------------------- Footer */
.footer {
  padding-block: 80px 40px;
}

.work_footer {
    background-color: var(--color-bg-alt);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-64);
  padding-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: 408px;
}

.footer__logo {
  width: 160px;
  height: auto;
}

.footer__socials {
  display: flex;
  gap: var(--space-16);
}

.footer__cols {
  display: flex;
  gap: var(--space-64);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__col a {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: 28px;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--color-white);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-white);
  font-weight: var(--fw-medium);
  font-size: 12px;
  margin-top: -14px;
}

.footer__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  animation: pulseColor 8s ease-in-out infinite;
}

@keyframes pulseColor {

    0% {
        background-color: var(--color-accent); /* Green */
    }

    50% {
        background-color: #416701; /* Dark Green */
    }

    100% {
        background-color: var(--color-accent); /* Green */
    }

}
