/* ==========================================================================
   Integral Technologists — Brand overrides
   Palette: dark-blue #0d1b35  |  blue #29B0E5  |  green #8FC23E
   Loaded after main.css to override Aivora's defaults.
   ========================================================================== */

:root,
body.ai-agency {
  /* --- Core palette ---------------------------------------------------- */
  --dark-blue:      #0d1b35;            /* page background / deep surfaces  */
  --brand-blue:     #29B0E5;            /* primary accent                   */
  --brand-green:    #8FC23E;            /* secondary accent                 */
  --brand-grad:     linear-gradient(135deg, #29B0E5 0%, #8FC23E 100%);

  /* --- Aivora variable overrides --------------------------------------- */
  --color-body:      #0d1b35;           /* was #00020f (near-black)         */
  --color-secondary: #0d1b35;           /* sticky header bg, dark surfaces  */
  --color-primary:   #29B0E5;           /* was #00ff97 (mint) → brand blue  */
}

/* Body background */
body { background-color: #0d1b35 !important; }

/* Hero section bottom padding */
section.hero { padding-bottom: 50px !important; }

/* Preloader */
.preloader { background-color: #0d1b35 !important; }

/* Animated logo mark preloader */
.preloader-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
}
.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from var(--angle),
    transparent 20%,
    rgba(41,176,229,0.9)  42%,
    rgba(143,194,62,0.9)  58%,
    transparent 80%
  );
  animation: 1.6s linear infinite rot;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
  mask:         radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
}
.preloader-mark-img {
  width: 90px;
  height: 90px;
  position: relative;
  z-index: 1;
  animation: markPulse 1.6s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.75; transform: scale(0.93); }
}

/* -----------------------------------------------------------------------
   Buttons & CTAs — gradient from brand blue to brand green
   --------------------------------------------------------------------- */
