/* ===============================================
   MEGA MENU — Routa Digital
   Futuristic full-page glassmorphism navigation
   =============================================== */

/* Nav link with dropdown trigger */
.nav-link.has-mega {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-link.has-mega .chevron {
  font-size: 10px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.has-mega.open .chevron {
  transform: rotate(180deg);
}

/* ── Keyframes ── */
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes megaFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sidebarShine {
  0%   { left: -100%; }
  100% { left: 200%; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

@keyframes gradientGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gridFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-4px, -6px); }
}

@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50%      { filter: drop-shadow(0 0 8px rgba(37, 69, 252, 0.5)); }
}

/* ── Overlay Wrapper ── */
.mega-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 997;
  pointer-events: none;
  --mega-top: 86px;
}

.mega-menu-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 48, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mega-menu-wrapper.open {
  pointer-events: auto;
}

.mega-menu-wrapper.open::before {
  opacity: 1;
  animation: overlayIn 0.45s ease forwards;
}

/* ── Main Mega Panel ── */
.mega-menu {
  position: absolute;
  top: var(--mega-top);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--mega-top));
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(244,247,255,0.92)),
    radial-gradient(circle at 5% 10%, rgba(37,69,252,0.1), transparent 35%),
    radial-gradient(circle at 95% 15%, rgba(255,136,6,0.08), transparent 40%);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.15) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px) scale(0.98);
  pointer-events: none;
  overflow: hidden;
  font-family: var(--font), "Red Hat Display", sans-serif;
  transition: none;
}

/* Gradient top bar */
.mega-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2545FC, #ff8806, #ffdf06, #2545FC);
  background-size: 300% 100%;
  animation: gradientGlow 4s ease infinite;
  z-index: 5;
}

/* Animated ambient glow */
.mega-menu::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(37,69,252,0.06), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,136,6,0.05), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255,223,6,0.04), transparent 35%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: megaFadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mega-menu-wrapper.open ~ .sticky-sidebar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mega-menu.closing {
  animation: megaFadeOut 0.45s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.main-header.scrolled ~ .mega-menu-wrapper .mega-menu {
  --mega-top: 64px;
}

/* Hover bridge */
.mega-hover-bridge {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

/* ── Inner layout ── */
.mega-menu-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100%;
  padding: 24px 20px 26px;
  display: grid;
  grid-template-columns: 300px 1fr 1fr 340px;
  gap: 20px;
  align-items: start;
}

/* Legacy columns (fallback before JS renders shell) */
.mega-menu-inner .mega-col {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 18px 14px;
}

.mega-col h5 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2545FC;
  margin: 0 0 12px;
  padding: 0 6px 10px;
  border-bottom: 1px solid rgba(37,69,252,0.16);
}

.mega-col a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  margin-bottom: 3px;
  transition: all 0.25s ease;
}

.mega-col a:hover {
  background: linear-gradient(90deg, rgba(37,69,252,0.1), rgba(37,69,252,0.04));
  color: #2545FC;
  transform: translateX(4px);
}

.mega-col a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* Right visual panel (legacy) */
.mega-visual {
  background:
    linear-gradient(135deg, rgba(30,54,216,0.95), rgba(37,69,252,0.95)),
    radial-gradient(circle at 18% 24%, rgba(255,223,6,0.22), transparent 55%),
    radial-gradient(circle at 82% 74%, rgba(255,136,6,0.22), transparent 55%);
  border-radius: 18px;
  padding: 26px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 14px 36px rgba(37,69,252,0.32);
}

.mega-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,223,6,0.2), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,136,6,0.15), transparent 50%);
  pointer-events: none;
}

.mega-visual > * { position: relative; z-index: 1; }

.mega-visual h4 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 12px;
}

.mega-visual p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 24px;
}

.mega-visual .mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(90deg, #ff8806, #ffdf06);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 8px 20px rgba(255,136,6,0.35);
}

.mega-visual .mega-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255,223,6,0.5);
}

/* ── all icon blue ── */
/* ============================= */
/* BLUE ICON FIX (SAFE OVERRIDE) */
/* ============================= */

/* Category icons (left sidebar) */
.mega-menu .mega-cat-icon {
  filter: brightness(0) saturate(100%)
    invert(26%) sepia(94%) saturate(7470%)
    hue-rotate(225deg) brightness(100%) contrast(105%);
  transition: all 0.3s ease;
}

/* Service icons (grid items) */
.mega-menu .mega-services-grid img {
  filter: brightness(0) saturate(100%)
    invert(26%) sepia(94%) saturate(7470%)
    hue-rotate(225deg) brightness(100%) contrast(105%);
  transition: all 0.3s ease;
}

/* FontAwesome icons (if any used) */
.mega-menu .mega-shell i {
  color: #2545FC;
}

