/* ============================================================
   Sinnamart Portfolio / Thema Page CSS v1.1.0
   ============================================================ */
:root {
  --pt-primary: #0f8a44;
  --pt-primary-dark: #0a6633;
  --pt-navy: #0f172a;
  --pt-slate: #1e293b;
  --pt-muted: #64748b;
  --pt-border: #e2e8f0;
  --pt-light: #f8fafc;
  --pt-white: #ffffff;
  --pt-radius-lg: 20px;
  --pt-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --pt-shadow-md: 0 8px 28px rgba(15, 23, 42, 0.10);
  --pt-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --pt-transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body.pt-page-body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--pt-light);
  color: var(--pt-navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hero Section */
.pt-hero {
  background: linear-gradient(135deg, #071a0d 0%, #0a2410 50%, #071a0d 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 20px 70px;
  text-align: center;
}
.pt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 20% 30%, rgba(15, 138, 68, 0.22) 0%, transparent 70%),
              radial-gradient(ellipse 700px 400px at 80% 70%, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pt-hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.pt-hero-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 138, 68, 0.25);
  animation: pt-float 6s ease-in-out infinite;
}
.pt-hero-dot:nth-child(1) { width: 8px; height: 8px; top: 15%; left: 10%; animation-delay: 0s; }
.pt-hero-dot:nth-child(2) { width: 5px; height: 5px; top: 60%; left: 5%; animation-delay: 1s; }
.pt-hero-dot:nth-child(3) { width: 10px; height: 10px; top: 25%; right: 8%; animation-delay: 2s; }
.pt-hero-dot:nth-child(4) { width: 6px; height: 6px; top: 70%; right: 12%; animation-delay: 0.5s; }

@keyframes pt-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-18px); opacity: 1; }
}
@keyframes pt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pt-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.pt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 138, 68, 0.18);
  border: 1px solid rgba(15, 138, 68, 0.35);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.pt-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pt-pulse 2s ease-in-out infinite;
}
.pt-hero-title {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.pt-hero-title span {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pt-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.pt-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.pt-hero-stat {
  text-align: center;
  position: relative;
}
.pt-hero-stat::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.pt-hero-stat:last-child::after { display: none; }
.pt-hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
  display: block;
}
.pt-hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.pt-hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pt-btn-primary {
  background: linear-gradient(135deg, var(--pt-primary) 0%, #16a34a 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(15, 138, 68, 0.40);
  transition: all var(--pt-transition);
}
.pt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(15, 138, 68, 0.50);
}
.pt-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all var(--pt-transition);
}
.pt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Trust Bar */
.pt-trust {
  background: var(--pt-white);
  border-bottom: 1px solid var(--pt-border);
  padding: 14px 0;
}
.pt-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.pt-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pt-slate);
  white-space: nowrap;
}
.pt-trust-item svg { color: var(--pt-primary); }
.pt-trust-sep { color: #e2e8f0; }

/* Section & Container */
.pt-section {
  padding: 72px 0;
}
.pt-section-header {
  text-align: center;
  margin-bottom: 44px;
}
.pt-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 138, 68, 0.08);
  border: 1px solid rgba(15, 138, 68, 0.2);
  color: var(--pt-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pt-section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 900;
  color: var(--pt-navy);
  line-height: 1.22;
  margin-bottom: 12px;
}
.pt-section-sub {
  font-size: 0.98rem;
  color: var(--pt-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* Filter Bar */
.pt-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.pt-filter-btn {
  background: var(--pt-white);
  border: 1.5px solid var(--pt-border);
  color: var(--pt-slate);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--pt-transition);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--pt-shadow-sm);
}
.pt-filter-btn:hover {
  border-color: var(--pt-primary);
  color: var(--pt-primary);
  background: rgba(15, 138, 68, 0.05);
}
.pt-filter-btn.active {
  background: var(--pt-primary);
  border-color: var(--pt-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 138, 68, 0.30);
}
.pt-filter-count {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
}
.pt-filter-btn:not(.active) .pt-filter-count {
  background: rgba(15, 138, 68, 0.1);
  color: var(--pt-primary);
}

