.projects-section {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
  background-color: #121212;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      #121212 0%,
      #121212 38%,
      rgba(18, 18, 18, 0.85) 55%,
      rgba(18, 18, 18, 0.2) 100%);
  z-index: 2;
}

.container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-content {
  max-width: 650px;
}

.subtitle {
  color: #C89551;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.title .highlight {
  color: #C89551;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  color: #b3b3b3;
  /*margin-bottom: 3rem;*/
  max-width: 480px;
}

.features-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  position: relative;
}

.feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #999999;
}

@media (max-width: 992px) {
  .projects-section {
    padding: 50px 0;
  }

  .title {
    font-size: 2.5rem;
  }

  .features-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-item:not(:last-child)::after {
    display: none;
  }

  .background-image {
    width: 100%;
    opacity: 0.3;
  }

  .content-overlay {
    background: #121212;
    opacity: 0.8;
  }
}

/* 📍 Breadcrumb Styling */
.breadcrumb-nav {
  margin-bottom: 16px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.breadcrumb-item a:hover {
  color: var(--gold-accent);
  transform: translateY(-1px);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-item.active {
  color: #c89551;
  font-weight: 600;
}

.gallery-section {
  max-width: 1280px;
  margin: 0 auto;
}

/* ------------------------------------ */
/* Desktop Tab Navigation               */
/* ------------------------------------ */
.filter-nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-nav {
  display: inline-flex;
  background-color: #f0ede6;
  padding: 6px;
  border-radius: 8px;
  align-items: center;
  gap: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: #555555;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn svg {
  stroke: currentColor;
  transition: stroke 0.3s ease;
}

.filter-btn:hover {
  color: #a47343;
}

.filter-btn.active {
  background-color: #a47343;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(164, 115, 67, 0.25);
}

.filter-btn.active svg {
  stroke: #ffffff;
}

/* ------------------------------------ */
/* Mobile Dropdown Control (Hidden on PC)*/
/* ------------------------------------ */
.mobile-filter-select {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  background-color: #f0ede6;
  border: 1px solid #e8e5de;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

/* ------------------------------ */
/* Projects Grid Layout           */
/* ------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e5de;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card.hide {
  display: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .image-container img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.project-category {
  font-size: 0.825rem;
  color: #777777;
  margin-bottom: 1.25rem;
}

.view-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a47343;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.view-project-btn:hover {
  gap: 10px;
}

/* ------------------------------------ */
/* Mobile Responsive Breakpoints        */
/* ------------------------------------ */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {

  /* Hide desktop tab bar & show clean dropdown select on tablet/mobile */
  .filter-nav-wrapper {
    display: none;
  }

  .mobile-filter-select {
    display: block;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .image-container {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}