/* =====================================================================
   Home page services grid (index.php, section.services-v2)
   Uses the brand tokens from header-modern.css.
   ===================================================================== */
.services-v2 {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(232, 49, 138, 0.07), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(106, 61, 240, 0.07), transparent 70%),
    #f7f6fb;
  overflow: hidden;
}
.services-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Heading row ---------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}
.services-head-main {
  max-width: 720px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(106, 61, 240, 0.15);
  box-shadow: 0 4px 14px -6px rgba(106, 61, 240, 0.25);
  font-family: var(--text-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-purple);
}
.section-eyebrow i {
  font-size: 12px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.services-v2 .services-title {
  margin: 20px 0 0;
  font-family: var(--title-font);
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #12141c;
}
.services-title-grad {
  display: block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.05em;
}
.services-v2 .services-intro {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #5b6072;
}

/* Arrow buttons */
.services-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.services-nav-btn {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #e2e0ec;
  background: #ffffff;
  color: #12141c;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(18, 20, 28, 0.25);
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms var(--header-ease), box-shadow 300ms ease;
}
.services-nav-btn:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(232, 49, 138, 0.6);
}
.services-nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  background: #ffffff;
  color: #12141c;
  border-color: #e2e0ec;
  box-shadow: none;
}

/* ---------- Carousel ---------- */
/* clip at the carousel edge, with a little breathing room so the
   hover lift and shadows aren't cut off */
.services-v2-swiper {
  overflow: hidden;
  padding: 12px 12px 30px;
  margin: -12px -12px 0;
}
.services-v2-swiper .swiper-slide {
  height: auto;          /* equal-height cards */
  display: flex;
}
.services-v2-swiper .service-card {
  width: 100%;
}


/* ---------- Card: full photo with a frosted glass panel ----------
   Resting: title + 2-line summary on a glass panel at the bottom.
   Hover:   the panel grows to show the full text and "Explore service". */
.service-card {
  position: relative;
  display: block;
  width: 100%;
  height: 430px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background: #1a1830;
  box-shadow: 0 18px 40px -24px rgba(18, 20, 28, 0.55);
  transition: transform 500ms var(--header-ease), box-shadow 500ms var(--header-ease);
}
.service-card:hover {
  color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -28px rgba(106, 61, 240, 0.5);
}

/* photo fills the card */
.service-card-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--header-ease);
}
.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 24, 0) 40%, rgba(12, 13, 24, 0.55) 100%);
  pointer-events: none;
}
.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

/* badges on the photo */
.service-card-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 10px 24px -8px rgba(232, 49, 138, 0.7);
}
.service-card-num {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-family: var(--title-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

/* glass panel */
.service-card-body {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 24px 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(30, 30, 48, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 400ms ease;
}
.service-card:hover .service-card-body {
  background: rgba(30, 30, 48, 0.55);
}
.service-card-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.services-v2 .service-card-desc {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.service-card:hover .service-card-desc {
  -webkit-line-clamp: 6;
}

/* "Explore service": hidden until hover, then slides open */
.service-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  opacity: 0;
  overflow: hidden;
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: max-height 500ms var(--header-ease), margin-top 500ms var(--header-ease),
              padding-top 500ms var(--header-ease), opacity 300ms ease, border-color 300ms ease;
}
.service-card:hover .service-card-link {
  max-height: 70px;
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
}
.service-card-arrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 11px;
}
.service-card-arrow i {
  transform: rotate(-45deg);
  transition: transform 450ms var(--header-ease);
}
.service-card:hover .service-card-arrow i {
  transform: rotate(0deg);
}

/* touch screens have no hover: always show the full panel */
/* touch screens: same closed look as desktop (title + 2-line summary);
   tapping the card opens the service page */

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .services-v2 {
    padding: 90px 0 100px;
  }
  .services-head {
    margin-bottom: 40px;
  }
}
@media (max-width: 767.98px) {
  .services-container {
    padding: 0 20px;
  }
  .services-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .services-nav-btn {
    width: 48px;
    height: 48px;
  }
  .service-card-title {
    font-size: 20px;
  }
}

/* =====================================================================
   Dark theme (matches the hero + reference design): dark navy section
   so the photo cards and their glass panels stand out.
   ===================================================================== */
.services-v2 {
  background:
    radial-gradient(45% 50% at 100% 0%, rgba(232, 49, 138, 0.16), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(106, 61, 240, 0.18), transparent 70%),
    #0b0c17;
}
/* faint grid, like the hero */
.services-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  /* pattern: fine diagonal lines */
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  pointer-events: none;
}
.services-container {
  position: relative;
}

/* heading */
.services-v2 .services-title {
  color: #ffffff;
}
.services-v2 .section-eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #f0abfc;
}

/* arrow buttons */
.services-nav-btn,
.services-nav-btn.swiper-button-disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
}
.services-nav-btn.swiper-button-disabled {
  opacity: 0.3;
}

/* number tag readable on light photos too */
.service-card-num {
  background: rgba(11, 12, 23, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

/* card frame + gradient border on hover */
.service-card {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -28px rgba(0, 0, 0, 0.8);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  box-shadow: 0 34px 70px -30px rgba(232, 49, 138, 0.55);
}

/* photo: slightly richer, darker toward the bottom */
.service-card-media img {
  filter: saturate(1.08) contrast(1.04);
}
.service-card-media::after {
  background: linear-gradient(180deg, rgba(11, 12, 23, 0.15) 0%, rgba(11, 12, 23, 0) 30%, rgba(11, 12, 23, 0.75) 100%);
}

/* glass panel: deeper tint, crisper edge */
.service-card-body {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), rgba(16, 16, 32, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
          backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 30px -18px rgba(0, 0, 0, 0.7);
}
.service-card:hover .service-card-body {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), rgba(16, 16, 32, 0.66);
}

/* phones: smaller title so each half sits on one line */
@media (max-width: 575.98px) {
  .services-v2 .services-title {
    font-size: clamp(24px, 7.4vw, 34px);
    line-height: 1.15;
  }
}

/* arrow sits exactly in the middle of its circle (icon glyph boxes are not square by default) */
.service-card-arrow i {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  transform-origin: 50% 50%;
}
.service-card-arrow i::before {
  display: block;
  line-height: 1;
}