/* Portfolio Grid */
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pt-card {
  background: var(--pt-white);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  box-shadow: var(--pt-shadow-sm);
  border: 1px solid var(--pt-border);
  transition: all var(--pt-transition);
  cursor: pointer;
  position: relative;
}
.pt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pt-shadow-lg);
  border-color: rgba(15, 138, 68, 0.25);
}
.pt-card.hidden { display: none; }
.pt-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}
.pt-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}
.pt-card:hover .pt-card-img-wrap img {
  transform: scale(1.07);
}
.pt-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 11px;
  border-radius: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pt-card-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.pt-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 20, 0.88) 0%, rgba(10, 30, 20, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--pt-transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 3;
}
.pt-card:hover .pt-card-overlay { opacity: 1; }
.pt-card-overlay-cta {
  background: var(--pt-primary);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}
.pt-card:hover .pt-card-overlay-cta { transform: translateY(0); }
.pt-card-body {
  padding: 20px 22px 22px;
}
.pt-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pt-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.pt-card-desc {
  font-size: 0.82rem;
  color: var(--pt-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.pt-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pt-card-tag {
  background: rgba(15, 138, 68, 0.07);
  color: var(--pt-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

/* Process Section */
.pt-process {
  background: var(--pt-light);
  border-top: 1px solid var(--pt-border);
}
.pt-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.pt-process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--pt-primary) 0%, #4ade80 100%);
  border-radius: 2px;
  z-index: 0;
}
.pt-step {
  background: var(--pt-white);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all var(--pt-transition);
}
.pt-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--pt-shadow-md);
  border-color: rgba(15, 138, 68, 0.25);
}
.pt-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pt-primary) 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(15, 138, 68, 0.35);
}
.pt-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pt-navy);
  margin-bottom: 8px;
}
.pt-step-desc {
  font-size: 0.8rem;
  color: var(--pt-muted);
  line-height: 1.6;
}

/* CTA Banner Section */
.pt-cta-section {
  background: linear-gradient(135deg, #071a0d 0%, #0a2410 50%, #051205 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  text-align: center;
}
.pt-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 30% 50%, rgba(15, 138, 68, 0.20) 0%, transparent 70%),
              radial-gradient(ellipse 600px 300px at 70% 50%, rgba(22, 163, 74, 0.12) 0%, transparent 70%);
}
.pt-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.pt-cta-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.pt-cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 34px;
  line-height: 1.65;
}
.pt-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Lightbox Modal */
.pt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}
.pt-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.pt-lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: var(--pt-white);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.pt-lightbox.active .pt-lightbox-inner { transform: scale(1); }
.pt-lightbox-img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  background: #0f172a;
}
.pt-lightbox-info {
  padding: 24px;
  overflow-y: auto;
}
.pt-lightbox-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pt-navy);
  margin-bottom: 6px;
}
.pt-lightbox-cat {
  font-size: 0.8rem;
  color: var(--pt-primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.pt-lightbox-desc {
  font-size: 0.88rem;
  color: var(--pt-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.pt-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  z-index: 10;
}
.pt-lightbox-close:hover { background: rgba(0, 0, 0, 0.85); }

/* Animation on scroll */
.pt-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pt-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.pt-stagger-1 { transition-delay: 0.1s; }
.pt-stagger-2 { transition-delay: 0.2s; }
.pt-stagger-3 { transition-delay: 0.3s; }
.pt-stagger-4 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .pt-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-process-steps { grid-template-columns: repeat(2, 1fr); }
  .pt-process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .pt-hero { padding: 56px 16px 44px; }
  .pt-section { padding: 50px 0; }
  .pt-trust { display: none; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-process-steps { grid-template-columns: 1fr; }
}