/* ==========================================================================
   PROMOTION MONSTER - Luxury Animated & Ultra-Colorful Mega Menu Engine
   Rich Color Coding, Smooth Hover Transitions & Micro-Animations
   ========================================================================== */

/* 1. Main Navigation Bar Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3px;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Base Top-Level Nav Link */
.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.015em;
  position: relative;
}

/* Sliding Bottom Color Accent Line on Nav Links */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1d68f2, #ff6b00);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-item:hover > .nav-link::after,
.nav-link.active::after {
  width: 75%;
}

/* Colorful Distinct Themes for Each Main Nav Item */
.nav-item:nth-child(1) .nav-link:hover, .nav-item:nth-child(1) .nav-link.active {
  color: #1d68f2;
  background: rgba(29, 104, 242, 0.08);
}
.nav-item:nth-child(1) .nav-link::after {
  background: #1d68f2;
}

.nav-item:nth-child(2) .nav-link:hover, .nav-item:nth-child(2) .nav-link.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.nav-item:nth-child(2) .nav-link::after {
  background: #10b981;
}

/* All Services (Mega Menu Item) */
.nav-item.mega-menu-item .nav-link:hover, .nav-item.mega-menu-item .nav-link.active {
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.09);
}
.nav-item.mega-menu-item .nav-link::after {
  background: linear-gradient(90deg, #ff6b00, #ff8c00);
}

/* Web Dev Item */
.nav-item:nth-child(4) .nav-link:hover, .nav-item:nth-child(4) .nav-link.active {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}
.nav-item:nth-child(4) .nav-link::after {
  background: #0284c7;
}

/* Android Apps Item */
.nav-item:nth-child(5) .nav-link:hover, .nav-item:nth-child(5) .nav-link.active {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}
.nav-item:nth-child(5) .nav-link::after {
  background: #16a34a;
}

/* ERP Software Item */
.nav-item:nth-child(6) .nav-link:hover, .nav-item:nth-child(6) .nav-link.active {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}
.nav-item:nth-child(6) .nav-link::after {
  background: #8b5cf6;
}

/* Marketing & SEO Item */
.nav-item:nth-child(7) .nav-link:hover, .nav-item:nth-child(7) .nav-link.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}
.nav-item:nth-child(7) .nav-link::after {
  background: #f43f5e;
}

/* Portfolio Item */
.nav-item:nth-child(8) .nav-link:hover, .nav-item:nth-child(8) .nav-link.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.nav-item:nth-child(8) .nav-link::after {
  background: #f59e0b;
}

/* Pricing Item */
.nav-item:nth-child(9) .nav-link:hover, .nav-item:nth-child(9) .nav-link.active {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}
.nav-item:nth-child(9) .nav-link::after {
  background: #6366f1;
}

/* Contact Item */
.nav-item:nth-child(10) .nav-link:hover, .nav-item:nth-child(10) .nav-link.active {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
}
.nav-item:nth-child(10) .nav-link::after {
  background: #0d9488;
}

/* Animated Caret Icon */
.nav-link svg.caret {
  width: 12px;
  height: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.nav-item:hover > .nav-link svg.caret {
  transform: rotate(180deg) scale(1.15);
}

/* ==========================================================================
   2. Standard Dropdown Menus (Animated & Vibrant)
   ========================================================================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(226, 232, 240, 0.85);
  border: 1px solid var(--pm-border);
  border-top: 3px solid var(--pm-primary);
  padding: 14px 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 1000;
  backdrop-filter: blur(16px);
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.dropdown-link:hover {
  background: linear-gradient(90deg, rgba(29, 104, 242, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  color: var(--pm-primary);
  transform: translateX(6px);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(29, 104, 242, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
  color: var(--pm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Color Schemes for Individual Dropdowns */
.nav-item:nth-child(4) > .dropdown-menu {
  border-top-color: #0284c7;
}
.nav-item:nth-child(4) .dropdown-link:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}
.nav-item:nth-child(4) .dropdown-icon {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%);
  color: #0284c7;
}
.nav-item:nth-child(4) .dropdown-link:hover .dropdown-icon {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.nav-item:nth-child(5) > .dropdown-menu {
  border-top-color: #16a34a;
}
.nav-item:nth-child(5) .dropdown-link:hover {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
}
.nav-item:nth-child(5) .dropdown-icon {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(74, 222, 128, 0.12) 100%);
  color: #16a34a;
}
.nav-item:nth-child(5) .dropdown-link:hover .dropdown-icon {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.nav-item:nth-child(6) > .dropdown-menu {
  border-top-color: #8b5cf6;
}
.nav-item:nth-child(6) .dropdown-link:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
}
.nav-item:nth-child(6) .dropdown-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(192, 132, 252, 0.12) 100%);
  color: #8b5cf6;
}
.nav-item:nth-child(6) .dropdown-link:hover .dropdown-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.nav-item:nth-child(7) > .dropdown-menu {
  border-top-color: #f43f5e;
}
.nav-item:nth-child(7) .dropdown-link:hover {
  background: rgba(244, 63, 94, 0.08);
  color: #f43f5e;
}
.nav-item:nth-child(7) .dropdown-icon {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(251, 113, 133, 0.12) 100%);
  color: #f43f5e;
}
.nav-item:nth-child(7) .dropdown-link:hover .dropdown-icon {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

/* ==========================================================================
   3. Full Width Multi-Column Mega Menu (Super Colorful & Animated)
   ========================================================================== */
.mega-menu-item {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-top: 3.5px solid #ff6b00;
  box-shadow: 0 35px 70px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.9);
  border-bottom: 2px solid var(--pm-border);
  padding: 38px 0 42px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  z-index: 9999;
}