/* Hover effect */
.mega-menu .mega-cat-btn:hover .mega-cat-icon,
.mega-menu .mega-services-grid img:hover {
  filter: brightness(0) saturate(100%)
    invert(26%) sepia(94%) saturate(7470%)
    hue-rotate(225deg) brightness(115%) contrast(110%);
  transform: scale(1.05);
}

/* Active category */
.mega-menu .mega-cat-btn.active .mega-cat-icon {
  filter: brightness(0) saturate(100%)
    invert(26%) sepia(94%) saturate(7470%)
    hue-rotate(225deg) brightness(120%) contrast(110%);
}
/* ================= RESPONSIVE: MOBILE ================= */
@media (max-width: 992px) {
  .mega-menu-wrapper {
    display: none;
  }

  .nav-link.has-mega {
    display: none !important;
  }

  .nav-link.mobile-case-source {
    display: inline-flex !important;
  }

  .mobile-mega-section {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
    max-width: 100%;
    margin: 0;
    order: -1;
  }

  .mobile-mega-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
  }

  .mobile-mega-toggle .chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .mobile-mega-toggle.open .chevron {
    transform: rotate(180deg);
  }

  .mobile-mega-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .mobile-mega-content.open {
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 4px 0 8px;
  }

  .mobile-mega-group {
    padding: 6px 0;
  }

  .mobile-mega-group h5 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffdf06;
    margin-bottom: 6px;
  }

  .mobile-mega-group a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.94);
    text-decoration: none;
    padding: 7px 0;
    transition: color 0.2s;
  }

  .mobile-mega-group a:hover {
    color: #ffdf06;
  }

  .mobile-case-section {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
    max-width: 100%;
    margin: 0;
    order: -1;
  }

  .mobile-case-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
  }

  .mobile-case-toggle .chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .mobile-case-toggle.open .chevron {
    transform: rotate(180deg);
  }

  .mobile-case-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .mobile-case-content.open {
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 4px 0 8px;
  }

  .mobile-case-group {
    padding: 6px 0;
  }

  .mobile-case-group h5 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffdf06;
    margin-bottom: 6px;
  }

  .mobile-case-group a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.94);
    text-decoration: none;
    padding: 7px 0;
    transition: color 0.2s;
  }

  .mobile-case-group a:hover {
    color: #ffdf06;
  }

  .mobile-hire-section,
  .mobile-product-section {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
    max-width: 100%;
    margin: 0;
    order: -1;
  }

  .mobile-hire-toggle,
  .mobile-product-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
  }

  .mobile-hire-toggle .chevron,
  .mobile-product-toggle .chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .mobile-hire-toggle.open .chevron,
  .mobile-product-toggle.open .chevron {
    transform: rotate(180deg);
  }

  .mobile-hire-content,
  .mobile-product-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .mobile-hire-content.open,
  .mobile-product-content.open {
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 4px 0 8px;
  }

  .mobile-hire-group,
  .mobile-product-group {
    padding: 6px 0;
  }

  .mobile-hire-group h5,
  .mobile-product-group h5 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffdf06;
    margin-bottom: 6px;
  }

  .mobile-hire-group a,
  .mobile-product-group a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.94);
    text-decoration: none;
    padding: 7px 0;
    transition: color 0.2s;
  }

  .mobile-hire-group a:hover,
  .mobile-product-group a:hover {
    color: #ffdf06;
  }
}

@media (min-width: 993px) {
  .mobile-mega-section,
  .mobile-case-section,
  .mobile-hire-section,
  .mobile-product-section {
    display: none;
  }
}

