
.about-hero {
  position: relative;
  height: 70vh;
  background: url("../image/decor.jpeg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.about-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 10%;
  background: linear-gradient(120deg, #f4f9fb, #eef3f6);
  overflow: hidden;
}

/* LEFT CONTENT */
.about-left h5 {
  letter-spacing: 2px;
  color: #2f8f9d;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-left h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-left h1 span {
  background: linear-gradient(90deg, #2f8f9d, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-left p {
  font-size: 16px;
  color: #555;
  max-width: 500px;
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* feature pill */
.feature {
  display: flex;
  align-items: center;      /* KEY FIX */
  gap: 12px;

  background: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  width: 100%;

  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.feature p {
  margin: 0;               /* REMOVE default margin */
  line-height: 1;          /* KEY FIX */
  font-size: 15px;
  font-weight: 500;
}

.feature span {
  display: flex;           /* CENTER ICON */
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  border-radius: 50%;
  background: linear-gradient(135deg, #2f8f9d, #00e5ff);
  color: #fff;

  font-size: 14px;
  flex-shrink: 0;          /* PREVENT SHRINK */
}



.feature:hover {
  transform: translateY(-6px);
}

/* RIGHT IMAGE */
.about-right {
  position: relative;
}

.image-box {
  width: 420px;
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  animation: floatImg 6s ease-in-out infinite;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FLOATING IMAGE */
@keyframes floatImg {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-left {
  transform: translateX(-80px);
}

.reveal-right {
  transform: translateX(80px);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.about-section {
  padding: 80px 20px;
  background: #f7f7f7;
  overflow: hidden; /* Prevent scrollbar from appearing */
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  box-sizing: border-box; /* ensure padding doesn't overflow */
}

.about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  object-fit: cover; /* Prevent image overflow */
  transition: transform 0.5s ease;
}



.about-content.reverse {
  flex-direction: row-reverse;
}


.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 20px;
  color: #1f2d2b;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #555;
}

.about-text .primary-btn {
  padding: 12px 28px;
  background: #1f2d2b;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.about-text .primary-btn:hover {
  background: #000;
}

/* Fade-in Animations (if you want manual CSS fade) */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInLeft 1s forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight 1s forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content.reverse {
    flex-direction: column;
  }

  .about-image img {
    max-width: 90%;
    margin: auto;
  }

  .about-text {
    margin-top: 30px;
  }
}

@media (max-width: 900px) {
  .about-modern {
    flex-direction: column;
    text-align: center;
  }

  .about-left h1 {
    font-size: 36px;
  }

  .image-box {
    width: 100%;
    height: 420px;
  }
}
@media (max-width: 600px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}
