/* IntEdge redesign: logo, About story, Stats, Footer, section backgrounds
   Palette rule: each section uses only two colours (navy + cyan, or white + blue). */

/* ---------------- LOGO: white on top of hero, natural colour after scroll ---------------- */
.header .logo img { transition: filter .4s ease; filter: brightness(0) invert(1); }
.scrolled .header .logo img { filter: none; }

/* ---------------- STATS: "IntEdge in Numbers" ---------------- */
.ie-stats { position: relative; overflow: hidden; background: #071633; }
.ie-stats > img { opacity: .22; mix-blend-mode: luminosity; }
.ie-stats::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(800px 420px at 90% 0, rgba(34,197,232,.30), transparent 60%),
    radial-gradient(700px 420px at 0 100%, rgba(33,87,161,.55), transparent 60%),
    linear-gradient(180deg, rgba(7,22,51,.9), rgba(5,15,38,.95));
}
.ie-stats::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%);
}
.ie-stats .container { z-index: 2; }
.ie-stats .section-title h2 { color: #fff; }

.ie-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ie-stat {
  position: relative; overflow: hidden; text-align: center; padding: 38px 20px 32px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(34,197,232,.22); backdrop-filter: blur(8px);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.ie-stat::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, var(--ie-cyan), transparent); }
.ie-stat:hover { transform: translateY(-8px); border-color: var(--ie-cyan); box-shadow: 0 26px 50px rgba(0,0,0,.4), 0 0 40px rgba(34,197,232,.18); }
.ie-stat-ico {
  display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 18px; font-size: 1.7rem;
  color: #071633; background: linear-gradient(135deg, #22c5e8, #7be3ff); box-shadow: 0 10px 26px rgba(34,197,232,.35);
}
.ie-stat-num { display: flex; justify-content: center; align-items: baseline; font-family: var(--heading-font); font-weight: 700; line-height: 1; }
.ie-stat-num .purecounter { font-size: clamp(2.6rem, 4.2vw, 3.6rem); color: #fff; }
.ie-stat-num b { font-size: 1.8rem; color: var(--ie-cyan); margin-left: 2px; }
.ie-stat p { margin: 12px 0 0; color: #a9bad6; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.ie-stats-years {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px; margin-top: 44px;
  padding: 18px 28px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  width: fit-content; margin-left: auto; margin-right: auto; color: #c3d0e6; font-size: .92rem;
}
.ie-stats-years b { color: var(--ie-cyan); font-family: var(--heading-font); font-size: 1.15rem; margin-right: 6px; }
.ie-stats-years i { width: 5px; height: 5px; border-radius: 50%; background: var(--ie-cyan); }

@media (max-width: 991px) { .ie-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) {
  .ie-stats-grid { gap: 14px; } .ie-stat { padding: 28px 12px 24px; }
  .ie-stats-years { border-radius: 22px; } .ie-stats-years i { display: none; }
}

/* ---------------- FOOTER ---------------- */
.ie-footer {
  position: relative; overflow: hidden;
  background: radial-gradient(700px 400px at 100% 0, rgba(34,197,232,.14), transparent 60%),
              radial-gradient(600px 400px at 0 100%, rgba(33,87,161,.35), transparent 60%), #071633;
}
.ie-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ie-cyan), var(--ie-blue), transparent); }
.ie-footer-brand .logo-box { background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.ie-footer h4::after { width: 36px; background: linear-gradient(90deg, var(--ie-cyan), transparent); }
.ie-footer ul li a { display: inline-block; transition: color .2s, transform .2s; }
.ie-footer ul li a::before { content: "\203A"; color: var(--ie-cyan); margin-right: 8px; opacity: 0; margin-left: -12px; transition: .2s; }
.ie-footer ul li a:hover { transform: translateX(6px); }
.ie-footer ul li a:hover::before { opacity: 1; margin-left: 0; }
.ie-social a { background: rgba(255,255,255,.05); }
.ie-social a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(34,197,232,.35); }
.ie-footer-bottom { background: rgba(4,13,32,.7); border-top: 1px solid rgba(255,255,255,.07); }
@media (prefers-reduced-motion: reduce) { .ie-stat, .ie-footer ul li a { transition: none; } }

/* =================== V2 =================== */
/* Section colours: only navy or white, alternating */
#about.ie-section, #managed-services.ie-section, #Partners.clients, #contact.ie-contact { background: #fff; }
#services.services {
  background: radial-gradient(800px 420px at 90% 0, rgba(34,197,232,.18), transparent 60%), linear-gradient(180deg, #071633, #050f26);
}
#services .section-title h2 { color: #fff; }
#services .section-title p { color: #a9bad6; }
main > section.section + section.section { border-top: 0; }

