/* ============================================================
   PORTFOLIO PAGE CSS — Techwave Developers
   Matches home page navy / yellow / blue theme
   ============================================================ */

:root {
  --navy:        #0a1628;
  --navy-mid:    #0f1e3d;
  --navy-light:  #162444;
  --navy-card:   #112035;
  --yellow:      #f0b429;
  --yellow-dark: #d9a020;
  --blue:        #1e40ff;
  --blue-light:  #3b82f6;
  --white:       #ffffff;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --text-dark:   #0a1628;
  --text-muted:  #64748b;
  --border-dark: rgba(255,255,255,0.1);
  --border-card: rgba(255,255,255,0.08);

  /* Nav height (from home CSS) */
  --tw-nav-height: 75px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; max-width: 100%; scroll-behavior: smooth; }

body {
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: var(--tw-nav-height);
}

@media (max-width: 991px) {
  :root { --tw-nav-height: 62px; }
}

/* ============================================================
   HERO — Dark navy with bg image
   ============================================================ */
.pt-hero {
  background-color: var(--navy);
  background-image: url(../image/services-Banner-bg.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.pt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(15,30,61,0.78) 100%);
  pointer-events: none;
}

.pt-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(240,180,41,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pt-hero-inner {
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.pt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin-bottom: 24px;
}

.pt-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.pt-breadcrumb a:hover { color: var(--yellow); }
.pt-breadcrumb i { font-size: 10px; }

/* Eyebrow */
.pt-eyebrow {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pt-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  flex-shrink: 0;
}

/* Title */
.pt-hero-title {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.pt-hero-title .pt-grad {
  background: linear-gradient(90deg, var(--yellow), #ffd56e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pt-hero-title .pt-grad-blue {
  background: linear-gradient(90deg, #7eb8f7, #a8d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desc */
.pt-hero-desc {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Chips */
.pt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  transition: all 0.3s;
}

.pt-chip i { color: var(--yellow); font-size: 13px; }
.pt-chip:hover {
  border-color: rgba(240,180,41,0.35);
  color: rgba(255,255,255,0.85);
  background: rgba(240,180,41,0.07);
}

/* ── Stats row inside hero ── */
.pt-hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.pt-hstat {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.pt-hstat:first-child { padding-left: 0; }
.pt-hstat:last-child { border-right: none; }

.pt-hstat-num {
  color: var(--yellow);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.pt-hstat-label {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 500;
}

/* ============================================================
   FILTER SECTION — White BG
   ============================================================ */
.pt-filter-section {
  background: var(--white);
  padding: 40px 0 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--tw-nav-height);
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.pt-filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 24px;
}

.pt-filter-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pt-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(30,64,255,0.05);
}

.pt-filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(30,64,255,0.28);
}

/* ============================================================
   PORTFOLIO GRID — White BG
   ============================================================ */
.pt-grid-section {
  background: var(--white);
  padding: 60px 0 80px;
}

/* ── CARD ── */
.pt-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.65s cubic-bezier(.22,1,.36,1),
    transform 0.65s cubic-bezier(.22,1,.36,1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.pt-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Top gradient bar on hover */
.pt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--yellow));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  border-radius: 16px 16px 0 0;
}

.pt-card.in-view:hover::before { opacity: 1; }

.pt-card.in-view:hover {
  transform: translateY(-8px);
  border-color: rgba(30,64,255,0.3);
  box-shadow:
    0 20px 50px rgba(30,64,255,0.1),
    0 4px 16px rgba(0,0,0,0.06);
}

/* ── IMAGE WRAP ── */
.pt-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #eef2ff;
  flex-shrink: 0;
  padding: 10px 10px 0;
}

.pt-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 8px 8px 0 0;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}

.pt-card.in-view:hover .pt-img { transform: scale(1.06); }

/* ── IMAGE OVERLAY ── */
.pt-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,22,40,0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.pt-card.in-view:hover .pt-img-overlay { opacity: 1; }

.pt-ovr-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(10,22,40,0.8);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transform: translateY(12px) scale(0.85);
  opacity: 0;
  transition: all 0.28s cubic-bezier(.22,1,.36,1);
}

.pt-card.in-view:hover .pt-ovr-btn {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pt-card.in-view:hover .pt-ovr-btn:nth-child(1) { transition-delay: 0.04s; }
.pt-card.in-view:hover .pt-ovr-btn:nth-child(2) { transition-delay: 0.10s; }

.pt-ovr-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(30,64,255,0.45);
  transform: translateY(-3px) scale(1.1) !important;
}

