:root {
  --primary: #f97316;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
}

body {
  color: var(--dark);
  /* background-color: var(--light) !important; */
  line-height: 1.6;
}

#portfolio-section {
  padding: 3rem 0;
}

.pf-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.pf-pill {
  padding: 8px 20px;
  border: none;
  border-radius: 50px;
  background-color: var(--gray-light);
  color: var(--gray);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pf-pill.active {
  background-color: var(--primary);
  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;
}

.modal-content {
  background: white;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px !important;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-light);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.modal-body {
  padding: 24px;
}

.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: 10px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: #e65c00;
}
