/* Portfolio Projects Section */
.portfolio-projects {
  padding: 4rem 0;
  background-color: #fff;
}

.projects-header {
  margin-bottom: 2rem;
  text-align: center;
}

.projects-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #0d6efd, #de0284);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.projects-description {
  font-size: 1.1rem;
  color: #334155;
}

/* Filters Row */
.filters-row {
  align-items: center;
}

/* Search Input Styling */
.search-group {
  position: relative;
}

.search-group .form-control {
  padding: 5px 20px 5px 48px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  height: px;
}

.search-group .form-control:focus {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #e9ecef;
  outline: none;
}

/* Filter buttons styling */
.btn-outline-secondary {
  padding: 8px 20px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  color: #495057;
  background-color: white;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #495057;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 5px;
  padding: 5px 0;
}

.dropdown-item {
  padding: 8px 20px;
  font-size: 14px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
}
/* Projects Count */
.projects-count {
  font-size: 0.95rem;
}

/* Project Cards - Equal Height */
.project-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
  height: 100%; /* Ensures all cards take full height */
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.project-card .card-body {
  flex: 1; /* Makes card body expand to fill available space */
  display: flex;
  flex-direction: column;
  padding: 0rem !important;
}

.project-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.4;
  max-width: 85%;
}

.featured-badge {
  background: linear-gradient(90deg, #0d6efd, #de0284);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.project-card .card-text {
  color: #495057;
  font-size: 14px !important;
  line-height: 1.6;
}

/* Project Tags */
.project-tags .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  background-color: #dbfce7 !important;
}

/* Tech Stack Badges */
.tech-badge {
  background-color: transparent;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

/* Project Metrics */
.project-metrics {
  border-top: 1px solid #e2e8f0;
  padding: 1rem;
  margin-top: auto; /* Pushes metrics to bottom of card */
}

.metric-label {
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #0d6efd, #de0284);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* View Details Button */
.view-details-btn {
  text-decoration: none;
  background: linear-gradient(90deg, #0d6efd, #de0284);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  font-size: 14px !important;
  padding: 0;
}

.view-details-btn:hover {
  color: #0b5ed7;
}

.view-details-btn i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.view-details-btn:hover i {
  transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #newst {
    margin-top: 8px !important;
  }
  .projects-title {
    font-size: 2rem;
  }

  .project-card .card-title {
    font-size: 1.1rem;
    max-width: 75%;
  }

  .metric-value {
    font-size: 12px !important;
  }

  .project-card .card-body {
    padding: 0.3rem !important;
  }
}

/* Portfolio Projects Animations Only */

/* Keyframes (reuse if exists) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portfolio-projects {
  overflow: hidden;
}

.projects-title {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.projects-description {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.25s both;
}

.filters-row {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.projects-count {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.55s both;
}

/* Card internals stagger */
.card-title,
.featured-badge {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-out both;
}

.project-tags .badge:nth-child(1) {
  animation: fadeInUp 0.3s ease-out 0.9s both;
}
.project-tags .badge:nth-child(2) {
  animation: fadeInUp 0.3s ease-out 0.92s both;
}
.project-tags .badge:nth-child(3) {
  animation: fadeInUp 0.3s ease-out 0.94s both;
}

.tech-badge:nth-child(1) {
  animation: fadeInUp 0.3s ease-out 1s both;
}
.tech-badge:nth-child(2) {
  animation: fadeInUp 0.3s ease-out 1.02s both;
}

.metric-value {
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInUp 0.4s ease-out both;
}

.metric-value:nth-of-type(1) {
  animation-delay: 1.1s;
}
.metric-value:nth-of-type(2) {
  animation-delay: 1.12s;
}
.metric-value:nth-of-type(3) {
  animation-delay: 1.14s;
}
.metric-value:nth-of-type(4) {
  animation-delay: 1.16s;
}

.view-details-btn {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInUp 0.4s ease-out 1.2s both;
}
