/* ========================================================
   PREMIUM PORTFOLIO REDESIGN CSS (HOVER OVERLAY CARDS)
======================================================== */

/* --- Portfolio Header --- */
.portfolio-header {
  position: relative;
  background-color: #05020a;
  color: white;
  padding: 190px 20px 100px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-top: 0px;
}

.portfolio-header small {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ff4d4d;
  display: none;
  margin-bottom: 15px;
  font-weight: 700;
}

.portfolio-header h1 {
  font-weight: 800;
  font-size: 52px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.portfolio-header p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .portfolio-header {
    padding: 140px 20px 80px 20px;
  }

  .portfolio-header h1 {
    font-size: 38px;
  }
}

/* --- Premium Professional Filter Tabs (Light / Base Theme) --- */
.portfolio-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  border-bottom: none;
}

.nav-tabs.portfolio-tabs {
  border-bottom: none;
  background: #f1f5f9;
  /* Sleek light base color */
  padding: 8px 10px !important;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  /* Very soft inner depth */
}

.nav-tabs.portfolio-tabs .nav-item {
  margin: 0 2px;
}

.nav-tabs.portfolio-tabs .nav-link {
  border: none;
  background: transparent;
  color: #64748b !important;
  /* Professional slate gray */
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.8px;
}

.nav-tabs.portfolio-tabs .nav-link::after {
  display: none;
}

.nav-tabs.portfolio-tabs .nav-link:hover {
  color: #0f172a !important;
  /* Darkens on hover */
  background: rgba(15, 23, 42, 0.04);
}

.nav-tabs.portfolio-tabs .nav-link.active {
  background: #7d141d !important;
  /* Brand Maroon Color */
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(125, 20, 29, 0.25);
  /* Premium soft glow */
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-tabs.portfolio-tabs {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 10px;
    justify-content: center;
  }

  .nav-tabs.portfolio-tabs .nav-item {
    margin: 4px;
  }

  .nav-tabs.portfolio-tabs .nav-link {
    margin-bottom: 0;
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* --- Premium Portfolio Cards (Redesigned) --- */
.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0b0f19;
  cursor: pointer;
  transition: all 0.4s ease;
}

.portfolio-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
}

/* The Image Background */
.portfolio-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
}

/* Dark Gradient Overlay for base readability */
.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-card:hover::after {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.1) 100%);
}

/* Glassmorphism Content Box */
.portfolio-content {
  position: relative;
  z-index: 3;
  margin: 15px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  transform: translateY(10px);
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
  background: rgba(25, 25, 30, 0.85);
  /* Dark solid look on hover */
  border-color: rgba(255, 77, 77, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Heading Styling */
.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.3;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0;
  transition: padding-bottom 0.4s ease, margin-bottom 0.4s ease;
}

.portfolio-card:hover .portfolio-title {
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.portfolio-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff4d4d;
  transition: width 0.4s ease;
}

.portfolio-card:hover .portfolio-title::after {
  width: 60px;
}

/* Info Styling */
.portfolio-client-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-client-info {
  max-height: 120px;
  opacity: 1;
  margin-top: 6px;
}

.portfolio-client-info b {
  color: #ff4d4d;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 3px;
}

.portfolio-client-info a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.portfolio-client-info a:hover {
  color: #ff4d4d;
}

/* Stylish Category Label */
.portfolio-category-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-category-tag {
  background: #7d141d;
  border-color: #ff4d4d;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

@media (max-width: 991px) {
  .portfolio-content {
    transform: translateY(0);
    background: rgba(25, 25, 30, 0.85);
    border-color: rgba(255, 77, 77, 0.3);
  }

  .portfolio-title {
    padding-bottom: 4px;
    margin-bottom: 2px;
  }

  .portfolio-title::after {
    width: 60px;
  }

  .portfolio-client-info {
    max-height: 120px;
    opacity: 1;
    margin-top: 6px;
  }

  .portfolio-card::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.1) 100%);
  }
}

/* --- Load More Button --- */
.load-more-wrapper {
  margin-top: 60px;
  text-align: center;
}

.btn-load-more {
  background: transparent;
  color: #7d141d;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  border: 2px solid #7d141d;
  box-shadow: 0 10px 20px rgba(125, 20, 29, 0.1);
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-load-more:hover {
  background: #7d141d;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(125, 20, 29, 0.3);
}

.btn-load-more i {
  transition: transform 0.4s ease;
}

.btn-load-more:hover i {
  transform: translateY(4px);
}
