.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('../images/about.png');
  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;
  }
}


/* =====================================================
       GALLERY SECTION
    ===================================================== */

    .gallery-section {
        padding: 20px 5% 80px;
        background: #fff;
    }

    /* =====================================================
       GALLERY TABS
    ===================================================== */

    .gallery-tabs {
        max-width: 1250px;
        margin: 0 auto 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .gallery-tab {
        border: 1px solid #d8c8bb;
        background: #fff;
        color: #5c4638;
        padding: 13px 25px;
        border-radius: 30px;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .gallery-tab:hover {
        background: #8c5836;
        color: #fff;
        border-color: #8c5836;
    }

    .gallery-tab.active {
        background: #8c5836;
        color: #fff;
        border-color: #8c5836;
    }


    /* =====================================================
       GALLERY GRID
    ===================================================== */

    .gallery-category {
        display: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        max-width: 1250px;
        margin: 0 auto;
    }

    .gallery-category.active {
        display: grid;
    }


    .gallery-item {
        position: relative;
        height: 320px;
        overflow: hidden;
        border-radius: 12px;
        cursor: pointer;
        background: #f5f5f5;
    }


    .gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.5s ease;
    }


    /* Zoom icon */

    .gallery-item::after {
        content: "\f00e";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 55px;
        height: 55px;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translate(-50%, -50%) scale(0.7);
        background: rgba(140, 88, 54, 0.92);
        color: #fff;
        border-radius: 50%;
        opacity: 0;
        transition: all 0.3s ease;
    }


    .gallery-item:hover img {
        transform: scale(1.08);
    }


    .gallery-item:hover::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }


    /* =====================================================
       LIGHTBOX
    ===================================================== */

    .gallery-lightbox {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 999999;
    }


    .gallery-lightbox.active {
        display: flex;
    }


    .lightbox-content {
        position: relative;
        width: min(88vw, 1150px);
        height: min(82vh, 750px);
        display: flex;
        justify-content: center;
        align-items: center;
    }


    .lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
        transition: opacity 0.2s ease;
    }


    /* =====================================================
       CLOSE BUTTON
    ===================================================== */

    .lightbox-close {
        position: absolute;
        top: 25px;
        right: 30px;
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        z-index: 20;
        transition: 0.3s ease;
    }


    .lightbox-close:hover {
        background: #8c5836;
        transform: rotate(90deg);
    }

    /* =====================================================
       PREVIOUS / NEXT
    ===================================================== */

    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        z-index: 20;
        transition: 0.3s ease;
    }

    .lightbox-prev {
        left: 30px;
    }

    .lightbox-next {
        right: 30px;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: #8c5836;
        transform: translateY(-50%) scale(1.08);
    }

    /* =====================================================
       COUNTER
    ===================================================== */

    .lightbox-counter {
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        white-space: nowrap;
    }


    /* =====================================================
       TABLET
    ===================================================== */

    @media (max-width: 900px) {

        .gallery-category {
            grid-template-columns: repeat(2, 1fr);
        }

        .gallery-item {
            height: 280px;
        }

        .gallery-tabs {
            gap: 8px;
        }

        .gallery-tab {
            padding: 11px 18px;

            font-size: 13px;
        }

        .lightbox-prev {
            left: 15px;
        }

        .lightbox-next {
            right: 15px;
        }

    }


    /* =====================================================
       MOBILE
    ===================================================== */

    @media (max-width: 600px) {

        .gallery-section {
            padding: 10px 15px 60px;
        }


        .gallery-tabs {

            justify-content: flex-start;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 8px;
            padding: 5px 2px 15px;
            margin-bottom: 25px;
            scrollbar-width: none;
        }


        .gallery-tabs::-webkit-scrollbar {
            display: none;
        }


        .gallery-tab {

            flex: 0 0 auto;
            white-space: nowrap;
            padding: 10px 17px;
            font-size: 12px;
        }


        .gallery-category {

            grid-template-columns: 1fr;
            gap: 15px;
        }


        .gallery-item {

            height: 280px;
            border-radius: 10px;
        }


        .lightbox-content {

            width: 94vw;
            height: 70vh;
        }


        .lightbox-close {

            top: 15px;
            right: 15px;
            width: 42px;
            height: 42px;
            font-size: 18px;
        }


        .lightbox-prev,
        .lightbox-next {

            width: 42px;
            height: 42px;
            font-size: 16px;
        }


        .lightbox-prev {
            left: 10px;
        }


        .lightbox-next {
            right: 10px;
        }


        .lightbox-counter {
            bottom: -30px;
            font-size: 12px;
        }

    }
