/* =====================
   SERVICES SECTION
   ===================== */
.nb-services {
  padding: 60px 20px;
  background: #f1f5f9;
}
.nb-section-title {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.nb-section-title h2 { font-size: 36px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.nb-section-title p  { font-size: 18px; color: #475569; font-weight: 500; line-height: 1.6; }

/* ===== GRID ===== */
.nb-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BASE CARD ===== */
.nb-services__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
}
.nb-services__card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* ===== 1. DEFAULT — icon + text only ===== */
.nb-services__card.default { /* already handled by base */ }

/* ===== 2. HAS-IMAGE-BELOW — content top, image bottom, spans 2 rows =====
   Used by: AI & ML, Web Development
*/
.nb-services__card.has-image-below {
  padding: 0;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.nb-services__card.has-image-below .nb-services__card-body {
  padding: 20px 20px 16px;
  flex-shrink: 0;
}
.nb-services__card.has-image-below .nb-services__card-image {
  flex: 1;
  overflow: hidden;
  padding: 0 16px 16px;
  min-height: 200px;
}
.nb-services__card.has-image-below .nb-services__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
  display: block;
  min-height: 200px;
}
.nb-services__card.has-image-below:hover .nb-services__card-image img {
  transform: scale(1.04);
}

/* ===== 3. IMAGE-RIGHT-WIDE — spans 2 cols, content left 50%, image right 50% =====
   Used by: Mobile App Development, UX AND UI DESIGN
*/
.nb-services__card.image-right-wide {
  padding: 0;
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
.nb-services__card.image-right-wide .nb-services__card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.nb-services__card.image-right-wide .nb-services__card-image {
  overflow: hidden;
  padding:20px 20px 20px 0;
}
.nb-services__card.image-right-wide .nb-services__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease; border-radius:12px;
  display: block;
}
.nb-services__card.image-right-wide:hover .nb-services__card-image img {
  transform: scale(1.04);
}

/* ===== 4. IMAGE-ONLY — pure image card ===== */
.nb-services__card.image-only {
  padding: 0;
  min-height: 260px;
}
.nb-services__card.image-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease;
  display: block;
}
.nb-services__card.image-only:hover img { transform: scale(1.04); }

/* ===== ICON ===== */
.nb-services__icon-wrapper { margin-bottom: 16px; }
.nb-services__icon {
  width: 58px; height: 58px;
  background: linear-gradient(90deg, rgba(138,56,245,0.12) 25%, rgba(245,166,35,0.12) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.nb-services__icon svg { width: 34px; height: 34px; }

/* ===== TYPOGRAPHY ===== */
.nb-services__card h3 { font-size:20px; font-weight: 700; color:var(--text); margin-bottom: 10px; line-height: 1.3; }
.nb-services__card p  { font-size: 16px;font-weight: 500; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 20px;letter-spacing: 4%; }

/* ===== EXPLORE MORE LINK ===== */
.nb-services__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color:var(--text);
  transition: all 0.3s ease; margin-top: auto;
}
.nb-services__link:hover { color: #7c3aed; gap: 12px; }
.nb-services__link .arrow-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M10.1967 21.2174L18.8022 12.6119L18.8093 17.6819L20.8033 17.6819L20.8033 10.1966C20.8033 9.64431 20.3556 9.19659 19.8033 9.19657L12.318 9.19658V11.1906L17.388 11.1977L8.78249 19.8032L10.1967 21.2174Z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M10.1967 21.2174L18.8022 12.6119L18.8093 17.6819L20.8033 17.6819L20.8033 10.1966C20.8033 9.64431 20.3556 9.19659 19.8033 9.19657L12.318 9.19658V11.1906L17.388 11.1977L8.78249 19.8032L10.1967 21.2174Z"/></svg>') no-repeat center / contain;
  transition: transform 0.3s ease;
}
.nb-services__link:hover .arrow-icon { transform: translate(4px,-4px); }

/* ===== RESPONSIVE ===== */
@media(max-width:992px) {
  .nb-services__grid { grid-template-columns: repeat(2,1fr); }
  .nb-services__card.has-image-below    { grid-row: span 1; }
  .nb-services__card.image-right-wide  { grid-column: span 2; grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {.nb-services{padding:40px 15px}}
@media(max-width:640px) {
  .nb-services__grid { grid-template-columns: 1fr; }
  .nb-services__card.has-image-below   { grid-row: span 1; }
  .nb-services__card.image-right-wide  { grid-column: span 1; grid-template-columns: 1fr; }
  .nb-services__card.image-right-wide .nb-services__card-image { border-radius: 0 0 16px 16px; min-height: 200px; }
  .nb-services{padding:20px 0}
  .nb-section-title h2{font-size: 26px;}
  .nb-section-title{margin-bottom:20px}
  .nb-services__card.image-right-wide .nb-services__card-image{padding:15px}
}
@media(max-width:480px) {
  .nb-services { padding: 20px 16px; }
  .nb-section-title h2 { font-size: 18px; }
  .nb-section-title p { font-size: 14px; }
  .nb-services__card { padding: 20px; }
  .nb-services__card.image-right-wide .nb-services__card-body { padding: 20px; }
  .nb-services__card-image { display: none; }
  .nb-services__card p { font-size: 14px; }
   
}