/* Stats: compact cards + smaller text */
.ie-stats-grid { gap: 16px; max-width: 980px; margin: 0 auto; }
.ie-stat { padding: 24px 14px 20px; border-radius: 18px; }
.ie-stat-ico { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; font-size: 1.2rem; }
.ie-stat-num .purecounter { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.ie-stat-num b { font-size: 1.1rem; }
.ie-stat p { margin-top: 8px; font-size: .68rem; letter-spacing: .14em; }
.ie-stats-years { margin-top: 28px; padding: 12px 22px; font-size: .8rem; gap: 10px 20px; }
.ie-stats-years b { font-size: .95rem; }
main > section.stats { padding: 72px 0; }
.ie-stats .section-title { padding-bottom: 32px; }
@media (max-width: 991px) { .ie-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.ie-footer-top { padding: 72px 12px 48px; }
/* =================== V3 =================== */

/* ---------------- ABOUT: overview panel + content ---------------- */
.ie-about-pro {
  display: grid; grid-template-columns: 5fr 7fr; overflow: hidden; border-radius: 28px;
  background: #fff; border: 1px solid var(--ie-line); box-shadow: 0 30px 70px rgba(7,22,51,.12);
}
.ie-about-panel {
  position: relative; overflow: hidden; padding: 52px 46px; color: #fff;
  background:
    radial-gradient(420px 320px at 100% 0, rgba(34,197,232,.28), transparent 65%),
    radial-gradient(380px 300px at 0 100%, rgba(33,87,161,.55), transparent 65%), var(--ie-navy);
}
.ie-about-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%);
}
.ie-about-panel > * { position: relative; }
.ie-about-panel h3 { color: #fff; font-family: var(--heading-font); font-weight: 700; font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.12; margin: 0; }

.ie-route { display: flex; align-items: center; gap: 14px; margin: 30px 0 38px; }
.ie-route .pin { display: flex; flex-direction: column; gap: 2px; font-family: var(--heading-font); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.ie-route .pin i { color: var(--ie-cyan); font-size: 1.25rem; margin-bottom: 4px; }
.ie-route .pin small { color: #8fa6c8; font-family: var(--default-font); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.ie-route .line { flex: 1; height: 2px; margin-top: -8px; position: relative; background: repeating-linear-gradient(90deg, var(--ie-cyan) 0 7px, transparent 7px 14px); }
.ie-route .line::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-top: 2px solid var(--ie-cyan); border-right: 2px solid var(--ie-cyan); transform: rotate(45deg); }

.ie-panel-label { display: block; padding-top: 28px; margin-bottom: 22px; border-top: 1px solid rgba(255,255,255,.14); color: var(--ie-cyan); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ie-track { list-style: none; margin: 0; padding: 0; position: relative; }
.ie-track::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--ie-cyan), rgba(34,197,232,.15)); }
.ie-track li { position: relative; padding: 0 0 26px 38px; }
.ie-track li:last-child { padding-bottom: 0; }
.ie-track li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ie-cyan); box-shadow: 0 0 0 5px rgba(34,197,232,.2); }
.ie-track li.now::before { background: var(--ie-navy); border: 2px solid var(--ie-cyan); animation: iePulse 2.8s ease-in-out infinite; }
.ie-track b { display: block; color: #fff; font-family: var(--heading-font); font-size: 1.6rem; line-height: 1.15; margin-bottom: 4px; }
.ie-track li.now b { font-size: 1.1rem; letter-spacing: .1em; padding-top: 4px; }
.ie-track span { display: block; color: #b8c6de; font-size: .95rem; line-height: 1.55; }

.ie-about-body { padding: 52px 52px 40px; display: flex; flex-direction: column; justify-content: center; }
.ie-about-lead { margin: 0 0 34px; font-size: 1.1rem; line-height: 1.85; color: #3f4f69; }
.ie-pillar { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--ie-line); }
.ie-pillar .ie-ico { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--ie-navy); color: var(--ie-cyan); transition: background .25s, color .25s; }
.ie-pillar:hover .ie-ico { background: var(--ie-cyan); color: var(--ie-navy); }
.ie-pillar h4 { margin: 0 0 6px; color: var(--ie-ink); font-family: var(--heading-font); font-size: 1.08rem; font-weight: 700; }
.ie-pillar p { margin: 0; color: var(--ie-text); font-size: .94rem; line-height: 1.75; }

@media (max-width: 991px) {
  .ie-about-pro { grid-template-columns: 1fr; }
  .ie-about-panel { padding: 36px 26px; }
  .ie-about-body { padding: 32px 26px 16px; }
}

/* ---------------- SERVICE CARDS: card = opposite of section background ---------------- */
/* Two icon colours only (navy + cyan), swapped according to the card background. */
.ie-pro-card .ico { background: var(--ie-navy); color: var(--ie-cyan); transition: background .25s, color .25s; }

/* Our Services: navy section -> white cards (navy tile, cyan icon) */
#services .ie-pro-card { background: #fff; border-color: transparent; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
#services .ie-pro-card:hover { box-shadow: 0 26px 54px rgba(0,0,0,.4), 0 0 0 1px var(--ie-cyan); }

/* Professional & Managed Services: white section -> navy cards (cyan tile, navy icon) */
#managed-services .ie-pro-card {
  background: var(--ie-navy); border-color: rgba(34,197,232,.18); box-shadow: 0 18px 40px rgba(7,22,51,.18);
  background-image: radial-gradient(300px 220px at 100% 0, rgba(34,197,232,.14), transparent 65%);
}
#managed-services .ie-pro-card:hover { box-shadow: 0 26px 54px rgba(7,22,51,.32), 0 0 0 1px var(--ie-cyan); }
#managed-services .ie-pro-card .ico { background: var(--ie-cyan); color: var(--ie-navy); }
#managed-services .ie-pro-card h3 { color: #fff; }
#managed-services .ie-pro-card p { color: #b8c6de; }
#managed-services .ie-pro-card .more { color: var(--ie-cyan); }
