/* ================= portfolio US BANNER ================= */
.portfolio-banner {
  width: 100%;
  height: 420px;

  position: relative;
  overflow: hidden;


  /* USE YOUR FULL IMAGE HERE */
  background: url("../images/portfolio/portfoliobanner.jpeg") no-repeat center/cover;
}

/* Dark gradient overlay (LEFT SIDE) */
.portfolio-banner::before {
  content: "";
  position: absolute;
  inset: 0;

  /* LEFT dark → RIGHT transparent (same as image) */
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.763) 0%,
      rgba(0, 0, 0, 0.581) 35%,
      rgba(0, 0, 0, 0.212) 55%,
      rgba(0, 0, 0, 0.014) 75%,
      transparent 100%);

  z-index: 1;
}

/* Content wrapper */
.portfolio-banner-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.portfolio-banner-content {
  padding-left: clamp(15px, 5vw, 80px);
  max-width: 600px;

}

/* Title */
.portfolio-banner-content h1 {
  color: #fff;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 4px;
}

/* Subtitle */
.portfolio-banner-content p {
  color: #ddd;
  font-size: 16px;
  font-weight: 400;
  font-family: "Catamaran", sans-serif;
}

@media (max-width: 992px) {
  .portfolio-banner {
    height: 320px;
  }

  .portfolio-banner-content {
    padding-left: 40px;
  }

  .portfolio-banner-content h1 {
    font-size: 32px;
  }

  .portfolio-banner-content {

    margin-top: 60px;
  }
}

@media (max-width: 576px) {
  .portfolio-banner {
    height: 250px;

  }

  .portfolio-banner-content {
    padding-left: 20px;
  }

  .portfolio-banner-content h1 {
    font-size: 26px;
  }

  .portfolio-banner-content p {
    font-size: 14px;


  }


  .portfolio-banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 60px auto 0px auto;
  }
}


/* SECTION */
.portfolio-section {
  padding: 60px 20px;
  background: #f5f6fa;
}

/* CONTAINER */
.portfolio-container {
  max-width: 1400px;
  margin: auto;
}

/* TOPBAR */




/* FILTER */
.portfolio-filter {
  display: flex;
  gap: 15px;
  margin: 30px auto 30px auto;
  flex-wrap: wrap;
  justify-content: center;
}

/* SLIDER BACKGROUND */
.filter-slider {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  transition: all 0.35s ease;
  z-index: 1;
}

/* WRAPPER BOX */
.filter-wrapper {
  position: relative;
  display: inline-flex;
  background: #e5e7eb;
  border-radius: 50px;
  padding: 5px;
  gap: 5px;
}

.portfolio-filter-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  transition: 0.3s;
}

.portfolio-filter-btn.active {
  color: #fff;
}

/* GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARD */
.portfolio-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-card-content {
  padding: 15px;
}

.portfolio-card-content h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.portfolio-card-content p {
  font-size: 13px;
  color: #777;
}

.portfolio-card-content span {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f1f1f1;
}

/* HOVER */
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ================= GROUPED VIEW ================= */

.portfolio-grouped {
  display: none;
}

.portfolio-group {
  margin-bottom: 50px;
}

.portfolio-group-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
  position: relative;
}

.portfolio-group-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 10px;
}

.portfolio-group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

  .portfolio-grid,
  .portfolio-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {

  .portfolio-grid,
  .portfolio-group-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= CTA SECTION ================= */
.portfolio-cta {
  width: 100%;
  background: #0b0b0b;
  padding: 80px 0;
}

/* CONTAINER */
.portfolio-cta-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT */
.portfolio-cta-left {
  max-width: 520px;
}

/* TITLE */
.portfolio-cta-left h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.3;
  font-family: "Montserrat", sans-serif;
}

/* LINE */
.cta-line {
  width: 80px;
  height: 3px;
  background: #fff;
  margin: 20px 0;
}

/* TEXT */
.portfolio-cta-left p {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.6;
  font-family: "Catamaran", sans-serif;
}

/* RIGHT */
.portfolio-cta-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BUTTON */
.cta-outline-btn {
  color: #fff;
  border: 2px solid #fff;
  padding: 14px 40px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s ease;
}

/* HOVER */
.cta-outline-btn:hover {
  background: #fff;
  color: #000;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .portfolio-cta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 0 30px;
  }

  .portfolio-cta-left h2 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .portfolio-cta {
    padding: 60px 0;
  }

  .portfolio-cta-left h2 {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .cta-outline-btn {
    padding: 12px 30px;
  }
}

/* ===== MODAL BASE ===== */
.portfolio-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.portfolio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OVERLAY */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

/* ===== CONTENT ===== */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  z-index: 2;
}

/* IMAGE */
.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

/* CLOSE BUTTON */
.modal-close {
  position: absolute;
  top: -35px;
  right: 0;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* ARROWS */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

/* DESKTOP POSITION */
.modal-prev { left: -50px; }
.modal-next { right: -50px; }


/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  .modal-content {
    width: 95%;
  }

  .modal-content img {
    max-height: 65vh;
  }

  /* arrows vitore niye aschi */
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }

  .modal-prev,
  .modal-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  /* close button fix */
  .modal-close {
    top: -30px;
    right: 5px;
    font-size: 24px;
  }
}


/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

  .modal-content img {
    max-height: 60vh;
  }

  .modal-prev,
  .modal-next {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .modal-close {
    font-size: 22px;
  }
}

/* ================= FILTER ANIMATION ================= */

/* EXIT - পুরনো cards fade out + scale down */
.portfolio-exit {
  animation: portfolioExit 0.3s ease forwards;
  pointer-events: none;
}

@keyframes portfolioExit {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    filter: blur(4px);
  }
}

.card-enter {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  animation: cardEnter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}