.mainp-header {
  /* height: 100vh; */
  /* padding: 17rem; */
  /* padding-top: 8rem; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* flex-direction: column; */
  gap: 8rem;
}

.p-header-img {
  overflow: hidden;
}

.p-main-img {
  width: 45%;
  /* position: relative;
    z-index: -1;
    height: 50rem;
    width: 40rem; */
}

.div-project-header {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.p-header-title {
  font-size: 5rem;
  color: var(--dark-text-color);
  font-weight: 400;
}

.p-header-para {
  font-family: poppins, sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--sub-text-color);

  padding-top: 2rem;
}

.p-header-overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 80%;
  height: 18rem;
  flex-direction: column;
  background-color: #e5d9cf;
  padding: 0 2.4rem;
  margin: 1.2rem 0;
}

.p-overlay-align {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    width: 100%;
}

.overlay-title {
  font-family: poppins, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--sub-text-color);
}

.overlay-subtitle {
  font-family: poppins, sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--sub-text-color);
}

.sub-content {
  margin: 12rem 4.2rem;
}

.p-about-title {
  font-size: 4.2rem;
  color: var(--dark-text-color);
  font-weight: 400;
}

/* .p-about-para-div {
  padding: 0rem 2rem;
} */

.p-about-para {
  font-family: poppins, sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--sub-text-color);
  padding-top: 4rem;
}

.img-container {
  padding: 7rem 0rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-image {
  height: 72rem;
}

.div-project-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  margin-top: 3.2rem;
}

.div-project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  width: 90vw;
  padding: 2rem;
}

.div-project-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}



/* Carousel Styles */
.div-carousel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.carousel-overlay-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.overlay-content {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: transparent;
}

.overlay-content img {
    max-width: 1200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4.2rem;
    color: white;
    cursor: pointer;
    z-index: 1003;
    padding: 1rem;
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 50%;
    transition: all 0.3s ease;
}



.scroll-left {
    left: 2rem;
}

.scroll-right {
    right: 2rem;
}

.btn-close-carousel {
    position: absolute;
    top: 1rem;
    left: 1rem;
    left: auto;
    font-size: 4.2rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}


.hidden-carousel {
    display: none !important;
}
@media (max-width: 769px) {
  .mainp-header {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
  }

  .p-header-img,
  .div-project-header {
    width: 100%;
  }

  .p-header-title {
    font-size: 4.2rem;
  }

  .p-header-overlay {
    flex-direction: column;
    padding: 2rem;
    height: auto;
    gap: 2rem;
    width:90%;
  }

  .p-overlay-align {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 0;
  }

  .overlay-title,
  .overlay-subtitle {
    font-size: 1.4rem;
  }

  .sub-content {
    margin: 4rem auto;
  }

  .p-about-title {
    font-size: 3.6rem;
  }

  .p-about-para {
    font-size: 1.6rem;
    padding-top: 2rem;
  }

  .img-container {
    padding: 3rem 0;
  }

  .p-main-image {
    max-height: 100%;
  }

  .project-img {
    height: 25rem;
  }
}

@media (max-width: 480px) {
  .p-header-title {
    font-size: 3.2rem;
    text-align: center;
    width: 100%;
  }

  .p-header-para {
    font-size: 1.4rem;
    text-align: center;
    padding: 1.5rem;
  }

  .div-project-gallery {
    grid-template-columns: 2fr;
    width: 100%;
    padding: 2.5rem;
    gap: 1.5rem;
  }

  .div-project-img {
    aspect-ratio: 4/3;
    width: 100%;

  }

  .project-img {
    height: 100%;
  }

  .p-main-img {
    width: 100%;
    margin: 0 auto;
  }

  .p-header-overlay {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .overlay-title, 
  .overlay-subtitle {
    font-size: 1.3rem;
  }

  /* Improve carousel controls for mobile */
  /* .scroll-arrow {
    font-size: 2.4rem;
    padding: 0.8rem;
  } */

  .scroll-left {
    left: -1rem;
  }

  .scroll-right {
    right: -1rem;
  }

  .btn-close-carousel {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 4rem;
    left:auto;
  }

  .overlay-content img {
    max-width: 95%;
    max-height: 85vh;
  }

  .sub-content {
    margin: 3rem 1.5rem;
  }

  .p-about-title {
    font-size: 2.8rem;
    text-align: center;
  }

  .p-about-para {
    font-size: 1.4rem;
    padding: 1.5rem;
    text-align: justify;
  }
}

/* Client Quote Section */
.client-quote-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    margin-top: -9rem;
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.quote-text {
    font-size: 2rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
}

.quote-author {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Next Project Navigation */
.next-project-section {
    text-align: center;
    background-color: var(--bg-white);
}

.next-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: #4c4037;
    border: 1px solid #4c4037;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Manrope', sans-serif;
}

.next-project-btn:hover {
    background-color: #4c4037;
    color: #fff;
}

/* Hide the icon as per the design */
.next-project-icon {
    display: none;
}

/* Responsive styles for next project button */
@media (max-width: 768px) {
    .next-project-section {
        padding: 4rem 0;
    }
    
    .next-project-btn {
        padding: 0.9rem 2.2rem;
        font-size: 1.2rem;
        letter-spacing: 1.8px;
    }
}

@media (max-width: 480px) {
    .next-project-section {
        padding: 3rem 0;
    }
    
    .next-project-btn {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }
}

/* Base style for section titles */
.section-title {
  font-size: 5rem;
  font-weight: 300;
  color: var(--dark-text-color);
  margin-bottom: 1rem;
  text-align: left; /* ✅ always left aligned */
  line-height: 1;
}

/* Tablet screens */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
  }
}

/* Mobile screens */
@media screen and (max-width: 480px) {
  .section-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
  }
}
