/* image-hover css created by Abdul Saboor*/

     * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container-12 {
  width: 100%;
  padding: 82px;
}

.image-grid-12 {
  display: flex;
  gap: 0;
  height: 60vh;
  min-height: 450px;
}

.image-card-12 {
  position: relative;
  height: 100%;
  width: 25%;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.6s ease;
}

.image-grid-12:hover .image-card-12 {
  width: 20%;
}

.image-card-12:hover {
  width: 40% !important;
}

.image-card-12 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-card-12:hover img {
  transform: scale(1.05);
}

/* Overlay */
.image-card-12::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8));
  z-index: 1;
  transition: background 0.2s ease;
}

.image-card-12:hover::before {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9));
}

/* Text */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(15px, 3vw, 30px);
  z-index: 2;
}

.card-title {
  color: #fff;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: bold;
  margin-bottom: 10px;
  transform: translateY(-35px);
  opacity: 0;
  transition: all 0.5s ease 0.15s;
}

.image-card-12:hover .card-title {
  transform: translateY(0);
  opacity: 1;
}

.card-description {
  color: #fff;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.6;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.6s ease 0.2s;
}

.image-card-12:hover .card-description {
  transform: translateY(0);
  opacity: 1;
}

/* 📱 Tablet View */
@media (max-width: 1024px) {
  .image-grid-12 {
    flex-wrap: wrap;
    height: auto;
  }

  .image-card-12 {
    width: 50% !important;
    height: 45vh;
  }

  .image-grid-12:hover .image-card-12 {
    width: 50% !important;
  }

  .image-card-12:hover {
    width: 50% !important;
    height: 50vh !important;
  }
}

/* 📱 Mobile View */
@media (max-width: 768px) {
    .container-12 {
  width: 100%;
  padding: 15px;
}
  .image-grid-12 {
    flex-direction: column;
    height: auto;
  }

  .image-card-12 {
    width: 100% !important;
    height: 22vh;
    /* min-height: 260px; */
  }

  .image-grid-12:hover .image-card-12 {
    width: 100% !important;
  }

  .image-card-12:hover {
    width: 100% !important;
    height: 30vh !important;
  }

  .about-img{
    height: 350px;
    width: 100%;
}
}

/* Extra Small Phones */
@media (max-width: 480px) {
  .card-title {
    font-size: 20px;
  }

  .card-description {
    font-size: 14px;
  }
}

.about-img{
    height: 460px;
    width: 100%;
}

.para-line{
    margin-top: 21px;
}

/* environment-section */

.environment-section {
    position: relative;
    background-image: url('../img/about/natural-1.webp'); /* Change to your background image */
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    color: #fff;
    text-align: left;
}

.env-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Slight dark overlay for text visibility */
}

.env-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.environment-section h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.environment-section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .environment-section h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .environment-section {
        text-align: center;
        padding: 100px 15px;
    }
    .environment-section h1 {
        font-size: 32px;
    }
    .environment-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .environment-section {
        padding: 80px 10px;
    }
    .environment-section h1 {
        font-size: 26px;
    }
}