/* ================= FULL PAGE FUTURISTIC DESKTOP MEGA MENU ================= */
@media (min-width: 993px) {
  .mega-menu-inner {
    max-width: none;
    padding: 0;
    min-height: calc(100dvh - var(--mega-top));
    display: block;
    font-family: var(--font), "Red Hat Display", sans-serif;
  }

  /* ── Shell grid ── */
  .mega-shell {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 0;
    min-height: calc(100dvh - var(--mega-top));
    overflow: hidden;
  }

  /* ── LEFT SIDEBAR (Category Rail) ── */
  .mega-sidebar {
    background:
      linear-gradient(180deg, rgba(236,240,252,0.98), rgba(226,232,250,0.96));
    border-right: 1px solid rgba(148,163,184,0.2);
    padding: 28px 18px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  /* Subtle animated gradient on sidebar */
  .mega-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(circle at 30% 20%, rgba(37,69,252,0.06), transparent 50%),
      radial-gradient(circle at 70% 80%, rgba(255,136,6,0.04), transparent 50%);
    pointer-events: none;
  }

  .mega-side-head {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2545FC;
    margin-bottom: 16px;
    position: relative;
    padding-left: 2px;
  }

  .mega-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Category pill buttons */
  .mega-cat-btn {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 13px 14px;
    border-radius: 12px;
    color: #344254;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .mega-cat-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #111;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--gradient-cta);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(255, 136, 6, 0.35);
  }

  /* Shine hover effect */
  .mega-cat-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.4),
      transparent
    );
    transition: none;
    pointer-events: none;
  }

  .mega-cat-btn:hover::after {
    animation: sidebarShine 0.6s ease forwards;
  }

  .mega-cat-btn:hover {
    background: rgba(37,69,252,0.08);
    color: #2545FC;
    transform: translateX(4px);
  }

  .mega-cat-btn:hover i {
    color: #111;
    animation: iconGlow 1.5s ease infinite;
    box-shadow: 0 16px 34px rgba(255, 136, 6, 0.45);
  }

  /* Active state */
  .mega-cat-btn.active {
    background: linear-gradient(90deg, rgba(37,69,252,0.13), rgba(37,69,252,0.04));
    color: #2545FC;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #2545FC;
  }

  .mega-cat-btn.active i {
    color: #111;
    filter: none;
    box-shadow: 0 16px 34px rgba(255, 136, 6, 0.45);
  }

  .mega-side-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,69,252,0.2), transparent);
    margin: 20px 0;
  }

  .mega-hire-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .mega-hire-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #111;
    font-size: 13px;
    border-radius: 8px;
    background: var(--gradient-cta);
    box-shadow: 0 12px 30px rgba(255, 136, 6, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .mega-hire-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    pointer-events: none;
  }

  .mega-hire-link:hover {
    background: rgba(37,69,252,0.08);
    color: #2545FC;
    transform: translateX(4px);
  }

  .mega-hire-link:hover i {
    color: #111;
    box-shadow: 0 16px 34px rgba(255, 136, 6, 0.45);
  }

  .mega-hire-link:hover::after {
    animation: sidebarShine 0.6s ease forwards;
  }

  /* ── MAIN CONTENT AREA ── */
  .mega-main {
    background: rgba(255,255,255,0.97);
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--mega-top));
    overflow: hidden;
    position: relative;
  }

  .mega-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px 16px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
  }

  .mega-main-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #2545FC;
    /* background: var(--gradient-cta); */
    line-height: 1.08;
    letter-spacing: -0.5px;

     /* -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;  */
  }

  .mega-view-all {
    color: #2545FC;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 1px solid rgba(37,69,252,0.15);
  }

  .mega-view-all:hover {
    background: rgba(37,69,252,0.06);
    color: #1d34c7;
    transform: translateX(2px);
  }

  /* ── Service Cards Grid ── */

  .mega-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 20px 32px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-content: start;
  }

  .mega-service-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: #0f172a;
    padding: 16px 14px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    opacity: 0;
    transform: translateY(18px);
  }

  .mega-service-item.animate-in {
    animation: cardFadeUp 0.4s ease forwards;
  }

  .mega-service-item:hover {
    background: rgba(37,69,252,0.04);
    border-color: rgba(37,69,252,0.12);
    transform: translateY(-3px);
    box-shadow:
      0 8px 24px rgba(37,69,252,0.1),
      0 0 0 1px rgba(37,69,252,0.06);
  }

  /* .mega-service-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--gradient-cta);
    border-radius: 10px;
    border: none;
    box-shadow: 0 12px 30px rgba(255, 136, 6, 0.35);
    transition: all 0.3s ease;
  } */

   
  /* .mega-service-icon img {
  width: 25px;   
  height: 25px;  
  object-fit: contain;
 
} */


/* Icon image */


/* =========================
   ICON (ALWAYS POPPED OUT)
========================= */
.mega-service-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;

  /* ALWAYS 3D (no hover needed) */
  /* transform: translateZ(28px) scale(1.05); */

  /* glow + depth */
  /* filter: 
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));

  transition: transform 0.3s ease, filter 0.3s ease; */
}


/* =========================
   SOFT GLOW BACKGROUND
========================= */
.mega-service-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;

  /* glow aura */
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );

  opacity: 0.6;
  z-index: 0;
}


/* =========================
   LIGHT REFLECTION
========================= */
.mega-service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.25),
    transparent 40%
  );

  opacity: 0.5;
  pointer-events: none;

  transform: translateZ(10px);
}





/* .mega-cat-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;

} */
 /* =========================
   CATEGORY ICON (ALWAYS 3D)
========================= */
.mega-cat-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;

  /* ALWAYS POP OUT */
  transform: translateZ(22px) scale(1.05);

  /* crisp depth + soft glow */
  filter: 
    drop-shadow(0 5px 6px rgba(0, 0, 0, 0.25))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.35));

  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform;

  /* subtle floating animation */
  animation: catFloat3D 3s ease-in-out infinite;
}


