
/** portfolio-section **/

.portfolio-section{
  position: relative;
}

.portfolio-section .owl-carousel .owl-stage-outer{
  overflow: visible;
}

.portfolio-section .single-item-carousel{
  position: relative;
  max-width: 990px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
}

.portfolio-section .inner-container{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.portfilio-block-one .inner-box{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 30px;
}

.portfilio-block-one .inner-box .image-box{
  position: relative;
  display: block;
  border-radius: 12px;
}

    .portfilio-block-one .inner-box .image-box {
        position: relative;
        display: block;
        border-radius: 12px;
        overflow: hidden;
        height: 450px; /* fixed uniform height for all images */
    }

        .portfilio-block-one .inner-box .image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* keeps aspect ratio, crops overflow */
            border-radius: 12px;
            display: block;
        }

@media (max-width: 767px) {
    .portfilio-block-one .inner-box .image-box {
        height: 200px; /* reduce height on mobile */
    }
}

.portfilio-block-one .inner-box .image-box:before{
  position: absolute;
  content: '';
  background: -webkit-linear-gradient(90deg, rgba(0,0,0,1)0%, rgba(0,0,0,0.0) 100%);
  left: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 500ms ease;
}

.portfilio-block-one .inner-box .text-box{
  position: absolute;
  left: 0px;
  bottom: 0px;
  padding-left: 55px;
  z-index: 2;
  opacity: 0;
  transition: all 500ms ease;
}

.portfolio-section .owl-item.active .portfilio-block-one .inner-box .text-box,
.portfolio-section .owl-item.active .portfilio-block-one .inner-box .image-box:before,
.portfolio-style-two .portfilio-block-one .inner-box:hover .text-box,
.portfolio-style-two .portfilio-block-one .inner-box:hover .image-box:before{
  opacity: 1;
}

.portfolio-style-two .portfilio-block-one .inner-box:hover .text-box,
.portfolio-section .owl-item.active .portfilio-block-one .inner-box .text-box{
  bottom: 48px;
}

.portfilio-block-one .inner-box .text-box h2{
  display: block;
  font-size: 37px;
  line-height: 46px;
  margin-bottom: 7px;
}

.portfilio-block-one .inner-box .text-box h2 a{
  display: inline-block;
  color: #fff;
}

.portfilio-block-one .inner-box .text-box h2 a:hover{
  color: var(--theme-color);
}

.portfilio-block-one .inner-box .text-box p{
  font-size: 21px;
  color: #fff;
}

.portfolio-section .owl-nav{
  position: absolute;
  right: 0px;
  bottom: 0px;
}

.portfolio-section .owl-nav button{
  position: relative;
  display: inline-block;
  font-size: 35px;
  color: var(--title-color);
  cursor: pointer;
  transition: all 500ms ease;
}

.portfolio-section .owl-nav button.owl-prev{
  margin-right: 40px;
}

.portfolio-section .owl-nav button:hover{
  color: var(--theme-color);
}

.portfolio-section .owl-dots{
  position: absolute;
  left: 0px;
  bottom: 9px;
  counter-reset: slides-num;
  height: 30px;
  width: 120px;
}

.portfolio-section .owl-dots:before{
  position: absolute;
  content: '';
  background: #D9D9D9;
  width: 70px;
  height: 2px;
  left: 23px;
  top: 14px;
}

.portfolio-section .owl-dots::after {
  position: absolute;
  content: counter(slides-num);
  display: inline-block;
  line-height: 31px;
  font-size: 17px;
  color: var(--title-color);
  right: 0px;
  top: 0px;
}

.portfolio-section .owl-dot {
  display: inline-block;
  counter-increment: slides-num;
}

.portfolio-section .owl-dot span{
  display: none !important;
}

.portfolio-section .owl-dot.active::before {
  position: absolute;
  content: counter(slides-num);
  line-height: 31px;
  font-size: 17px;
  color: var(--title-color);
  left: 0px;
  top: 0px;
}


/** portfolio-style-two **/

.portfolio-style-two{
  position: relative;
}

.portfolio-style-two .filter-tabs{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 70px;
}

.portfolio-style-two .filter-tabs li{
  position: relative;
  display: inline-block;
  font-size: 17px;
  line-height: 30px;
  color: #515151;
  padding: 10px 40px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 500ms ease;
}

.portfolio-style-two .filter-tabs li.active{
  border-color: #9680EF;
}


/* Product Carousel Section */
/* Carousel inner-box styling */
.portfolio-block-one .inner-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: 0.3s all;
}

    .portfolio-block-one .inner-box:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.portfolio-block-one .product-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .portfolio-block-one .product-images img {
        max-width: 80px;
        border-radius: 8px;
    }

.portfolio-block-one h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-block-one p {
    font-size: 14px;
    color: #555;
}

.text-box {
    padding: 15px 10px;
}

    .text-box h2 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #222;
    }

        .text-box h2 a {
            color: #222;
            text-decoration: none;
        }

            .text-box h2 a:hover {
                color: #9b6cff; /* Theme accent color */
            }

    .text-box p {
        font-size: 14px;
        color: #555;
    }

/* Responsive tweaks */
@media (max-width: 992px) {
    .product-carousel img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .product-carousel img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .product-carousel img {
        height: 140px;
    }
}


/** rtl-css **/


/** responsive-css **/

@media only screen and (max-width: 1600px){

}

@media only screen and (max-width: 1200px){

}

@media only screen and (max-width: 991px){
  .portfolio-style-two .filter-tabs{
    display: block;
  }

  .portfolio-style-two .filter-tabs li{
    display: inline-block;
  }
}

@media only screen and (max-width: 767px){
  .portfolio-section{
    padding: 60px 0px 40px 0px;
  }

  .portfolio-section .owl-nav,
  .portfolio-section .owl-dots{
    display: none;
  }

  .portfolio-section .single-item-carousel{
    padding-bottom: 0px;
  }

  .portfolio-style-two{
    padding: 70px 0px 40px 0px;
  }

}

@media only screen and (max-width: 599px){
  .portfilio-block-one .inner-box .text-box{
    padding-left: 30px;
    bottom: 22px;
  }

  .portfilio-block-one .inner-box .text-box h2{
    font-size: 24px;
    line-height: 32px;
  }
}

@media only screen and (max-width: 499px){

}

/*trail portfolio*/
/* Boxed container */
.product-box {
    border: 1px solid #ddd; /* border for boxed look */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

/* Make the whole box clickable */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image container */
.image-container {
    width: 100%;
    height: 450px; /* bigger height */
    overflow: hidden;
    position: relative;
}

    /* Image styling */
    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* uniform cropping */
        display: block;
        transition: transform 0.3s ease;
    }

/* Zoom effect on hover */
.product-box:hover img {
    transform: scale(1.05);
}

/* Overlay for product name */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* hidden by default */
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Show overlay on hover */
.product-box:hover .overlay {
    opacity: 1;
}

/* Product name in overlay */
.overlay h2 {
    color: #fff !important; /* force white */
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .image-container {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .image-container {
        height: 250px;
    }
}

/* Permanent product name tag inside image */
.image-title-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: "Poppins", "Inter", sans-serif;
    z-index: 3;
    pointer-events: none; /* prevents interference with hover */
}

/* Increase text sharpness */
.image-title-tag {
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Adjust text size on mobile */
@media (max-width: 575px) {
    .image-title-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
}













































