/* Meta IT Global Solutions — static site custom CSS
   (component classes & effects layered on top of Tailwind CDN utilities) */

:root {
  --royal: #0b5fff;
  --navy: #071a3d;
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: #071a3d;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Poppins", sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection {
  background-color: rgba(11, 95, 255, 0.2);
  color: #071a3d;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f5f7fa; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0b5fff, #0039ad);
  border-radius: 999px;
  border: 2px solid #f5f7fa;
}

/* ---- Container helper ---- */
.container-wide {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

/* ---- Eyebrow chips ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 95, 255, 0.2);
  background: rgba(11, 95, 255, 0.05);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0b5fff;
}
.eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c2d8ff;
  backdrop-filter: blur(8px);
}
.eyebrow .dot, .eyebrow-light .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: currentColor;
}

/* ---- Gradients ---- */
.text-gradient {
  background-image: linear-gradient(120deg, #2e78ff, #0b5fff 50%, #0039ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-light {
  background-image: linear-gradient(120deg, #ffffff 0%, #8fb6ff 60%, #5c93ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Glass ---- */
.glass {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  height: 2.75rem;
  padding-inline: 1.5rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-lg { height: 3rem; padding-inline: 2rem; font-size: 1rem; }
.btn-sm { height: 2.25rem; padding-inline: 1rem; font-size: 0.75rem; }

.btn-primary {
  background: linear-gradient(to right, #0b5fff, #0039ad);
  color: #fff;
  box-shadow: 0 0 40px -10px rgba(11, 95, 255, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 0 80px -20px rgba(11, 95, 255, 0.55);
  transform: translateY(-2px);
}
.btn-white { background: #fff; color: #071a3d; box-shadow: 0 10px 40px -15px rgba(7, 26, 61, 0.25); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -25px rgba(7, 26, 61, 0.35); }

/* High-conversion CTA accent — brand amber/gold */
.btn-cta {
  background: linear-gradient(to right, #f59e0b, #f97316);
  color: #1a1206;
  box-shadow: 0 10px 40px -12px rgba(245, 158, 11, 0.55);
}
.btn-cta:hover {
  box-shadow: 0 18px 60px -18px rgba(245, 158, 11, 0.7);
  transform: translateY(-2px);
}
.btn-light {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(7, 26, 61, 0.15);
  background: #fff;
  color: #071a3d;
}
.btn-outline:hover { border-color: rgba(11, 95, 255, 0.4); color: #0b5fff; transform: translateY(-2px); }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn:hover::after { opacity: 1; }

/* ---- Animated moving-line border (service cards) ---- */
.anim-border {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;           /* base ring colour (slate-200) */
}
.anim-border::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250%;
  aspect-ratio: 1;               /* square big enough to cover the card diagonal */
  translate: -50% -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 220deg,
    rgba(255, 80, 80, 0.9) 280deg,
    #ff0000 330deg,
    rgba(255, 80, 80, 0.9) 350deg,
    transparent 360deg
  );
  animation: border-rotate 4s linear infinite;
  pointer-events: none;
}
@keyframes border-rotate {
  to { transform: rotate(1turn); }
}
@media (prefers-reduced-motion: reduce) {
  .anim-border::before { animation: none; }
}

/* ---- WhatsApp floating button pulse (box-shadow, no layout overflow) ---- */
.wa-fab { animation: wa-pulse 2.2s ease-out infinite; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } }

/* ---- Shine sweep (Why-choose cards) ---- */
.fx-shine { position: relative; overflow: hidden; }
.fx-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(11, 95, 255, 0.14) 50%, transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: shine-sweep 3.6s ease-in-out infinite;
}
@keyframes shine-sweep {
  0% { left: -160%; }
  55%, 100% { left: 160%; }
}

/* ---- Pulsing glow border (Industries cards) ---- */
.fx-glow { animation: glow-pulse 2.8s ease-in-out infinite; }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(11, 95, 255, 0.12), 0 8px 26px -14px rgba(11, 95, 255, 0.25); }
  50%      { box-shadow: 0 0 0 1px rgba(11, 95, 255, 0.55), 0 14px 40px -10px rgba(11, 95, 255, 0.5); }
}

/* ---- Gentle float bob (reusable) ---- */
.fx-float { animation: card-float 4.5s ease-in-out infinite; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-shine::after, .fx-glow, .fx-float { animation: none; }
}

/* ---- Photo hero (page headers with CMS background photo) ---- */
.photo-hero {
  background-size: cover;
  background-position: center;
}
.photo-hero.has-bg-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 61, 0.88) 0%, rgba(7, 26, 61, 0.72) 50%, rgba(7, 26, 61, 0.9) 100%);
  z-index: 0;
}

/* ---- Decorative ---- */
.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  background: rgba(11, 95, 255, 0.3);
}
.glow-orb.white { background: rgba(255, 255, 255, 0.2); }

