<section id="portfolio">
  <div class="container">
    <div class="portfolio-header fade-up">
      <div><div class="section-eyebrow">Visual Showcase</div><h2>Our Portfolio</h2></div>
      <div style="display:flex; gap:12px; flex-wrap:wrap;">
        <button class="filter-btn active" style="font-size:11px; padding:8px 20px;">All</button>
        <button class="filter-btn" style="font-size:11px; padding:8px 20px;">Interior</button>
        <button class="filter-btn" style="font-size:11px; padding:8px 20px;">Exterior</button>
      </div>
    </div>
    <div class="portfolio-masonry fade-up">
      <div class="port-item"><div class="port-img-bg" style="background-image: url('assets/proto (1).jpg');"></div><div class="port-hover"><div class="port-hover-inner"><div class="port-cat">Interior</div><div class="port-title">Corporate HQ Lobby</div></div></div><div class="port-label">Interior</div></div>
      <div class="port-item"><div class="port-img-bg" style="background-image: url('assets/proto (2).jpg');"></div><div class="port-hover"><div class="port-hover-inner"><div class="port-cat">Residential</div><div class="port-title">Luxury Villa Exterior</div></div></div><div class="port-label">Residential</div></div>
      <div class="port-item"><div class="port-img-bg" style="background-image: url('assets/proto (3).jpg');"></div><div class="port-hover"><div class="port-hover-inner"><div class="port-cat">Infrastructure</div><div class="port-title">Bridge Construction</div></div></div><div class="port-label">Infrastructure</div></div>
      <div class="port-item"><div class="port-img-bg" style="background-image: url('assets/proto (4).jpg');"></div><div class="port-hover"><div class="port-hover-inner"><div class="port-cat">Interior</div><div class="port-title">Hotel Suite</div></div></div><div class="port-label">Interior</div></div>
      <div class="port-item"><div class="port-img-bg" style="background-image: url('assets/proto (5).jpg');"></div><div class="port-hover"><div class="port-hover-inner"><div class="port-cat">Commercial</div><div class="port-title">Office Tower Facade</div></div></div><div class="port-label">Commercial</div></div>
      <div class="port-item"><div class="port-img-bg" style="background-image: url('assets/proto (6).jpg');"></div><div class="port-hover"><div class="port-hover-inner"><div class="port-cat">Residential</ div>< div class="port-title">Modern Kitchen</ div ></ div ></ div >< div class =" port-label " > Residential </ div ></ div >
</section>

<style>
#portfolio { 
  padding: 120px 0; 
  background: var(--white); /* Changed to white background */
}
.portfolio-header { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  align-items: end; 
  margin-bottom: 48px; 
  gap: 40px; 
}
.portfolio-header h2 { 
  font-size: clamp(48px, 5vw, 72px); 
  color: var(--charcoal); /* Dark text for white background */
  margin-bottom: 0;
}
.portfolio-masonry { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  grid-template-rows: repeat(2, 280px); 
  gap: 20px; /* Increased gap for better spacing */
}
.port-item { 
  position: relative; 
  overflow: hidden; 
  cursor: pointer; 
  background-size: cover; 
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.port-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.port-item:nth-child(1) { grid-column: 1/3; grid-row: 1/2; }
.port-item:nth-child(2) { grid-column: 3/4; grid-row: 1/2; }
.port-item:nth-child(3) { grid-column: 4/5; grid-row: 1/2; }
.port-item:nth-child(4) { grid-column: 1/2; grid-row: 2/3; }
.port-item:nth-child(5) { grid-column: 2/4; grid-row: 2/3; }
.port-item:nth-child(6) { grid-column: 4/5; grid-row: 2/3; }
.port-img-bg { 
  position: absolute; 
  inset: 0; 
  background-size: cover; 
  background-position: center; 
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}
.port-item:hover .port-img-bg { 
  transform: scale(1.08); 
}
.port-hover { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transition: opacity var(--transition);
  border-radius: 8px;
}
.port-item:hover .port-hover { 
  opacity: 1; 
}
.port-hover-inner { 
  text-align: center; 
  transform: translateY(20px);
  transition: transform var(--transition);
}
.port-item:hover .port-hover-inner {
  transform: translateY(0);
}
.port-hover-inner .port-cat { 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 0.2em; 
  text-transform: uppercase; 
  color: var(--gold); 
  margin-bottom: 8px; 
}
.port-hover-inner .port-title { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 24px; 
  color: var(--white); 
  letter-spacing: 0.05em; 
}
.port-label { 
  position: absolute; 
  bottom: 16px; 
  left: 16px; 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  color: var(--white); 
  background: rgba(0,0,0,0.6); 
  padding: 6px 12px; 
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
/* Update filter buttons for white background */
#portfolio .filter-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 30px;
}
#portfolio .filter-btn:hover,
#portfolio .filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}
/* Update eyebrow for white background */
#portfolio .section-eyebrow {
  color: var(--gold);
}
#portfolio .section-eyebrow::before {
  background: var(--gold);
}
@media (max-width: 1024px) { 
  .portfolio-masonry { 
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: auto; 
    gap: 16px;
  } 
  .port-item:nth-child(n) { 
    grid-column: auto; 
    grid-row: auto; 
    aspect-ratio: 4/3; 
  }
  .portfolio-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 768px) { 
  .portfolio-masonry { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  .portfolio-header div:first-child {
    text-align: center;
  }
  .portfolio-header div:last-child {
    justify-content: center;
  }
}
</style>