/* =========================
   FLOATING MOTION (ALIVE UI)
========================= */
@keyframes catFloat3D {
  0%   { transform: translateZ(22px) translateY(0px) scale(1.05); }
  50%  { transform: translateZ(26px) translateY(-2px) scale(1.08); }
  100% { transform: translateZ(22px) translateY(0px) scale(1.05); }
}


/* =========================
   OPTIONAL HOVER BOOST
========================= */
.mega-cat-icon:hover {
  transform: translateZ(30px) scale(1.12);

  filter: 
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

  /* .mega-service-item:hover .mega-service-icon {
    background: var(--gradient-cta);
    box-shadow: 0 16px 34px rgba(255, 136, 6, 0.45);
    transform: scale(1.05);
  } */

  .mega-service-item:hover .mega-service-icon i {
    animation: iconGlow 1.5s ease infinite;
  }

  .mega-service-item.case-study .mega-service-icon {
    width: 56px;
    height: 56px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .mega-service-item.case-study .mega-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .mega-service-item.case-study:hover .mega-service-icon {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .mega-service-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .mega-service-body strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.3px;
    transition: color 0.2s;
  }

  .mega-service-item:hover .mega-service-body strong {
    color: #2545FC;
  }

  .mega-service-body small {
    font-size: 13px;
    color: #667085;
    line-height: 1.45;
  }

  
/* .logo-card {
  width: 84px;
  height: 54px;
  background:var(--gradient-cta);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #f2f2f2;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} */
.logo-card {
  width: 84px;
  height: 54px;
  /* background: var(--gradient-cta); */
  background: white;
  border-radius: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4px; /* reduced so logo gets more space */
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

  /* ── Footer ── */
  .mega-main-footer {
    border-top: 1px solid rgba(148,163,184,0.2);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: rgba(248,250,255,0.95);
    font-size: 13px;
    color: #334155;
  }

  .mega-main-footer a {
    color: #2545FC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }

  .mega-main-footer a:hover {
    text-decoration: underline;
  }

  /* ── RIGHT VISUAL PANEL ── */
  .mega-right-panel {
    background:
      linear-gradient(150deg, #1a2dd4 0%, #2545FC 40%, #1e38c9 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 26px;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  /* AI grid overlay */
  .mega-right-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: gridFloat 8s ease-in-out infinite;
    pointer-events: none;
  }

  /* Ambient glows */
  .mega-right-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 25% 20%, rgba(255,223,6,0.2), transparent 45%),
      radial-gradient(circle at 75% 75%, rgba(255,136,6,0.18), transparent 45%),
      radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
  }

  .mega-right-panel > * {
    position: relative;
    z-index: 2;
  }

  .mega-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mega-right-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    width: fit-content;
    backdrop-filter: blur(8px);
  }

  .mega-right-badge i {
    font-size: 10px;
    color: #ffdf06;
  }

  .mega-right-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
  }

  .mega-right-desc {
    font-size: 14px;
    line-height: 1.65;
    opacity: 0.88;
    margin: 0 0 28px;
  }

  .mega-right-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
  }

  .mega-right-stat {
    text-align: center;
  }

  .mega-right-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #ffdf06;
    line-height: 1;
    margin-bottom: 4px;
  }

  .mega-right-stat-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mega-right-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(90deg, #ff8806, #ffdf06);
    color: #111;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    box-shadow:
      0 8px 24px rgba(255,136,6,0.35),
      0 0 0 0 rgba(255,223,6,0);
    position: relative;
    overflow: hidden;
  }

  .mega-right-cta::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff8806, #ffdf06, #ff8806);
    background-size: 200% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .mega-right-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
      0 16px 40px rgba(255,136,6,0.45),
      0 0 30px rgba(255,223,6,0.3);
  }

  .mega-right-cta:hover::before {
    opacity: 1;
    animation: gradientGlow 2s ease infinite;
  }
}

/* ── Tablet tweaks ── */
@media (min-width: 993px) and (max-width: 1380px) {
  .mega-shell {
    grid-template-columns: 240px 1fr 280px;
  }

  .mega-main-title {
    font-size: 28px;
  }

  .mega-services-grid {
    gap: 8px 16px;
  }

  .mega-service-body strong {
    font-size: 15px;
  }

  .mega-service-body small {
    font-size: 12px;
  }

  .mega-right-title {
    font-size: 24px;
  }
}


.mega-right-features {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-right-features li {
  display: flex;
  align-items: center;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.mega-right-features .dot {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gradient-cta);
  flex-shrink: 0;
}