/* ============================================================
   Webfamily Tech Solution — UI Improvements
   Covers: Service card colors, mobile font sizes, hero polish
   ============================================================ */

/* ── 1. SERVICE CARD BACKGROUND COLORS (Modern Palette) ──── */

/* Card 1 — Web Development: Deep Indigo */
.service-img1 {
  background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%);
}

/* Card 2 — E-Commerce: Teal/Cyan */
.service-img2 {
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
}

/* Card 3 — Digital Marketing: Blue */
.service-img3 {
  background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
}

/* Card 4 — Mini Website: Purple */
.service-img4 {
  background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
}

/* Card 5 — WhatsApp Marketing: Green */
.service-img5 {
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

/* Card 6 — App Development: Orange */
.service-img6 {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

/* Card 7 — Billing Software: Rose */
.service-img7 {
  background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
}

/* Card 8 — SEO: Amber */
.service-img8 {
  background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
}

/* Card 9 — Google My Business: Sky Blue */
.service-img9 {
  background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
}

/* Card 10 — Social Media Management: Pink */
.service-img10 {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5d0fe 100%);
}

/* Enhance card hover effect */
.wide-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.wide-block:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* ── 2. MOBILE FONT SIZE FIX ─────────────────────────────── */
/* The paragraph text was too large on mobile (17px base + responsive scaling) */

@media only screen and (max-width: 767px) {

  /* Body paragraph text — reduce from 17px to 15px on mobile */
  p {
    font-size: 15px !important;
    line-height: 26px !important;
  }

  /* About section paragraph specifically */
  .about-sec-app p {
    font-size: 15px !important;
    line-height: 26px !important;
  }

  /* Bold paragraph in about section */
  .about-sec-app .text-bold {
    font-size: 14px !important;
    line-height: 24px !important;
  }

  /* Hero slide text */
  .hero-style .slide-text p {
    font-size: 15px !important;
    line-height: 24px !important;
  }

  /* Footer paragraph */
  footer p {
    font-size: 14px !important;
    line-height: 24px !important;
  }
}

@media only screen and (max-width: 520px) {
  p {
    font-size: 14px !important;
    line-height: 24px !important;
  }

  .about-sec-app p,
  .about-sec-app .text-bold {
    font-size: 14px !important;
    line-height: 24px !important;
  }
}

/* ── 3. HERO SECTION POLISH ──────────────────────────────── */

/* Ensure hero slide text is always readable */
.hero-style .slide-title h2 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-style .slide-text p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ── 4. GENERAL POLISH ───────────────────────────────────── */

/* Smoother section transitions */
section {
  transition: background 0.3s ease;
}

/* Improve footer blog thumbnail fallback */
.latest-blog-widget .blog-thumb img {
  object-fit: cover;
  border-radius: 6px;
}

/* Improve "Learn More" link styling on service cards */
.wide-block a {
  font-weight: 600;
  color: #2e2a8f;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.wide-block a:hover {
  color: #e91e63;
  letter-spacing: 0.5px;
}

/* Improve service section heading */
.service-section .common-heading span {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #e91e63;
}

/* ── 5. NAVBAR ACTIVE STATE POLISH ───────────────────────── */
.navbar-light .navbar-nav .nav-link:hover {
  color: #2e2a8f !important;
}

/* ── 6. BUTTON HOVER IMPROVEMENTS ───────────────────────── */
.btn-main {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-main:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(46, 42, 143, 0.3) !important;
}

/* ── 7. FOOTER IMPROVEMENT ───────────────────────────────── */
footer .footer-link a:hover {
  color: #e91e63 !important;
  padding-left: 4px;
  transition: all 0.2s ease;
}

/* ── 8. ABOUT PAGE REDESIGN ──────────────────────────────── */

/* -- Breadcrumb -- */
.breadcrumb-area {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #05051e 0%, #1a1a40 100%);
  overflow: hidden;
}

.breadcrumb-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/shape/dot-shape.png');
  opacity: 0.1;
}

.breadcrumb-area .bread-title h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.breadcrumb-area .bread-menu ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
}

.breadcrumb-area .bread-menu ul li a:hover {
  color: #fff;
}

/* -- About Section Images -- */
.about-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: translateY(-5px);
}

.common-heading p {
  line-height: 1.8;
  color: #555;
  font-size: 16px;
}