.thm-btn,
.agency-btn,
.btn-primary,
.xb-btn,
.menu-btn a,
button.thm-btn,
.form-btn,
.thm-btn:hover {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.thm-btn .arrow,
.thm-btn .text { color: #fff !important; }

/* GET STARTED header button */
.header-btn a,
.header-style--one .header-btn a {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* -----------------------------------------------------------------------
   Active / hover text accents
   --------------------------------------------------------------------- */
.sub-title,
.xb-item--sub-title,
.menu-item-has-children.active > a,
.main-menu ul li.active > a,
.main-menu ul li:hover > a,
a:hover { color: var(--brand-blue) !important; }

/* -----------------------------------------------------------------------
   Borders / dividers
   --------------------------------------------------------------------- */
.xb-border { border-color: rgba(41,176,229,0.18) !important; }
.xb-feature-item .xb-item--inner { border-color: rgba(41,176,229,0.22) !important; }

/* -----------------------------------------------------------------------
   SVG fills — replace Aivora's hardcoded mint #00ff97
   --------------------------------------------------------------------- */
.xb-icon svg rect[fill="#00ff97"],
.xb-icon svg path[fill="#00ff97"] { fill: #29B0E5 !important; }

/* -----------------------------------------------------------------------
   Service card hover
   --------------------------------------------------------------------- */
.xb-service-item.active .xb-item--inner,
.xb-service-item:hover .xb-item--inner {
  background: linear-gradient(135deg, rgba(41,176,229,0.08), rgba(143,194,62,0.06)) !important;
  border-color: rgba(41,176,229,0.35) !important;
}

/* -----------------------------------------------------------------------
   Sticky header — dark blue
   --------------------------------------------------------------------- */
.header-style--one .xb-header-area-sticky,
.is-sticky {
  background: #0d1b35 !important;
  border-bottom: 1px solid rgba(41,176,229,0.15) !important;
}

/* -----------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
/* Brand name watermark text — blue→green gradient */
.xb-footer-heading .title,
.ai-footer-heading .title {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Footer section background — dark blue */
footer,
.footer,
.xb-footer-area {
  background-color: #0d1b35 !important;
}

/* Footer bottom bar */
.xb-copyright {
  border-color: rgba(41,176,229,0.12) !important;
}

/* -----------------------------------------------------------------------
   Logo sizing — wide SVG (1214×511) with mark + wordmark
   --------------------------------------------------------------------- */
.xb-header-logo .logo1 img,
header .xb-header-logo img {
  display: block !important;
  height: 44px !important;
  width: auto !important;
}
.xb-header-logo { min-width: 160px; }

/* Header bar — top/bottom breathing room */
.header__wrap {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

#preloader .loader-logo img {
  display: block !important;
  height: 60px !important;
  width: auto !important;
}

/* -----------------------------------------------------------------------
   Trust pill — hero badge
   --------------------------------------------------------------------- */
.us-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(41,176,229,0.10);
  border: 1px solid rgba(41,176,229,0.35);
  color: #29B0E5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.us-trust-pill::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #8FC23E;
  box-shadow: 0 0 12px rgba(143,194,62,0.8);
}

/* -----------------------------------------------------------------------
   WhatsApp — pill CTA
   --------------------------------------------------------------------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.4);
  color: #fff !important;
}

/* WhatsApp floating action button */
.fab-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }

/* -----------------------------------------------------------------------
   Back-to-top — lift above WhatsApp FAB (FAB bottom:22px + height:58px)
   --------------------------------------------------------------------- */
.xb-backtotop {
  bottom: 92px !important;
}

/* -----------------------------------------------------------------------
   Nav links — add vertical breathing room
   --------------------------------------------------------------------- */
.main-menu ul > li > a {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* -----------------------------------------------------------------------
   Mega menu — dark blue background to match brand
   --------------------------------------------------------------------- */
.mega_menu_wrapper,
.main-menu ul li ul.submenu {
  background: #0d1b35 !important;
}

/* -----------------------------------------------------------------------
   Green accent distribution — balance blue vs green across the page
   --------------------------------------------------------------------- */

/* Section labels — alternate: About=green, Services=blue, Features=green */
section.about .sub-title,
section.feature .sub-title {
  color: var(--brand-green) !important;
}

/* Hero feature cards — middle card gets green border + icon tint */
.hero .xb-feature-item:nth-child(2) .xb-item--inner {
  border-color: rgba(143,194,62,0.30) !important;
}
.hero .xb-feature-item:nth-child(2) .xb-item--icon {
  background: rgba(143,194,62,0.10) !important;
}

/* Service items — even items (Brand Identity, Digital Marketing, Business
   Consultation) get green arrow circle */
.xb-service-item:nth-child(even) .xb-item--icon {
  background: rgba(143,194,62,0.10) !important;
  border-color: rgba(143,194,62,0.28) !important;
  color: #8FC23E !important;
}
.xb-service-item:nth-child(even):hover .xb-item--inner,
.xb-service-item:nth-child(even).active .xb-item--inner {
  background: linear-gradient(135deg, rgba(143,194,62,0.08), rgba(41,176,229,0.06)) !important;
  border-color: rgba(143,194,62,0.35) !important;
}

/* Why Choose Us — 2nd item in each column gets green icon */
.xb-feature-left-item .xb-feature-item2:nth-child(2) .xb-item--icon,
.xb-feature-right-item .xb-feature-item2:nth-child(2) .xb-item--icon {
  background: rgba(143,194,62,0.10) !important;
  border-color: rgba(143,194,62,0.25) !important;
}
.xb-feature-left-item .xb-feature-item2:nth-child(2) .xb-item--inner,
.xb-feature-right-item .xb-feature-item2:nth-child(2) .xb-item--inner {
  border-color: rgba(143,194,62,0.22) !important;
}

/* Stat numbers — second counter in green */
.xb-contact-item:nth-child(2) .xb-item--number,
.xb-contact-item:nth-child(2) .xb-item--number .suffix {
  color: #8FC23E !important;
}

/* Section heading accent word — "Pakistan" in the service heading */
.service .title .highlight-green { color: var(--brand-green) !important; }

/* SVG fills — also recolor some hardcoded mint to green for variety */
.xb-service-item:nth-child(even) .xb-item--icon svg path[fill="#00ff97"],
.xb-service-item:nth-child(even) .xb-item--icon svg rect[fill="#00ff97"] {
  fill: #8FC23E !important;
}

/* About section border accent */
section.about .xb-border {
  border-color: rgba(143,194,62,0.20) !important;
}

/* Contact form border — green tint to break up the all-blue bottom section */
.xb-contact-form.xb-border {
  border-color: rgba(143,194,62,0.25) !important;
}

/* -----------------------------------------------------------------------
   Rotating conic-gradient border — hero CTA + header GET STARTED
   Technique from claude.integraltechnologists.com: @property --angle
   animated via conic-gradient on border-box, brand blue → brand green
   --------------------------------------------------------------------- */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes rot {
  to { --angle: 360deg; }
}

/* Hero CTA — green fill */
.hero .thm-btn {
  --bg: #8FC23E;
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      from var(--angle),
      transparent 20%,
      rgba(41,176,229,0.9)  40%,
      rgba(143,194,62,0.9)  60%,
      transparent 80%
    ) border-box !important;
  border: 2px solid transparent !important;
  animation: 3s linear infinite rot;
}

/* Header GET STARTED — green fill + proper padding */
.header-btn a,
.header-style--one .header-btn a {
  --bg: #8FC23E;
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      from var(--angle),
      transparent 20%,
      rgba(41,176,229,0.9)  40%,
      rgba(143,194,62,0.9)  60%,
      transparent 80%
    ) border-box !important;
  border: 2px solid transparent !important;
  animation: 3s linear infinite rot;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Ensure button children stay above the overflow:hidden clip */
.hero .thm-btn .arrow,
.hero .thm-btn .text,
.hero .thm-btn span {
  position: relative;
  z-index: 1;
}

/* -----------------------------------------------------------------------
   AI Stack / How We Work section
   --------------------------------------------------------------------- */
.ai-stack-section {
  background: #0d1b35;
}

/* Orbit diagram wrapper */
.ai-orbit-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;   /* square aspect ratio */
  max-width: 460px;
  margin: 0 auto;
}

/* SVG lines layer — fills the wrapper */
.ai-orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Center hub */
.ai-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(41,176,229,0.12);
  border: 1.5px solid rgba(41,176,229,0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.ai-orbit-center span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #29B0E5;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Tool pill nodes */
.ai-tool-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: border-color 0.25s, background 0.25s;
}
.ai-tool-node:hover {
  background: rgba(41,176,229,0.10);
  border-color: rgba(41,176,229,0.35);
}
.ai-tool-node img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ai-tool-node span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.ai-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
  font-style: normal;
}

/* Mobile: stack orbit below copy */
@media (max-width: 991px) {
  .ai-orbit-wrap { max-width: 360px; }
}

/* AI stack copy text */
.ai-stack-copy .sec-title .highlight { color: var(--brand-blue); }
.ai-stack-copy p {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 20px;
}
.ai-stack-copy p.ai-stack-tools {
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.ai-stack-copy p strong { color: #fff; }

/* Tool node dot colors — per tool */
.ai-tool-node[data-tool="claude"]      .ai-dot { background: #CC785C; }
.ai-tool-node[data-tool="chatgpt"]     .ai-dot { background: #10A37F; }
.ai-tool-node[data-tool="gemini"]      .ai-dot { background: #4285F4; }
.ai-tool-node[data-tool="ghl"]         .ai-dot { background: #00B050; }
.ai-tool-node[data-tool="perplexity"]  .ai-dot { background: #20808D; }
.ai-tool-node[data-tool="make"]        .ai-dot { background: #6D00CC; }
.ai-tool-node[data-tool="zapier"]      .ai-dot { background: #FF4A00; }
.ai-tool-node[data-tool="midjourney"]  .ai-dot { background: #888; }
