  /* =========================================
     SQUARESPACE-STYLE PORTFOLIO GALLERY (NO FILTERS)
     ========================================= */
  :root {
      --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
      --bs-primary: #009BDF;
      --shadow-strong: 0 20px 50px rgba(15, 23, 42, 0.12);
  }

  /* Borderless Gallery Cards */
  .portfolio-card {
      cursor: pointer;
      transition: transform 0.4s var(--ease-out-expo);
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
      background: transparent;
      border: none;
      outline: none;
      padding: 0;
      text-align: left;
  }

  /* Sleek Image Wrapper */
  .portfolio-image-wrapper {
      border-radius: 8px; 
      overflow: hidden;
      aspect-ratio: 4/3;
      background: #f8fafc;
      position: relative;
      border: 1px solid rgba(0,0,0,0.04);
      transition: box-shadow 0.5s var(--ease-out-expo);
      width: 100%;
  }
  
  .portfolio-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top; 
      transition: transform 0.8s var(--ease-out-expo);
  }

  /* Overlay Black Transparent Box for Text (Always Visible) */
  .portfolio-text-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 1.5rem 1.25rem 1.25rem;
      /* Gradient provides better legibility than a flat box */
      background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
      z-index: 2; /* below the hover button, above image */
      transition: padding-bottom 0.4s var(--ease-out-expo);
  }

  .portfolio-text-overlay .card-title {
      color: #ffffff;
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: -0.2px;
      margin-bottom: 0.15rem;
  }

  .portfolio-text-overlay .card-fit {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 0;
  }
  
  /* Minimalist Hover Overlay for Button (Hidden until hover) */
  .portfolio-overlay {
      position: absolute;
      inset: 0;
      /* Darken the image further on hover */
      background: rgba(15, 23, 42, 0.3); 
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.4s var(--ease-out-expo);
      z-index: 3; /* above everything inside the wrapper */
  }
  
  .portfolio-overlay .btn-view {
      background: #fff;
      color: #000;
      border: none;
      padding: 12px 32px;
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      border-radius: 50px;
      transform: translateY(15px);
      transition: transform 0.4s var(--ease-out-expo), box-shadow 0.3s ease;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .portfolio-overlay .btn-view:hover {
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
      transform: translateY(0) scale(1.02);
      color: var(--bs-primary);
  }

  /* Hover Actions */
  .portfolio-card:hover .portfolio-image-wrapper,
  .portfolio-card:focus .portfolio-image-wrapper {
      box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  }
  .portfolio-card:hover .portfolio-image-wrapper img,
  .portfolio-card:focus .portfolio-image-wrapper img {
      transform: scale(1.03); 
  }
  .portfolio-card:hover .portfolio-overlay,
  .portfolio-card:focus .portfolio-overlay {
      opacity: 1;
  }
  .portfolio-card:hover .portfolio-overlay .btn-view,
  .portfolio-card:focus .portfolio-overlay .btn-view {
      transform: translateY(0);
  }

  /* Option: slightly move text up on hover */
  .portfolio-card:hover .portfolio-text-overlay {
      padding-bottom: 1.75rem;
  }

  /* Mac-Style Browser Mockup (Inside Modal) */
  .browser-mockup {
      border-radius: 0.75rem;
      overflow: hidden;
      background: #fff;
      border: 1px solid rgba(0,0,0,0.08);
      width: 100%;
      box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  }
  .browser-header {
      height: 28px;
      background: #f1f5f9;
      display: flex;
      align-items: center;
      padding: 0 12px;
      gap: 6px;
      border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .browser-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
  }
  .browser-image-container {
      aspect-ratio: 16/10;
      position: relative;
      overflow: hidden;
  }
  .browser-image-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      position: absolute;
      top: 0;
      left: 0;
  }
  
  /* Animation classes */
  .fade-up-element {
      animation: fadeUpAnim 0.8s var(--ease-out-expo) forwards;
      opacity: 0;
      transform: translateY(30px);
  }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  
  @keyframes fadeUpAnim {
      to { opacity: 1; transform: translateY(0); }
  }

     /* Custom Before/After Slider Styling */
   .ba-slider-wrapper {
       position: relative;
       width: 100%;
       overflow: hidden;
       border-radius: 1rem; 
       box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
       aspect-ratio: 16 / 9; 
       background: #f8fafc;
   }

   .ba-slider-wrapper img {
       display: block;
       width: 100%;
       height: 100%;
       object-fit: cover;
       object-position: top center;
       pointer-events: none;
   }

   .ba-image-before {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       z-index: 1;
   }

   .ba-image-after {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       z-index: 2;
       clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); 
   }

   /* Invisible Range Slider */
   .ba-slider-input {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       z-index: 4;
       opacity: 0;
       cursor: ew-resize;
       margin: 0;
   }

   /* Custom Draggable Handle Line */
   .ba-slider-handle {
       position: absolute;
       top: 0;
       left: 50%; 
       width: 4px;
       height: 100%;
       background-color: var(--bs-primary);
       z-index: 3;
       transform: translateX(-50%);
       pointer-events: none; 
   }

   /* Handle Button containing the Font Awesome Icon */
   .ba-handle-btn {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
       width: 48px;
       height: 48px;
       background-color: var(--bs-primary);
       color: #fff;
       border: 4px solid #fff;
       border-radius: 50%;
       display: flex;
       align-items: center;
       justify-content: center;
       box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
   }

   /* Floating Labels */
   .ba-label {
       position: absolute;
       top: 20px;
       padding: 6px 16px;
       background: rgba(15, 23, 42, 0.75);
       color: #fff;
       border-radius: 50px;
       font-size: 0.85rem;
       font-weight: bold;
       letter-spacing: 1px;
       text-transform: uppercase;
       backdrop-filter: blur(5px);
       z-index: 3;
   }
   .ba-label-before { right: 20px; }
   .ba-label-after { left: 20px; }

   .custom-gallery-section {
  padding: 40px 0;
  overflow: hidden;
}

.custom-gallery-wrapper {
  width: 100%;
  overflow: hidden;
}

.custom-gallery-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: customGalleryScroll 45s linear infinite;
}

.custom-gallery-wrapper:hover .custom-gallery-track {
  animation-play-state: paused;
}

.custom-gallery-item {
  flex: 0 0 360px;
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.custom-gallery-item {
  position: relative;
  flex: 0 0 360px;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.custom-gallery-item img {
  width: 100%;
  aspect-ratio: 750/938;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.custom-gallery-item:hover img {
  transform: scale(1.03);
}

.custom-gallery-item::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.custom-gallery-item:hover::after {
  opacity: 1;
}
@keyframes customGalleryScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

@media (max-width: 767px) {
  .custom-gallery-item {
    flex-basis: 280px;
  }
}

.gallery-section {
  padding: 40px 0;
}


#galleryTabs .nav-link {
  background: none;
  border: none;
  border-radius: 0;
  color: #666;
  font-weight: 500;
  padding: 12px 20px;
  position: relative;
  transition: color .3s ease;
}

#galleryTabs .nav-link:hover {
  color: #000;
}

#galleryTabs .nav-link.active {
  background: none;
  color: var( --bs-primary );
}

#galleryTabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var( --bs-primary );
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-item a {
  display: block;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 750/938;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item a::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-item:hover a::after {
  opacity: 1;
}
    @media (max-width: 767.98px) {
        #galleryTabs .nav-link.active {
  background: var( --bs-light );
  color: var( --bs-dark );
}

#galleryTabs .nav-link.active::after {
  display: none;
}
        .gallery-container {
            max-height: 35vh;
            overflow-x: scroll;
        }
    }