/* ── CARD BODY ── */
.pt-cbody {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Accent line */
.pt-cbody::before {
  content: '';
  display: block;
  width: 28px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  margin-bottom: 12px;
  transition: width 0.3s ease;
}

.pt-card.in-view:hover .pt-cbody::before { width: 52px; }

/* Category tag */
.pt-ctag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(30,64,255,0.07);
  border: 1px solid rgba(30,64,255,0.18);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 10px;
  transition: all 0.25s;
  align-self: flex-start;
}

.pt-card.in-view:hover .pt-ctag {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Title */
.pt-ctitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  transition: color 0.25s;
}

.pt-card.in-view:hover .pt-ctitle { color: var(--blue); }

/* Description */
.pt-cdesc {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.pt-cfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
  transition: border-color 0.3s;
  gap: 8px;
}

.pt-card.in-view:hover .pt-cfoot {
  border-color: rgba(30,64,255,0.15);
}

/* Tech tags */
.pt-techs {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.pt-tech {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.25s;
}

.pt-card.in-view:hover .pt-tech {
  border-color: rgba(30,64,255,0.2);
  color: var(--blue);
  background: rgba(30,64,255,0.05);
}

.pt-tech-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(30,64,255,0.07);
  border: 1px solid rgba(30,64,255,0.18);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* View link */
.pt-clink {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.25s, color 0.25s;
}

.pt-clink:hover {
  gap: 8px;
  color: var(--navy);
}

/* Empty state */
.pt-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.pt-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.3;
  color: var(--blue);
}

/* ============================================================
   STATS SECTION — Navy BG
   ============================================================ */
.pt-stats-section {
  background: #010828;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(30,64,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(240,180,41,0.06) 0%, transparent 50%);
  padding: 70px 0;
}

.pt-stats-eyebrow {
  text-align: center;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pt-stats-eyebrow::before,
.pt-stats-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.pt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.pt-stat-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.pt-stat-item:last-child { border-right: none; }

.pt-stat-num {
  color: var(--yellow);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.pt-stat-label {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   CTA SECTION — White BG, Blue form card
   ============================================================ */
.pt-cta-section {
  background: var(--white);
  padding: 80px 0 100px;
}

.pt-cta-box {
 background-image: url(../image/bghome1.png);
  border-radius: 24px;
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pt-cta-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.pt-cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(240,180,41,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.pt-cta-title {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.pt-cta-title span {
  background: linear-gradient(90deg, var(--yellow), #ffd56e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pt-cta-sub {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.pt-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pt-btn-solid {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 22px rgba(240,180,41,0.35);
}

.pt-btn-solid:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(240,180,41,0.45);
}

.pt-btn-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.35);
  text-decoration: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.pt-btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ============================================================
   LOADER / SKELETON
   ============================================================ */
.pt-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.pt-spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: ptSpin 0.75s linear infinite;
}

@keyframes ptSpin { to { transform: rotate(360deg); } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.pt-sr {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}

.pt-sr.pt-in-view { opacity: 1; transform: none; }
.pt-sd1 { transition-delay: 0.07s; }
.pt-sd2 { transition-delay: 0.14s; }
.pt-sd3 { transition-delay: 0.21s; }
.pt-sd4 { transition-delay: 0.28s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .pt-hero { padding: 60px 0 50px; }
  .pt-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-stat-item:nth-child(2) { border-right: none; }
  .pt-stat-item:nth-child(3),
  .pt-stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }
  .pt-cta-box { padding: 50px 36px; }
}

@media (max-width: 767px) {
  .pt-hero { padding: 48px 0 40px; }
  .pt-hero-title { font-size: 1.8rem; letter-spacing: -0.3px; }
  .pt-hero-desc { font-size: 14px; }
  .pt-hstat { padding: 0 14px; }
  .pt-hstat-num { font-size: 1.3rem; }
  .pt-filter-section { position: static; }
  .pt-filter-wrap { gap: 8px; }
  .pt-filter-btn { font-size: 11.5px; padding: 8px 16px; }
  .pt-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-stat-num { font-size: 2.2rem; }
  .pt-cta-box { padding: 40px 24px; border-radius: 18px; }
  .pt-cta-title { font-size: 1.6rem; }
  .pt-grid-section { padding: 40px 0 60px; }
}

@media (max-width: 480px) {
  .pt-hero-stats { gap: 0; }
  .pt-hstat { padding: 0 10px; }
  .pt-chips { gap: 7px; }
  .pt-chip { font-size: 11.5px; padding: 6px 13px; }
  .pt-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-cta-btns { flex-direction: column; align-items: center; }
  .pt-btn-solid, .pt-btn-outline { width: 100%; justify-content: center; }
}