/* ===== PORTFOLIO PAGE STYLES ===== */

.small-hero {
  padding: 80px 20px;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.75)),
              url("../image/hero_1.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.small-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.small-hero p {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto;
  opacity: 0.9;
}

.portfolio-intro {
  max-width: 850px;
  margin: 40px auto 20px;
  padding: 0 20px;
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Filter Buttons */
.portfolio-categories {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #f2f4f7;
  color: #444;
  border: 1px solid #e2e8f0;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.filter-btn.active,
.filter-btn:hover {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
  transform: translateY(-2px);
}

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

.portfolio-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #edf2f7;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card-link:hover .portfolio-card {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border-color: #c62828;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #1a1a1a;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card-link:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-location {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
  margin-bottom: 8px;
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-content p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c62828;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  transition: color 0.3s ease;
}

.card-footer-btn .arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.portfolio-card-link:hover .card-footer-btn .arrow {
  transform: translateX(5px);
}

/* Call-to-Action */
.portfolio-cta {
  text-align: center;
  padding: 70px 20px;
  background: #111;
  color: #fff;
}

.portfolio-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.portfolio-cta p {
  margin-bottom: 25px;
  color: #aaa;
  font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