.mask-fade-x {
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(48px); }
[data-reveal="right"] { transform: translateX(-48px); }
[data-reveal="zoom"] { transform: scale(0.9); }
[data-reveal="down"] { transform: translateY(-40px); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(to right, #2e78ff, #0b5fff, #0039ad);
  box-shadow: 0 0 40px -10px rgba(11, 95, 255, 0.45);
  z-index: 60;
}

/* ---- Cursor glow ---- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(11, 95, 255, 0.3);
  mix-blend-mode: screen;
  filter: blur(6px);
  pointer-events: none;
  z-index: 55;
  transform: translate(-100px, -100px);
  transition: transform 0.12s ease-out;
}
@media (hover: none) { #cursor-glow { display: none; } }

/* ---- Accordion ---- */
.acc-item .acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-item .acc-body > div { overflow: hidden; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-icon { transform: rotate(45deg); background: #0b5fff; color: #fff; }

/* ---- Card hover lift utility ---- */
.lift { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s; }
.lift:hover { transform: translateY(-6px); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Hero animated card stack (adapted from Uiverse by ilkhoeri)
   ============================================================ */
.wrap_card {
  position: relative;
  overflow: visible;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  --w-card: 285px;
  --h-card: 390px;
  --rotate-card: 15deg;
  --insetX-card: 48px;
  --t-card: calc(var(--insetX-card) * 1.25);
  --w-wrap-card: calc(var(--w-card) + calc(calc(var(--w-card) / 2) * 2));
  width: var(--w-wrap-card);
  max-width: 100%;
  height: var(--h-card);
}
@media (max-width: 480px) {
  .wrap_card {
    --w-card: 165px;
    --h-card: 230px;
    --insetX-card: 28px;
  }
}
@media (min-width: 481px) and (max-width: 1023px) {
  .wrap_card {
    --w-card: 220px;
    --h-card: 300px;
    --insetX-card: 38px;
  }
}
.wrap_card .content {
  background-color: #ffffff50;
  overflow: hidden;
  position: relative;
  width: calc(100% - calc(var(--pd) * 2));
  height: calc(100% - calc(var(--pd) * 2));
  border-radius: calc(var(--round) - var(--pd));
}
.wrap_card .content > span {
  font-size: 300px;
  font-weight: 800;
  line-height: 0.75;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 50% 0 0 50%;
  transform: translate(-50%, -50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #ffffff55;
  color: transparent;
  opacity: 0;
  background-image: linear-gradient(-45deg, #ffffff25 0%, #ffffffac 100%);
  animation: card-opacity 0s cubic-bezier(1, 0, 0, 1) forwards var(--delay) reverse;
}
.wrap_card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: none;
  z-index: 3;
}
.wrap_card .card.has-img > .content > svg,
.wrap_card .card.has-img > .content > span {
  opacity: 0 !important;
}
.wrap_card .content > svg {
  height: 60px;
  width: 60px;
  position: absolute;
  inset: 50% 0 0 50%;
  opacity: 1;
  color: #fff;
  animation: card-opacity 8.4s cubic-bezier(1, 0, 0, 1) forwards calc(var(--delay) - 4.3s);
  transform: translate(-50%, -50%);
}
.wrap_card .card:nth-child(1) { --delay: 4.3s; }
.wrap_card .card:nth-child(2) { --delay: 7.3s; }
.wrap_card .card:nth-child(3) { --delay: 10.3s; }
@keyframes card-opacity {
  from { opacity: 1; }
  to { opacity: 0; }
}
.wrap_card .card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  overflow: hidden;
  animation: card-rotating 9s cubic-bezier(0.75, 0, 0, 1.01) infinite 0s;
  border-radius: var(--round);
  background: var(--bg);
  order: var(--order);
  width: var(--w-card);
  height: var(--h-card);
  z-index: var(--z1);
  top: var(--t1);
  left: var(--l1);
  right: var(--r1);
  transform: var(--trans1);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --pd: 4px;
  --round: 16px;
  --x1: var(--insetX-card);
  --x2: calc(var(--w-wrap-card) - calc(var(--w-card) + var(--insetX-card)));
  --to-left: rotate(calc(var(--rotate-card) * -1));
  --to-center: calc(var(--w-card) / 2);
  --to-right: rotate(calc(var(--rotate-card) * 1));
}
.wrap_card .card:nth-child(1) {
  --order: 2;
  --bg: radial-gradient(circle, rgba(252,240,142,1) 0%, rgba(246,173,32,1) 40%, rgba(192,142,8,1) 100%);
  --z1: 2; --t1: 0; --l1: var(--to-center); --r1: var(--to-center); --trans1: rotate(calc(var(--rotate-card) * 0));
  --z2: 0; --t2: var(--t-card); --l2: var(--x1); --r2: var(--x2); --trans2: var(--to-left);
  --z3: 0; --t3: var(--t-card); --l3: var(--x2); --r3: var(--x1); --trans3: var(--to-right);
}
.wrap_card .card:nth-child(2) {
  --order: 3;
  --bg: radial-gradient(circle, rgba(142,249,252,1) 0%, rgba(32,164,246,1) 40%, rgba(8,81,192,1) 100%);
  --z1: 0; --t1: var(--t-card); --l1: var(--x2); --r1: var(--x1); --trans1: var(--to-right);
  --z2: 2; --t2: 0; --l2: var(--to-center); --r2: var(--to-center); --trans2: rotate(calc(var(--rotate-card) * 0));
  --z3: 0; --t3: var(--t-card); --l3: var(--x1); --r3: var(--x2); --trans3: var(--to-left);
}
.wrap_card .card:nth-child(3) {
  --order: 1;
  --bg: radial-gradient(circle, rgba(222,128,233,1) 0%, rgba(213,32,246,1) 40%, rgba(139,6,157,1) 100%);
  --z1: 0; --t1: var(--t-card); --l1: var(--x1); --r1: var(--x2); --trans1: var(--to-left);
  --z2: 0; --t2: var(--t-card); --l2: var(--x2); --r2: var(--x1); --trans2: var(--to-right);
  --z3: 2; --t3: 0; --l3: var(--to-center); --r3: var(--to-center); --trans3: rotate(calc(var(--rotate-card) * 0));
}
@keyframes card-rotating {
  0%, 99.99% { z-index: var(--z1); top: var(--t1); left: var(--l1); right: var(--r1); transform: var(--trans1); }
  33.33% { z-index: var(--z2); top: var(--t2); left: var(--l2); right: var(--r2); transform: var(--trans2); }
  66.66% { z-index: var(--z3); top: var(--t3); left: var(--l3); right: var(--r3); transform: var(--trans3); }
}
.wrap_card .lines {
  position: absolute;
  inset: auto 0 -10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.wrap_card .line { position: absolute; width: 100%; display: flex; align-items: center; justify-content: center; }
.wrap_card .line::before, .wrap_card .line::after {
  content: "";
  position: absolute;
  inset: auto;
  background: linear-gradient(to right, var(--gradient-a-line, #0000), var(--gradient-b-line, #0000), var(--gradient-c-line, #0000));
  filter: var(--blur-line);
  width: var(--w-line);
  height: var(--h-line);
}
.wrap_card .line:nth-child(1)::before { --blur-line: blur(4px); --w-line: 100%; --h-line: 5px; --gradient-b-line: #2f69f2; }
.wrap_card .line:nth-child(1)::after  { --w-line: 100%; --h-line: 1px; --gradient-b-line: #6366f1; }
.wrap_card .line:nth-child(2)::before { --blur-line: blur(4px); --w-line: 50%; --h-line: 5px; --gradient-b-line: #84ccfc; }
.wrap_card .line:nth-child(2)::after  { --w-line: 50%; --h-line: 1px; --gradient-b-line: #14d3f5; }

/* Continuous looping logo marquee */
.logo-track {
  animation: logo-scroll 30s linear infinite;
  will-change: transform;
}
.logo-track:hover { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
