/* =========================================================================
   EmpatiaSoft — Modern UI layer
   A non-destructive override on top of the base Colorlib template.
   Loaded AFTER css/style.css so these rules win where specificity matches.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap");

:root {
  /* Brand */
  --brand-700: #4c1d95;
  --brand-600: #6927ff;
  --brand-500: #7c3aed;
  --brand-400: #9d5cff;
  --accent-cyan: #22d3ee;
  --grad: linear-gradient(135deg, #6927ff 0%, #8b3dff 55%, #b14bff 100%);
  --grad-soft: linear-gradient(135deg, #6927ff 0%, #22d3ee 100%);

  /* Ink & surfaces */
  --ink-900: #0f1020;
  --ink-700: #2a2b3d;
  --ink-500: #5b5c74;
  --ink-300: #8a8ba3;
  --surface: #ffffff;
  --surface-alt: #f6f5ff;
  --line: rgba(17, 16, 40, 0.08);

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(16, 12, 40, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(63, 24, 150, 0.22);
  --shadow-lg: 0 28px 60px -20px rgba(63, 24, 150, 0.35);
  --glow: 0 14px 34px -10px rgba(105, 39, 255, 0.55);

  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   Base typography & rhythm
   ------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink-500);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  font-family: "Poppins", "Work Sans", sans-serif;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { line-height: 1.75; }

a { color: var(--brand-600); }
a:hover, a:focus { color: var(--brand-500); }

::selection { background: rgba(105, 39, 255, 0.16); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-500), var(--brand-600));
  border-radius: 999px;
  border: 3px solid #fff;
}

/* Section heading labels */
.heading-section .subheading,
.hero-wrap .subheading {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: rgba(105, 39, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}

.heading-section h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  will-change: transform;
}

.btn-primary,
.btn.btn-primary {
  background: var(--grad) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--glow);
}
.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(105, 39, 255, 0.7);
  background: var(--grad) !important;
}

.btn-outline-primary,
.btn.btn-outline-primary {
  border: 1.5px solid rgba(105, 39, 255, 0.4) !important;
  color: var(--brand-600) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(6px);
}
.btn-outline-primary:hover {
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* -------------------------------------------------------------------------
   Navbar — glass + gradient brand
   ------------------------------------------------------------------------- */
.ftco-navbar-light .navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 992px) {
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    position: relative;
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover::after,
  .ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link::after {
    transform: scaleX(1);
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
    color: var(--brand-600);
  }
}

/* CTA pill */
.ftco-navbar-light .navbar-nav > .nav-item.cta > a,
.ftco-navbar-light.scrolled .nav-item.cta > a {
  background: var(--grad) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: var(--glow);
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ftco-navbar-light .navbar-nav > .nav-item.cta > a:hover {
  transform: translateY(-2px);
}

/* Glassy bar once scrolled */
.ftco-navbar-light.scrolled {
  background: rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -12px rgba(16, 12, 40, 0.18) !important;
}
.ftco-navbar-light.scrolled .navbar-nav > .nav-item > .nav-link { color: var(--ink-700); }

/* Mobile menu surface */
@media (max-width: 991.98px) {
  .ftco-navbar-light,
  .ftco-navbar-light.scrolled {
    background: #0f1020 !important;
  }
  .ftco-navbar-light .navbar-brand { -webkit-text-fill-color: #fff; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero-wrap {
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(105, 39, 255, 0.14), transparent 60%),
    radial-gradient(900px 520px at 8% 108%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}

.hero-wrap .slider-text .text h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem !important;
}
.hero-wrap .slider-text .text h1 span:nth-child(2) {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-wrap .slider-text .text p {
  color: var(--ink-500);
  font-size: 1.075rem;
  max-width: 34rem;
}
.hero-wrap .slider-text .text .btn + .btn { margin-left: 0.5rem; }

/* -------------------------------------------------------------------------
   Service cards
   ------------------------------------------------------------------------- */
.services-section { background: var(--surface-alt) !important; }

.media.block-6.services {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.media.block-6.services:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(105, 39, 255, 0.25);
}

/* Icon coin */
.media.block-6.services .icon {
  width: 74px;
  height: 74px;
  min-width: 74px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease);
}
.media.block-6.services:hover .icon { transform: rotate(-6deg) scale(1.05); }
.media.block-6.services .icon span { color: #fff; font-size: 30px; }

.media.block-6.services .heading {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

/* Bordered platform cards (iOS / Android / Flutter) */
.media.block-6.services.border {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  position: relative;
  overflow: hidden;
}
.media.block-6.services.border::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.media.block-6.services.border:hover::before { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   Counters
   ------------------------------------------------------------------------- */
.ftco-counter {
  background:
    linear-gradient(135deg, rgba(76, 29, 149, 0.92), rgba(105, 39, 255, 0.9)),
    #4c1d95 !important;
}
.ftco-counter .number {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: #fff;
}
.ftco-counter .block-18 .text span:last-child { color: rgba(255, 255, 255, 0.82); }
.ftco-counter .heading-section-white .subheading {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* -------------------------------------------------------------------------
   "How it works" pill tabs
   ------------------------------------------------------------------------- */
#v-pills-tab {
  gap: 8px;
  background: var(--surface-alt);
  padding: 8px;
  border-radius: 999px;
  display: inline-flex;
  border: 1px solid var(--line);
}
#v-pills-tab .nav-link {
  border-radius: 999px !important;
  font-weight: 600;
  color: var(--ink-500);
  padding: 0.6rem 1.6rem;
  border: none;
  transition: all 0.3s var(--ease);
}
#v-pills-tab .nav-link.active {
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: var(--glow);
}

/* -------------------------------------------------------------------------
   Partners
   ------------------------------------------------------------------------- */
.ftco-partner .partner img {
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.ftco-partner .partner:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.ftco-footer {
  background: #0b0b17 !important;
  position: relative;
}
.ftco-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.ftco-footer .ftco-heading-2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #fff;
}
.ftco-footer a { color: rgba(255, 255, 255, 0.62); }
.ftco-footer a:hover { color: #fff; }
.ftco-footer .block-23 .icon { color: var(--brand-400); }

/* -------------------------------------------------------------------------
   Loader
   ------------------------------------------------------------------------- */
#ftco-loader .path { stroke: var(--brand-600) !important; }

/* -------------------------------------------------------------------------
   Reveal polish for AOS/ftco-animate items already in template
   ------------------------------------------------------------------------- */
.ftco-animate { transition-timing-function: var(--ease); }