/* -- Statistics Cards -- */
.statistics {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.statistics:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.statistics .counter {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(to right, #2e2a8f, #e91e63);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.statistics p {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  margin-top: 5px;
  margin-bottom: 0;
}

/* -- Mission & Vision Cards -- */
.s-block2 {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.s-block2:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(46, 42, 143, 0.1);
}

.s-block2 h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

.s-block2 p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

.card-icon img {
  width: 70px;
  transition: transform 0.3s ease;
}

.s-block2:hover .card-icon img {
  transform: scale(1.1) rotate(5deg);
}

/* -- Why Choose Us Boxes -- */
.s-block {
  background: #fff;
  padding: 35px 25px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
}

.s-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #2e2a8f;
}

.s-block h4 a {
  color: #222;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.s-block:hover h4 a {
  color: #2e2a8f;
}

.nx-circl-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  /* do NOT set background here — nxlp-b/c/d classes supply the gradient */
  text-align: center;
  margin: 0 auto 20px auto;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Only apply the plain hover background when there's no nxlp gradient class */
.s-block:hover .nx-circl-icon:not(.nxlp-b):not(.nxlp-c):not(.nxlp-d) {
  background: #2e2a8f;
}

/* Icon image in light mode: keep natural colour on coloured gradient bg */
.wc-icon,
.nx-circl-icon img {
  filter: none;
}

/* On hover only (light mode): invert icon to white when on dark bg */
.s-block:hover .nx-circl-icon:not(.nxlp-b):not(.nxlp-c):not(.nxlp-d) img,
.s-block:hover .nx-circl-icon:not(.nxlp-b):not(.nxlp-c):not(.nxlp-d) .wc-icon {
  filter: brightness(0) invert(1);
}

/* On coloured gradient circles — always show white icon */
.nxlp-b img,
.nxlp-b .wc-icon,
.nxlp-c img,
.nxlp-c .wc-icon,
.nxlp-d img,
.nxlp-d .wc-icon {
  filter: brightness(0) invert(1);
}


/* ── 9. WHY CHOOSE US — GRID & ALIGNMENT FIX ────────────── */
.why-choose-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.wc-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.wc-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.why-choose-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.why-choose-card h4 a {
  color: #050748;
  margin: 0;
  display: block;
}

.why-choose-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  flex-grow: 1;
  text-align: center;
  margin-bottom: 18px;
}

.wc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2e2a8f;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease, gap 0.2s ease;
}

.wc-link:hover {
  color: #e91e63;
  gap: 10px;
}

.wc-link .fa-icon {
  font-size: 11px;
}

/* ── 10. DARK MODE — WHY CHOOSE SECTION FIX ─────────────── */

/* Card background & border in dark mode */
.active-dark .why-choose-card {
  background: #1e1e2e;
  border-color: #2a2a3e;
}

/* Heading links: white in dark mode */
.active-dark .why-choose-card h4 a {
  color: #e2e8f0;
}

.active-dark .why-choose-card:hover h4 a {
  color: #818cf8;
}

/* Paragraph text: light grey in dark mode */
.active-dark .why-choose-card p {
  color: #94a3b8;
}

/* "More Details" link in dark mode */
.active-dark .wc-link {
  color: #818cf8;
}

.active-dark .wc-link:hover {
  color: #f472b6;
}

/* Icon circles: keep nxlp gradients visible in dark mode */
/* Do NOT override nxlp-b/c/d backgrounds in dark mode */
.active-dark .wc-icon-wrap {
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* Icon image stays white on gradient circle in dark mode too */
.active-dark .nxlp-b img,
.active-dark .nxlp-b .wc-icon,
.active-dark .nxlp-c img,
.active-dark .nxlp-c .wc-icon,
.active-dark .nxlp-d img,
.active-dark .nxlp-d .wc-icon {
  filter: brightness(0) invert(1);
}

/* Card hover border in dark mode */
.active-dark .why-choose-card:hover {
  border-color: #4f46e5;
  background: #23233a;
}

/* Section top spacing fix — remove large rellax gap */
.dg-service2 .row.align-items-stretch {
  margin-top: 0;
  padding-top: 0;
}

/* Ensure section doesn't inherit excessive padding from rellax transforms */
.dg-service2 .niwax {
  transform: none !important;
}