      /* Active nav link */
.primary-nav a.active {
  color: var(--logo2);
}
.primary-nav a.active::after {
  width: 100%;
}

/* Mobile active */
.mobile-nav a.active {
  color: var(--logo2);
}


/* ========================================
   ROOT & RESET
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:       #4c6ef5;
  --blue-light: #eef0ff;
  --text-dark:  #0f1117;
  --text-mid:   #444b5a;
  --text-light: #8b93a7;
  --border:     #e8eaf0;
  --white:      #ffffff;
  --bg:         #f9fafb;
  --dark:       #1c1c1c;
  --dark2:      #161b27;

  --font-head: "Poppins", sans-serif;
  --font-body: "Syne", sans-serif;

  --radius: 14px;
  --shadow: 0 2px 16px rgba(15,17,23,.07);
  --shadow-hover: 0 10px 36px rgba(76,110,245,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-head);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}



/* ========================================
   FILTER TABS
======================================== */
.portfolio-section {
  padding: 60px 0 40px;
  background: var(--white);
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: .01em;
  outline: none;
  user-select: none;
}

.tab:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(76,110,245,.3);
}


/* ========================================
   PORTFOLIO GRID
======================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Card ---- */
.portfolio-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Filter show/hide is handled entirely by JS inline styles */


/* ---- Card Image ---- */
.card-image {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #f0f2f8;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.portfolio-card:hover .card-image img {
  transform: scale(1.06);
}

/* Subtle dark overlay on hover */
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.portfolio-card:hover .card-image::after {
  background: rgba(0,0,0,.12);
}


/* ---- Category Badge ---- */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.badge-web      { background: rgba(238,240,255,.92); color: #4c6ef5; }
.badge-mobile   { background: rgba(232,250,243,.92); color: #0da271; }
.badge-ui       { background: rgba(255,243,224,.92); color: #e67e22; }
.badge-ecom     { background: rgba(227,242,253,.92); color: #1565c0; }
.badge-saas     { background: rgba(243,229,245,.92); color: #7b1fa2; }
.badge-biz      { background: rgba(232,245,233,.92); color: #2e7d32; }
.badge-delivery { background: rgba(255,248,225,.92); color: #e65100; }
.badge-transport{ background: rgba(224,247,250,.92); color: #00697a; }
.badge-booking  { background: rgba(252,228,236,.92); color: #b71c1c; }
.badge-erp      { background: rgba(255,235,238,.92); color: #c62828; }
.badge-seo      { background: rgba(232,234,246,.92); color: #283593; }


/* ---- Card Body ---- */
.card-body {
  padding: 18px 20px 20px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.58;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
}


/* ---- No Results Message ---- */
.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 15px;
}

.no-results.show { display: block; }


/* ========================================
   PAGINATION DOTS
======================================== */
.pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all .22s ease;
}

.dot.active {
  background: var(--text-dark);
  transform: scale(1.2);
}

.dot:hover:not(.active) { background: var(--text-light); }


/* ========================================
   HOW WE WORK
======================================== */
.how-section {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.section-title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.section-sub {
  font-size: 14.5px;
  color: var(--text-light);
  margin-bottom: 52px;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.step {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.step-connector {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin-top: 27px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -1px; top: -4px;
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  transform: rotate(45deg);
}

.step-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.step-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(76,110,245,.3);
}

.step-icon svg {
  width: 22px; height: 22px;
  stroke: var(--white);
}

.step h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.step p {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  padding: 0 6px;
}


/* ========================================
   CASE STUDY
======================================== */
.case-study-section { padding: 32px 0; }

.case-study-card {
  background: var(--dark);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  min-height: 290px;
  position: relative;
}


.case-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.case-mockup { width: 100%; max-width: 340px; }

.mockup-screen {
  background: var(--dark2);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.mockup-bar {
  height: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  margin-bottom: 14px;
  position: relative;
}
.mockup-bar::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 40%; height: 100%;
  background: var(--blue);
  border-radius: 4px;
  opacity: .7;
}

.mockup-row {
  height: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  margin-bottom: 10px;
}
.mockup-row.short { width: 65%; }

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mgrid-item {
  height: 48px;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.04);
}

.mgrid-item.tall {
  height: 106px;
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(76,110,245,.2) 0%, rgba(76,110,245,.07) 100%);
}

.case-right {
  padding: 48px 44px 48px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.case-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--blue);
  text-transform: uppercase;
}

.case-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.case-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

.case-stats { display: flex; gap: 40px; margin-top: 6px; }

.case-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
}


/* ========================================
   STATS
======================================== */
.stats-section { padding: 60px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stat-box {
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1.5px solid var(--border);
  transition: background .2s ease;
}
.stat-box:last-child { border-right: none; }
.stat-box:hover { background: var(--bg); }

.stat-big {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-light);
  text-transform: uppercase;
}


/* ========================================
   CTA
======================================== */
.cta-section { padding: 32px 0 72px; }

.cta-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}



.cta-title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,.48);
  line-height: 1.75;
  margin-bottom: 36px;
  position: relative;
}

.cta-btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.5);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  letter-spacing: .01em;
}

.cta-btn:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(255,255,255,.18);
}


/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .step-connector { display: none; }
  .case-study-card { grid-template-columns: 1fr; }
  .case-left { padding: 32px 32px 0; }
  .case-right { padding: 28px 32px 40px; }
  .stats-grid { grid-template-columns: repeat(1, 1fr); }
  .stat-box:nth-child(2) { border-right: none; }
  .stat-box:nth-child(3) { border-right: 1.5px solid var(--border); border-top: 1.5px solid var(--border); }
  .stat-box:nth-child(4) { border-top: 1.5px solid var(--border); }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .tab { font-size: 12px; padding: 6px 14px; }
  .section-title { font-size: 24px; }
  .case-title { font-size: 22px; }
  .cta-title { font-size: 28px; }
  .stat-big { font-size: 34px; }
}