/* =========================================================================
   ANIMATED BEAM (12 Tool Cards + Center Growth Metrix Hub)
   Both sides flow towards the Center (Converging Animation)
   Left: Facebook, Instagram, Meta Ads, Google Ads, Google Business, WordPress
   Center: Growth Metrix Core Agency Hub
   Right: Photoshop, Canva, PHP, Framer, After Effects, Premiere Pro
   Brand Color: #0066FF
   ========================================================================= */

.ab-elementor-root {
  --ab-bg-card: #111112;
  --ab-border-card: rgba(255, 255, 255, 0.09);
  --ab-box-bg: #ffffff;
  --ab-box-border: #0066FF;
  --ab-box-hover-border: #0066FF;
  --ab-text-title: #000000;
  --ab-text-sub: #4b5563;
  --ab-track-color: rgba(255, 255, 255, 0.22);
  --ab-port-color: #0066FF;
  --ab-center-bg: #ffffff;
  --ab-center-border: #0066FF;
  --ab-center-glow: rgba(0, 102, 255, 0.45);

  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--ab-bg-card);
  border: 1px solid var(--ab-border-card);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 34px 24px;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-body);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Optional Light Theme: Add class 'ab-light' */
.ab-elementor-root.ab-light {
  --ab-bg-card: #f8fafc;
  --ab-border-card: #e2e8f0;
  --ab-box-bg: #ffffff;
  --ab-box-border: #0066FF;
  --ab-box-hover-border: #0066FF;
  --ab-text-title: #000000;
  --ab-text-sub: #334155;
  --ab-track-color: rgba(0, 102, 255, 0.18);
  --ab-port-color: #0066FF;
  --ab-center-bg: #ffffff;
  --ab-center-border: #0066FF;
  --ab-center-glow: rgba(0, 102, 255, 0.35);
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
}

/* Ambient radial background grid */
.ab-elementor-root::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.14), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

.ab-elementor-root.ab-light::before {
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.08), transparent 70%),
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 16px 16px;
}

/* SVG Overlay Layer */
.ab-elementor-root svg.ab-svg-layer,
svg.ab-svg-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: visible !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 3-Column Layout: Left (6) | Center (1) | Right (6) */
.ab-columns-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  min-height: 520px;
  gap: 16px;
}

.ab-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.ab-col-side {
  gap: 12px;
  width: 220px;
  flex: 0 0 220px;
}

.ab-col-center {
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 12px;
}

/* Icon Box Card */
.ab-card-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  padding: 7px 12px;
  background: var(--ab-box-bg);
  border: 1.5px solid var(--ab-box-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.25), 0 2px 6px -2px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.ab-card-box:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--ab-box-hover-border);
  box-shadow: 0 10px 24px -4px rgba(0, 102, 255, 0.35), 0 0 16px rgba(0, 102, 255, 0.3);
}

/* Direct Image Square Box */
.ab-icon-square {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid rgba(0, 102, 255, 0.15);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
  box-sizing: border-box;
}

.ab-icon-square img {
  width: 100%;
  height: 100%;
  max-width: 26px;
  max-height: 26px;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.ab-card-box:hover .ab-icon-square img {
  transform: scale(1.1);
}

/* Text details */
.ab-card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

.ab-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ab-text-title);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-card-subtitle {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ab-text-sub);
  line-height: 1.25;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}

/* Terminal Connection Ports */
.ab-col-left .ab-port {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ab-port-color);
  box-shadow: 0 0 8px var(--ab-port-color);
}

.ab-col-right .ab-port {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ab-port-color);
  box-shadow: 0 0 8px var(--ab-port-color);
}

/* Brand-Matched Connection Ports & Card Hover Glows */
#left1 .ab-port { background: #1877F2; box-shadow: 0 0 10px #1877F2; }
#left1:hover { border-color: #1877F2; box-shadow: 0 10px 24px -4px rgba(24, 119, 242, 0.45); }

#left2 .ab-port { background: #E1306C; box-shadow: 0 0 10px #E1306C; }
#left2:hover { border-color: #E1306C; box-shadow: 0 10px 24px -4px rgba(225, 48, 108, 0.45); }

#left3 .ab-port { background: #0081FB; box-shadow: 0 0 10px #0081FB; }
#left3:hover { border-color: #0081FB; box-shadow: 0 10px 24px -4px rgba(0, 129, 251, 0.45); }

#left4 .ab-port { background: #FBBC04; box-shadow: 0 0 10px #FBBC04; }
#left4:hover { border-color: #FBBC04; box-shadow: 0 10px 24px -4px rgba(251, 188, 4, 0.45); }

#left5 .ab-port { background: #34A853; box-shadow: 0 0 10px #34A853; }
#left5:hover { border-color: #34A853; box-shadow: 0 10px 24px -4px rgba(52, 168, 83, 0.45); }

#left6 .ab-port { background: #0073AA; box-shadow: 0 0 10px #0073AA; }
#left6:hover { border-color: #0073AA; box-shadow: 0 10px 24px -4px rgba(0, 115, 170, 0.45); }

