/*==========================
  NAVBAR
==========================*/

:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --text: #1e293b;
  --light: #64748b;
  --border: #edf2f7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.navbar {
  width: min(95%, 1600px);

  margin: auto;

  border-radius: 22px;

  /* background: rgba(255, 255, 255, 0.82); */

  backdrop-filter: blur(25px);

  /* border: 1px solid rgba(255, 255, 255, 0.4); */
/* 
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.06),
    0 5px 15px rgba(0, 0, 0, 0.03); */

  transition: 0.35s;
}

.navbar.scrolled {
  width: min(92%, 1320px);

  background: #fff;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.nav-container {
  width: 95%;

  max-width: 1450px;

  margin: auto;

  height: 90px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}
/*==========================
LOGO
==========================*/
.logo {
  display: flex;

  align-items: center;

  gap: 15px;

  flex-shrink: 0;
}

.logo-box {
  width: 50px;

  height: 50px;

  border-radius: 18px;

  background: linear-gradient(135deg, #2563eb, #7c3aed);

  display: flex;

  justify-content: center;

  align-items: center;

  color: #fff;

  font-size: 20px;

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
}
.logo-box img {
  width: 50px;

  height: 50px;

  object-fit: cover;

  border-radius: 18px;
}
.logo-text {
  display: flex;

  flex-direction: column;
}

.logo-text h2 {
  margin: 0;

  line-height: 1;

  font-size: 22px;

  font-weight: 700;

  color: #0f172a;
}

.logo-text span {
  margin-top: 6px;

  text-transform: uppercase;

  letter-spacing: 3px;

  font-size: 8px;

  color: #2563eb;
}

/*==========================
MENU
==========================*/

.nav-links {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 35px;

  list-style: none;

  margin: 0 auto;

  padding: 0;

  flex: 1;
}
.nav-links > li {
  position: relative;

  list-style: none;
}

.nav-links > li > a {
  display: flex;

  align-items: center;

  gap: 8px;

  height: 90px;

  color: var(--text);

  font-size: 15px;

  font-weight: 500;

  transition: 0.3s;
}

.nav-links > li > a {
  position: relative;

  overflow: hidden;
}

.nav-links > li > a::before {
  content: "";

  position: absolute;

  left: 50%;

  bottom: 14px;

  width: 0;

  height: 3px;

  transform: translateX(-50%);

  background: linear-gradient(90deg, #2563eb, #7c3aed);

  transition: 0.35s;

  border-radius: 50px;
}

.nav-links > li:hover > a::before {
  width: 80%;
}

.nav-links > li > a.active::before {
  width: 80%;
}
/*==========================
RIGHT
==========================*/

.right-menu {
  display: flex;

  align-items: center;

  gap: 15px;

  flex-shrink: 0;
}

.theme-toggle {
  width: 52px;

  height: 52px;

  border: none;

  border-radius: 50%;

  background: #f3f6ff;

  font-size: 15px;

  cursor: pointer;

  transition: 0.3s;

  display: flex;

  justify-content: center;

  align-items: center;
}

.theme-toggle:hover {
  transform: translateY(-3px);
}

.login-btn {
  display: flex;

  align-items: center;

  gap: 8px;

  white-space: nowrap;

  font-size: 15px;

  font-weight: 600;

  color: #1e293b;
}

.login-btn:hover {
  color: var(--primary);
}

.cta-btn {
  position: relative;

  overflow: hidden;

  padding: 14px 28px;

  font-size: 14px;

  border-radius: 16px;

  font-weight: 600;

  background: linear-gradient(135deg, #2563eb, #7c3aed);

  color: #fff;

  transition: 0.35s;
  display: flex;

  align-items: center;

  justify-content: center;

  white-space: nowrap;
}

.cta-btn::before {
  content: "";

  position: absolute;

  top: 0;

  left: -120%;

  width: 100%;

  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  transition: 0.7s;
}

.cta-btn:hover::before {
  left: 120%;
}
.cta-btn:hover {
  transform: translateY(-4px);

  color: #fff;

  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.32);
}

.menu-btn {
  display: none;

  border: none;

  background: none;

  font-size: 34px;

  cursor: pointer;
}

/*==========================
MEGA MENU
==========================*/

.mega-parent {
  position: static;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  width: min(660px, 88vw);
  background: #fff;

  border-radius: 18px;

  padding: 20px 22px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);

  border: 1px solid #edf2f7;

  opacity: 0;
  visibility: hidden;
  transition: 0.35s;
}
.mega-parent:hover .mega-menu {
  opacity: 1;

  visibility: visible;

  transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu {
  transform: translateX(-50%) translateY(25px) scale(0.97);

  transform-origin: top;
}
.mega-title {
  color: #94a3b8;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 14px;
}

.mega-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  column-gap: 12px;

  row-gap: 10px;
}

.mega-menu .service-card {
  display: flex;

  align-items: center;

  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;

  border-radius: 12px;

  transition: 0.35s;

  border: 1px solid #edf2f7;

  background: #fff;
  overflow: visible;
}

.mega-menu .service-card::before,
.mega-menu .service-card::after {
  display: none;
}

.mega-menu .service-card:hover {
  background: #f8fbff;

  border-color: #dbeafe;

  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}
.mega-menu .service-card:nth-child(1) i {
  background: #eff6ff;
  color: #2563eb;
}

.mega-menu .service-card:nth-child(2) i {
  background: #ecfeff;
  color: #0891b2;
}

.mega-menu .service-card:nth-child(3) i {
  background: #f5f3ff;
  color: #7c3aed;
}

.mega-menu .service-card:nth-child(4) i {
  background: #fef3c7;
  color: #d97706;
}

.mega-menu .service-card:nth-child(5) i {
  background: #dcfce7;
  color: #16a34a;
}

.mega-menu .service-card:nth-child(6) i {
  background: #ffe4e6;
  color: #e11d48;
}

.mega-menu .service-card:nth-child(7) i {
  background: #ede9fe;
  color: #7c3aed;
}

.mega-menu .service-card:nth-child(8) i {
  background: #ecfccb;
  color: #65a30d;
}

.mega-menu .service-card:nth-child(9) i {
  background: #fef2f2;
  color: #dc2626;
}

.mega-menu .service-card:nth-child(10) i {
  background: #eff6ff;
  color: #2563eb;
}

.mega-menu .service-card:nth-child(11) i {
  background: #ecfeff;
  color: #0891b2;
}

.mega-menu .service-card:nth-child(12) i {
  background: #f3f4f6;
  color: #374151;
}

.mega-menu .service-card i {
  width: 36px;

  height: 36px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 18px;

  border-radius: 11px;
  background: #eef4ff;

  color: #2563eb;
}

.mega-menu .service-card span {
  font-size: 14px;

  font-weight: 600;

  line-height: 1.35;
}

.mega-footer {
  margin-top: 14px;

  padding-top: 14px;

  border-top: 1px solid #edf2f7;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.mega-footer span {
  color: #64748b;
}

.mega-footer a {
  color: #2563eb;

  font-weight: 600;
}
.mega-menu::before {
  content: "";

  position: absolute;

  top: -10px;

  left: 50%;

  width: 22px;

  height: 22px;

  background: #fff;

  transform: translateX(-50%) rotate(45deg);

  border-left: 1px solid #eee;

  border-top: 1px solid #eee;
}
