/* ============================================================
   Digital Tech Services - Projects (portfolio) page
   Same palette as home.css / contact.css. No gradients.
   Classes are prefixed "dtp-".
   ============================================================ */

/* ---------- Hero (same look as the home page hero) ----------
   Mobile first: top badges, heading, text, search, buttons, 2x2 point cards, dashboard scene.
   Desktop: copy on the left, dashboard scene on the right, 4 point cards in a full-width row. */
.dtp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 30px 24px;
}
.dtp-hero .dt-hero-lead { margin-bottom: 20px; }
.dtp-scene { margin: 0; }
.dtp-scene .dt-scene-svg { max-width: 100%; }

.dtp-search { position: relative; width: 100%; max-width: 560px; margin-bottom: 18px; }
.dtp-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dt-navy); font-size: 17px; pointer-events: none; }
.dtp-search input {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--dt-line);
  border-radius: 10px;
  background: #fff;
  padding: 0 16px 0 46px;
  font-family: var(--dt-font);
  font-size: 16px;
  color: var(--dt-ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 6px 16px rgba(11, 42, 84, .07);
}
.dtp-search input::placeholder { color: #6B7A94; }
.dtp-search input:focus { border-color: var(--dt-orange); box-shadow: 0 0 0 3px rgba(254, 99, 1, .2); }
.dtp-hero-btns { margin-bottom: 0; }

/* 4 selling points: full-width row of cards */
.dtp-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dtp-point {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dt-line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(11, 42, 84, .07);
}
.dtp-point-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #F3F9FE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dtp-navy { color: var(--dt-navy); }
.dtp-orange { color: var(--dt-orange); }
.dtp-point b { display: block; font-size: 15px; font-weight: 700; color: var(--dt-ink); line-height: 1.25; }
.dtp-point span { font-size: 13.5px; color: var(--dt-muted); }
.dtp-point > div span { display: block; margin-top: 2px; }

/* ---------- Filter chips ---------- */
.dtp-list { background: #fff; padding: 26px 0 40px; scroll-margin-top: 80px; }
.dtp-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.dtp-chips::-webkit-scrollbar { display: none; }
/* Centered when everything fits; safely scrollable (never cut off on the left) when it does not */
.dtp-chips > .dtp-chip:first-child { margin-left: auto; }
.dtp-chips > .dtp-chip:last-child { margin-right: auto; }
.dtp-chip {
  border: 0;
  background: #EAF1FB;
  color: var(--dt-navy);
  font-family: var(--dt-font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.dtp-chip:hover { background: #DCE8F7; }
.dtp-chip.active { background: var(--dt-orange); color: #fff; font-weight: 600; }

/* ---------- Cards ---------- */
.dtp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dtp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--dt-line);
  border-radius: 10px;
  padding: 10px 10px 14px;
  box-shadow: 0 6px 18px rgba(11, 42, 84, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dtp-card[hidden] { display: none; }

/* Light, different background tone for each card (cycles every 6 projects) */
.dtp-tone-0 { background: #EAF1FF; border-color: #D3E2FB; }
.dtp-tone-1 { background: #FFF1E6; border-color: #FBDDC2; }
.dtp-tone-2 { background: #E9FBF0; border-color: #C9EFD8; }
.dtp-tone-3 { background: #F3EEFF; border-color: #E0D4FA; }
.dtp-tone-4 { background: #FFEAF3; border-color: #FAD0E2; }
.dtp-tone-5 { background: #E6FBF9; border-color: #C4EFEA; }
.dtp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 42, 84, .12); }

.dtp-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #EAF3FC;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.dtp-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform .35s ease; }
.dtp-card:hover .dtp-thumb img { transform: scale(1.04); }
.dtp-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 40px; color: #9FB6D6; }
.dtp-cat {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  color: var(--dt-navy);
  border: 1px solid var(--dt-line);
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
}

.dtp-body { display: flex; flex-direction: column; flex: 1; padding: 14px 6px 0; }
.dtp-body h3 { font-size: 17px; font-weight: 700; color: var(--dt-ink); margin: 0 0 6px; line-height: 1.25; }
.dtp-desc { font-size: 14px; line-height: 1.5; color: var(--dt-muted); margin: 0 0 14px; text-align: justify; text-justify: inter-word; hyphens: auto; min-height: 42px; }

.dtp-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dtp-price { display: flex; align-items: center; gap: 8px; }
.dtp-rs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dt-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.dtp-price b { font-size: 19px; font-weight: 700; color: var(--dt-ink); line-height: 1; }
.dtp-price .dtp-ask { font-size: 14px; }
.dtp-support { text-align: left; }
.dtp-support-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.25; color: var(--dt-ink); }
.dtp-support-row i { font-size: 20px; color: var(--dt-navy); }
.dtp-support small { display: block; font-size: 12px; color: var(--dt-muted); margin: 4px 0 0 27px; white-space: nowrap; }

.dtp-actions { display: flex; align-items: stretch; gap: 8px; margin-top: auto; }
.dtp-demo {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 1.5px solid var(--dt-orange);
  border-radius: 6px;
  background: #fff;
  color: var(--dt-orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.dtp-demo:hover { background: var(--dt-orange); color: #fff; }
.dtp-demo-off { border-color: var(--dt-line); color: #8A97AE; cursor: default; }
.dtp-demo-off:hover { background: #fff; color: #8A97AE; }
.dtp-bro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--dt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--dt-navy);
  font-family: var(--dt-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.dtp-bro:hover { background: var(--dt-soft); border-color: var(--dt-navy); }

.dtp-empty { text-align: center; color: var(--dt-muted); font-size: 16px; padding: 40px 0; }
.dtp-empty[hidden] { display: none; }

/* ---------- Brochure modal (kept from the previous page) ---------- */
#brochureModal .modal-dialog { max-width: 900px; }
#brochureModal .modal-body { padding: 0; max-height: 78vh; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#brochureModal .modal-body::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
#brochureModal .ts-brochure-footer { padding: 18px 28px 26px; text-align: center; border-top: 1px solid #eef0f5; }

/* ---------- CTA band ---------- */
.dtp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px 30px;
  background: #0A3A6E;
  border-radius: 10px;
  color: #fff;
}
.dtp-cta-left { display: flex; align-items: center; gap: 18px; }
.dtp-cta-ico { font-size: 46px; color: var(--dt-orange); line-height: 1; flex-shrink: 0; }
.dtp-cta h3 { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 4px; line-height: 1.2; }
.dtp-cta p { font-size: 15px; color: #fff; margin: 0; }
.dtp-cta .dt-btn { flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .dtp-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  /* Single column: copy, then the point cards, then the dashboard scene (same order as the home page) */
  .dtp-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .dtp-points { order: 1; }
  .dtp-scene { order: 2; }
  .dtp-search { max-width: 640px; }
  .dtp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtp-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
  .dtp-chips { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .dtp-chips::-webkit-scrollbar { display: none; }
  .dtp-chip { flex-shrink: 0; padding: 10px 16px; }
  .dtp-cta { padding: 22px 18px; }
  .dtp-cta h3 { font-size: 20px; }
  .dtp-cta-left { align-items: flex-start; }
  .dtp-cta .dt-btn { width: 100%; }
}
@media (max-width: 575.98px) {
  .dtp-hero-grid { gap: 22px; }
  .dtp-search input { height: 52px; }
  /* 2 x 2 compact cards: icon on top, text below, so the screen feels full */
  .dtp-points { gap: 12px; }
  .dtp-point { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; }
  .dtp-point-ico { width: 42px; height: 42px; font-size: 20px; }
  .dtp-point b { font-size: 14.5px; }
  .dtp-point span { font-size: 12.5px; }
  .dtp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 359.98px) {
  .dtp-point b { font-size: 13.5px; }
  .dtp-point span { font-size: 12px; }
}

/* ============================================================
   Premium hero layer (decor, floating cards, richer cards)
   ============================================================ */
.dtp-hero { isolation: isolate; }
.dtp-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  left: auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(11, 108, 255, .06);
  pointer-events: none;
  z-index: -1;
}
.dtp-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(254, 99, 1, .07);
  pointer-events: none;
  z-index: -1;
}
.dtp-hero h1 { letter-spacing: -.6px; }

/* Search: bigger, softer, with a navy icon chip */
.dtp-search input {
  height: 58px;
  border-radius: 14px;
  border: 1.5px solid #D5E3F6;
  padding: 0 18px 0 62px;
  box-shadow: 0 12px 28px rgba(11, 42, 84, .10);
}
.dtp-search i {
  left: 9px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--dt-navy);
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Buttons: depth */
.dtp-hero .dt-btn { border-radius: 12px; }
.dtp-hero .dt-btn-orange { box-shadow: 0 12px 24px rgba(254, 99, 1, .30); }
.dtp-hero .dt-btn-outline { border-width: 1.5px; box-shadow: 0 6px 16px rgba(11, 42, 84, .08); }

/* Scene: soft disc behind the dashboard, never clipped on the left */
.dtp-scene { position: relative; }
.dtp-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 82%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #E4EEFC;
  z-index: 0;
}
.dtp-scene .dt-scene-svg { position: relative; z-index: 1; overflow: visible; }

.dtp-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--dt-line);
  border-radius: 14px;
  padding: 9px 14px 9px 10px;
  box-shadow: 0 14px 30px rgba(11, 42, 84, .16);
}
.dtp-float > i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFF1E6;
  color: var(--dt-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.dtp-float-b > i { background: #E9FBF0; color: #17A25A; }
.dtp-float b { display: block; font-size: 17px; font-weight: 700; color: var(--dt-ink); line-height: 1.1; }
.dtp-float small { display: block; font-size: 12px; font-weight: 500; color: var(--dt-muted); line-height: 1.3; margin-top: 2px; }
.dtp-float-a { left: -18px; top: -34px; }
.dtp-float-b { right: 0; bottom: 8%; }

/* Point cards: accent edge, tinted icons, hover lift */
.dtp-point {
  position: relative;
  overflow: hidden;
  border: 1px solid #D9E6F7;
  box-shadow: 0 10px 26px rgba(11, 42, 84, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dtp-point-ico, .dtp-point-ico.dtp-navy, .dtp-point-ico.dtp-orange { background: #fff; box-shadow: 0 4px 10px rgba(11, 42, 84, .10); }

/* 5px radius, no accent edge, a different light background on each card */
.dtp-point { border-radius: 5px; }
.dtp-point:nth-child(1) { background: #EAF1FF; border-color: #D3E2FB; }
.dtp-point:nth-child(2) { background: #FFF1E6; border-color: #FBDDC2; }
.dtp-point:nth-child(3) { background: #E9FBF0; border-color: #C9EFD8; }
.dtp-point:nth-child(4) { background: #F3EEFF; border-color: #E0D4FA; }
@media (hover: hover) {
  .dtp-point:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11, 42, 84, .14); }
}

@media (max-width: 991.98px) {
  /* Tablet and mobile: the two floating cards sit in a tidy row under the dashboard picture */
  .dtp-scene { margin-top: 6px; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .dtp-scene .dt-scene-svg { flex: 0 0 100%; }
  .dtp-scene::before { width: 70%; top: 40%; }
  .dtp-float { position: static; }
}
@media (max-width: 575.98px) {
  .dtp-search input { height: 56px; }
  .dtp-float { padding: 7px 11px 7px 8px; gap: 8px; border-radius: 12px; }
  .dtp-float > i { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
  .dtp-float b { font-size: 14.5px; }
  .dtp-float small { font-size: 10.5px; }
  .dtp-scene { gap: 10px; }
  }

/* ---------- Category tabs: stretch to fill the full row on desktop ---------- */
@media (min-width: 992px) {
  .dtp-chips { margin-bottom: 26px; }
  .dtp-chips > .dtp-chip,
  .dtp-chips > .dtp-chip:first-child,
  .dtp-chips > .dtp-chip:last-child { margin-left: 0; margin-right: 0; }
  .dtp-chip {
    flex: 1 1 auto;
    text-align: center;
    font-size: clamp(13px, 1.12vw, 17px);
    padding: 15px 12px;
  }
  .dtp-chip.active { box-shadow: 0 8px 18px rgba(254, 99, 1, .28); }
}

/* Mobile: hero heading always fits (each line on one line), sized from the screen width */
@media (max-width: 767.98px) {
  .dtp-hero h1 {
    font-size: min(2rem, calc((100vw - 36px) / 11.8));
    letter-spacing: -.6px;
    line-height: 1.2;
  }
  .dtp-hero h1 span { white-space: nowrap; }
}