#right1 .ab-port { background: #31A8FF; box-shadow: 0 0 10px #31A8FF; }
#right1:hover { border-color: #31A8FF; box-shadow: 0 10px 24px -4px rgba(49, 168, 255, 0.45); }

#right2 .ab-port { background: #00C4CC; box-shadow: 0 0 10px #00C4CC; }
#right2:hover { border-color: #00C4CC; box-shadow: 0 10px 24px -4px rgba(0, 196, 204, 0.45); }

#right3 .ab-port { background: #777BB4; box-shadow: 0 0 10px #777BB4; }
#right3:hover { border-color: #777BB4; box-shadow: 0 10px 24px -4px rgba(119, 123, 180, 0.45); }

#right4 .ab-port { background: #0055FF; box-shadow: 0 0 10px #0055FF; }
#right4:hover { border-color: #0055FF; box-shadow: 0 10px 24px -4px rgba(0, 85, 255, 0.45); }

#right5 .ab-port { background: #9999FF; box-shadow: 0 0 10px #9999FF; }
#right5:hover { border-color: #9999FF; box-shadow: 0 10px 24px -4px rgba(153, 153, 255, 0.45); }

#right6 .ab-port { background: #EA77FF; box-shadow: 0 0 10px #EA77FF; }
#right6:hover { border-color: #EA77FF; box-shadow: 0 10px 24px -4px rgba(234, 119, 255, 0.45); }

/* Center Hub */
.ab-center-hub {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: var(--ab-center-bg);
  border: 2px solid var(--ab-center-border);
  box-shadow: 0 0 35px var(--ab-center-glow), inset 0 0 15px rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ab-center-hub:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 50px var(--ab-center-glow), inset 0 0 20px rgba(0, 102, 255, 0.35);
}

.ab-center-hub img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

/* Pulsing halo around center hub */
.ab-pulse-halo {
  position: absolute;
  inset: -8px;
  border-radius: 30px;
  border: 1.5px solid rgba(0, 102, 255, 0.6);
  animation: ab-ping-anim 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes ab-ping-anim {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  80%, 100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Dotted Background Paths */
.ab-elementor-root path.ab-track-line,
path.ab-track-line {
  fill: none !important;
  stroke: var(--ab-track-color) !important;
  stroke-width: 2px !important;
  stroke-linecap: round !important;
  stroke-dasharray: 4 4 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Animated Moving Beam Paths */
.ab-elementor-root path.ab-beam-path,
path.ab-beam-path {
  fill: none !important;
  stroke-linecap: round !important;
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

/* Tablet Responsiveness (641px - 991px) */
@media (max-width: 991px) and (min-width: 641px) {
  .ab-elementor-root {
    padding: 24px 14px;
    border-radius: 20px;
  }

  .ab-columns-container {
    min-height: 480px;
    gap: 12px;
  }

  .ab-col-side {
    width: 165px;
    flex: 0 0 165px;
    gap: 10px;
  }

  .ab-card-box {
    height: 48px;
    padding: 6px 10px;
    gap: 8px;
  }

  .ab-icon-square {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 5px;
  }

  .ab-icon-square img {
    max-width: 20px;
    max-height: 20px;
  }

  .ab-card-title {
    font-size: 12px;
  }

  .ab-card-subtitle {
    display: none;
  }

  .ab-center-hub {
    width: 80px;
    height: 80px;
    border-radius: 22px;
  }

  .ab-center-hub img {
    width: 52px;
    height: 52px;
  }
}

/* Mobile Responsiveness (Phones <= 640px) */
@media (max-width: 640px) {
  .ab-elementor-root {
    padding: 18px 10px;
    border-radius: 16px;
  }

  .ab-columns-container {
    min-height: 440px;
    gap: 8px;
  }

  .ab-col-side {
    width: 50px;
    flex: 0 0 50px;
    gap: 10px;
  }

  .ab-col-center {
    padding: 0 4px;
  }

  .ab-card-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    gap: 0;
  }

  .ab-icon-square {
    width: 100%;
    height: 100%;
    min-width: 100%;
    border-radius: 12px;
    padding: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .ab-icon-square img {
    max-width: 28px;
    max-height: 28px;
  }

  .ab-card-details {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0b0f19;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 7px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    z-index: 50;
  }

  .ab-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
  }

  .ab-card-subtitle {
    display: none;
  }

  .ab-card-box:hover .ab-card-details,
  .ab-card-box:active .ab-card-details,
  .ab-card-box:focus .ab-card-details {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .ab-center-hub {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .ab-center-hub img {
    width: 48px;
    height: 48px;
  }

  .ab-pulse-halo {
    border-radius: 24px;
  }
}

/* Ultra-Compact Mobile (< 380px) */
@media (max-width: 380px) {
  .ab-elementor-root {
    padding: 14px 6px;
  }

  .ab-columns-container {
    min-height: 410px;
    gap: 4px;
  }

  .ab-col-side {
    width: 44px;
    flex: 0 0 44px;
    gap: 8px;
  }

  .ab-card-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }

  .ab-icon-square img {
    max-width: 24px;
    max-height: 24px;
  }

  .ab-center-hub {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .ab-center-hub img {
    width: 40px;
    height: 40px;
  }
}
