/* portfolio.css */

.content {
  padding: 0;
  margin-top: 0;
}

/* Hero Section - Inherited from main.css */


/* Portfolio Wrapper */
.portfolio-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Filter Section */
.filter-section {
  text-align: center;
  margin-bottom: 60px;
}

.filter-intro h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.filter-intro p {
  color: #7f8c8d;
  margin-bottom: 30px;
}

.custom-select {
  position: relative;
  display: inline-block;
  min-width: 250px;
}

.custom-select select {
  width: 100%;
  padding: 12px 25px;
  font-size: 1.1rem;
  color: #2c3e50;
  background-color: white;
  border: 2px solid #3498db;
  border-radius: 50px;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.custom-select::after {
  content: '▼';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #3498db;
  pointer-events: none;
}

.custom-select select:hover {
  background-color: #f8f9fa;
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

/* Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
}

/* Portfolio Card */
.portfolio-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s;
}

.portfolio-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-image:hover .card-overlay {
  opacity: 1;
}

.view-btn {
  padding: 10px 25px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s;
}

.view-btn:hover {
  background: white;
  color: #2c3e50;
}

.card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.card-body p {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.card-footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.card-footer a:hover {
  color: #1e3c72;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}