.elementor-1486 .elementor-element.elementor-element-c97cb79{--display:flex;--min-height:400px;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:center;--align-items:center;--margin-top:0px;--margin-bottom:-32px;--margin-left:0px;--margin-right:0px;}.elementor-1486 .elementor-element.elementor-element-c97cb79:not(.elementor-motion-effects-element-type-background), .elementor-1486 .elementor-element.elementor-element-c97cb79 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#152552;}.elementor-1486 .elementor-element.elementor-element-450d3f5{margin:-20px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;}.elementor-1486 .elementor-element.elementor-element-5a71ac6{--display:flex;--min-height:372px;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;}.elementor-1486 .elementor-element.elementor-element-5a71ac6:not(.elementor-motion-effects-element-type-background), .elementor-1486 .elementor-element.elementor-element-5a71ac6 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#080E20;}.elementor-1486 .elementor-element.elementor-element-520b49c.elementor-element{--align-self:center;}body:not(.rtl) .elementor-1486 .elementor-element.elementor-element-520b49c{left:53px;}body.rtl .elementor-1486 .elementor-element.elementor-element-520b49c{right:53px;}.elementor-1486 .elementor-element.elementor-element-520b49c{top:-1428px;}/* Start custom CSS for html, class: .elementor-element-450d3f5 */.h{
      background: rgba(0,0,0,0.2);
      position: sticky;
  top: 68px; 
  height: 70px;              
  display: flex;
  align-items: center;
  justify-content: center;
      overflow: visible !important;
  z-index: 9;

  font-size: clamp(1.5rem, 5vw, 4rem);
  color: white;
  text-align: center;
  margin-bottom: 80px;
  margin-top: 100px;
  );

  width: 85vw;
}
.portfolio-parallax {
  background-image: url("http://mmchatai.ir/wp-content/uploads/2026/02/hero-section-background.webp");
  min-height: 80vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  position: relative;
}

/* لایه تیره برای خوانایی */
.portfolio-overlay {
  background: rgba(0,0,0,0.6);
  min-height: 220vh;
  padding: 10px 100px;
    overflow: visible !important;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-520b49c */.grid {
  column-count: 3;
  column-gap: 20px;
  padding: 50px 50px 50px 20px;
    top: 50px;
  padding: 50px 50px 50px 20px;
    transition: filter 0.4s ease, transform 0.4s ease;
    
    --fade: 0%;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black var(--fade),
    black 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black var(--fade),
    black 100%
  );
}
.item {
  display: none !important;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  
}


.item.show {
  display: block !important;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 15px;
  border: 3px solid rgba(255,255,255,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}


.item img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 2px rgba(0,0,0,0.4);
}

.item a {
  position: relative;
  display: block;
}

.item h4 {
  position: absolute;
  inset: 0; 
  display: flex;
  text-align: justify;
  background: rgba(0,0,0,0.55);
  color: white;
  opacity: 0;
  transition: 0.4s ease;
}

.item:hover h4 {
  opacity: 1;
}

.filter-bar {
  border: 2px solid white;
  position: sticky;
  top: 160px;
  z-index: 9;
      overflow: visible !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;

  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: fit-content;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {

  border-radius: 12px;
  padding: 10px 29px;

  cursor: pointer;
  background: rgba(0,10,10,0.1);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.filter-btn:hover {
  background: rgba(255,50,50,0.25);
  transform: translateY(-2px);
  border: none;
}

.filter-btn.active {
  background: rgba(255,50,50,0.8);
  box-shadow: 0 4px 20px rgba(255,50,50,0.5);
  transform: translateY(-2px);
    border: none;

}
@media (max-width: 900px) {
  .grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .grid {
    column-count: 1;
  }
}/* End custom CSS */