.mega-menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mega-menu-grid-5 {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr 1.25fr;
  gap: 26px;
}

/* Mega Columns */
.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-col-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #0a1128;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Unique Colorful Borders & Badges for Each Column */
.mega-col:nth-child(1) .mega-col-title {
  border-bottom-color: #1d68f2;
}
.mega-col:nth-child(1) .col-badge {
  background: linear-gradient(135deg, #1d68f2 0%, #06b6d4 100%);
  color: #fff;
}

.mega-col:nth-child(2) .mega-col-title {
  border-bottom-color: #10b981;
}
.mega-col:nth-child(2) .col-badge {
  background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
  color: #fff;
}

.mega-col:nth-child(3) .mega-col-title {
  border-bottom-color: #ff6b00;
}
.mega-col:nth-child(3) .col-badge {
  background: linear-gradient(135deg, #ff6b00 0%, #f43f5e 100%);
  color: #fff;
}

.mega-col:nth-child(4) .mega-col-title {
  border-bottom-color: #8b5cf6;
}
.mega-col:nth-child(4) .col-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
}

.col-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mega-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 550;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

/* Hover Transitions for Mega Menu Links */
.mega-col:nth-child(1) .mega-link-item:hover {
  background: rgba(29, 104, 242, 0.08);
  color: #1d68f2;
  transform: translateX(6px);
}

.mega-col:nth-child(2) .mega-link-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  transform: translateX(6px);
}

.mega-col:nth-child(3) .mega-link-item:hover {
  background: rgba(255, 107, 0, 0.08);
  color: #ff6b00;
  transform: translateX(6px);
}

.mega-col:nth-child(4) .mega-link-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
  transform: translateX(6px);
}

/* Animated Highlight Badges */
.mega-link-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mega-link-badge.hot {
  background: linear-gradient(135deg, #ff6b00 0%, #f43f5e 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
  animation: pulseBadgeHot 2s infinite;
}

@keyframes pulseBadgeHot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.mega-link-badge.top {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.mega-link-badge.pro {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
}

/* ==========================================================================
   4. Mega Promo Direct Proposal Box (Animated Rainbow Gradient Border)
   ========================================================================== */
.mega-promo-box {
  background: linear-gradient(135deg, #070e24 0%, #030712 100%);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

/* Animated Flowing Top Border */
.mega-promo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #1d68f2, #06b6d4, #ff6b00, #8b5cf6, #1d68f2);
  background-size: 300% 100%;
  animation: gradientFlowNav 4s linear infinite;
}

@keyframes gradientFlowNav {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.mega-promo-box h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-promo-box p {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   5. Mobile Nav Toggle & Sliding Drawer
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--pm-dark);
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--pm-primary-light);
  color: var(--pm-primary);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 25px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pm-border);
}

.mobile-drawer-header img {
  height: 44px;
  width: auto;
}

.close-drawer-btn {
  background: rgba(226, 232, 240, 0.6);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--pm-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-drawer-btn:hover {
  background: #ff6b00;
  color: #ffffff;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 25px;
}

.mobile-drawer-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pm-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--pm-border-light);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-links a:hover {
  background: var(--pm-primary-light);
  color: var(--pm-primary);
  transform: translateX(6px);
  padding-left: 16px;
}
