:root {
  --primary: #FF8C00;
  --dark: #061E47;
  --light: #f8fafc;
  --gray: #475569;
  --gray-light: #e2e8f0;
}

#portfolio-section {
  color: var(--dark);
  line-height: 1.6;
  padding: 3rem 0;
}

.pf-filter-bar {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 0;
}

.pf-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  background-color: #ffffff;
  color: #061E47;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pf-pill.active,
.pf-pill:hover {
  background: linear-gradient(135deg, #061E47 0%, #0066FF 100%);
  border-color: #0066FF;
  color: white;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pf-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pf-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pf-card:hover .pf-img-wrap img {
  transform: scale(1.05);
}

.pf-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background-color: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.pf-link-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pf-link-btn:hover {
  background: var(--primary);
  color: white;
}

.pf-info {
  padding: 20px;
}

.pf-info h4 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.pf-info p {
  color: var(--gray);
  font-size: 14px;
}

.pf-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
}

.pf-no-results i {
  font-size: 48px;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.pf-no-results p:first-of-type {
  font-weight: 600;
  margin-bottom: 8px;
}

.pf-no-results p:last-of-type {
  color: var(--gray);
}

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tech-badge {
  background-color: var(--gray-light);
  color: var(--gray);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.project-modal .modal-content {
  background: white;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 18px !important;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

.project-modal .modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-light);
}

.project-modal .modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-modal .modal-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.project-modal .modal-body {
  padding: 24px;
}

.project-modal .modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 20px;
}

.modal-description {
  margin: 0 10px 10px;
  line-height: 1.7;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 10px 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .pf-grid {
    /* grid-template-columns: 2fr; */
  }
}

@media only screen and(max-width:500px) {
  .pf-pill {
    padding: 6px 15px;
    font-size: 12px !important;
  }
  .pf-grid {
    grid-template-columns: 1fr;
  }
}

.load-more-container {
  text-align: center;
  margin: 30px 0 0 0;
}

.load-more-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.3);
  transition: all 0.25s ease;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.45);
}


/* Technology Filter Bar, Responsive Sliders & Card Modal CTA */
.pf-filter-dock {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(6, 30, 71, 0.06);
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pf-slider-row + .pf-slider-row {
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.pf-slider-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 8px;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.pf-slider-track::-webkit-scrollbar {
  display: none;
}

.pf-slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #061E47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(6, 30, 71, 0.08);
  transition: all 0.2s ease;
}

.pf-slider-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #061E47 0%, #0066FF 100%);
  border-color: #0066FF;
  color: #ffffff;
  transform: scale(1.05);
}

.pf-slider-arrow:disabled {
  opacity: 0.32;
  cursor: default;
  box-shadow: none;
}

.pf-tech-filter-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

.pf-tech-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  background: #f1f5f9;
  padding: 7px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pf-tech-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .pf-filter-dock {
    padding: 10px 10px;
    border-radius: 14px;
    gap: 10px;
  }
  .pf-slider-row {
    gap: 6px;
  }
  .pf-slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .pf-tech-filter-label {
    display: none;
  }
}

.pf-tech-pill:hover,
.pf-tech-pill.active {
  background: #061E47;
  border-color: #061E47;
  color: #ffffff;
}

.pf-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.pf-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pf-card-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #0066ff;
}

.pf-card:hover .pf-card-cta {
  color: #061E47;
}
