/* =========================================
   BYALL AUTOMATION — MENU
   menu.css
   ========================================= */

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1240px;
  z-index: 9999;
  padding: 8px 16px;
  background: rgba(10, 22, 40, 0.88);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4),
              inset 0 1px 0 rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s, box-shadow 0.3s, top 0.3s;
}

.site-header.scrolled {
  top: 10px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6),
              0 0 0 1px rgba(26,159,224,0.12);
}

/* ── LOGO ── */

.site-header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header .logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.site-header .logo-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* ── NAV LINKS ── */

.main-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.main-menu a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.main-menu a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: #1a9fe0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.main-menu a:hover,
.main-menu a.active {
  color: #ffffff;
  background: rgba(26,159,224,0.12);
}

.main-menu a:hover::after,
.main-menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── CTA ── */

.nav-cta {
  position: relative;
  overflow: hidden;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a9fe0, #1a6fc4);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26,159,224,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f5c518, #d4920f);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.35);
  color: #020b1a;
}

.nav-cta:hover::before { opacity: 1; }

.nav-cta span { position: relative; z-index: 1; }

/* ── MOBILE TOGGLE ── */

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.mobile-toggle:hover {
  background: rgba(26,159,224,0.15);
  border-color: rgba(26,159,224,0.35);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 20px;
    padding: 8px 12px;
  }

  .main-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(2, 11, 26, 0.98);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 10px;
    gap: 4px;
    backdrop-filter: blur(24px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    z-index: 100;
    justify-content: flex-start;
  }

  .main-menu.active { display: flex; }

  .main-menu a {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 480px) {
  .site-header .logo-icon {
    width: 30px;
    height: 30px;
  }

  .site-header .logo-icon img {
    width: 30px;
    height: 30px;
  }
}