/* ========== HERO SECTION ========== */
.mh-hero {
  position: relative;
  /* background: linear-gradient(135deg, #2ba0bd, #ffffff); */
  background: url("../png/footer-bg.png") center/cover
    no-repeat;

  padding: 120px 20px;
  overflow: hidden;
  color: #0f172a;
}

/* Animated Glows */
.mh-hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  animation: floatBlob 8s ease-in-out infinite alternate;
}

/* Container */
.mh-hero-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Content */
.mh-hero-content {
  flex: 1;
  min-width: 280px;
  animation: fadeInUp 1s ease forwards;
}

.mh-hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #0f172a;
}

.mh-hero-content h2 {
  font-size: 22px;
  font-weight: 500;
  color: #04048a;
  margin-bottom: 25px;
}

.mh-hero-content p {
  max-width: 550px;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 35px;
}

/* Hero Image */
.mh-hero-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.mh-hero-image img {
  width: 400px;
  max-width: 100%;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.15));
  border: #fff 4px solid;
}

/* 1. The Perspective Stage */
.mh-hero-image {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 20px; */
  z-index: 5;
}

.mh-hero-image img {
  width: 100%;
  max-width: 300px;
  transform: rotateX(5deg) rotateY(-25deg) rotateZ(0deg) skewY(4deg) scale(1.5);
  transform-origin: left center;
  backface-visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Animations */

/* RESPONSIVE */
@media (max-width: 992px) {
  .mh-hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .mh-hero-content h1 {
    font-size: 38px;
  }

  .mh-hero-content h2 {
    font-size: 20px;
  }

  .mh-hero-image img {
    width: 300px;
  }

  .mh-hero-image img {
    max-width: 500px;
    /* Flattening 3D effect for mobile legibility */
    transform: rotate(0deg);
    box-shadow: 0 26px 70px #03798b31;
    animation: floatMobile 5s ease-in-out infinite;
  }
}

@media (max-width: 600px) {
  .mh-hero {
    padding: 80px 16px;
  }

  .mh-hero-content h1 {
    font-size: 28px;
  }

  .mh-hero-content h2 {
    font-size: 18px;
  }

  .mh-hero-image img {
    width: 240px;
  }
}

.mh-hero-divider {
  width: 100%; /* Full width of the container/section */
  height: 1px; /* The thinnest possible line */
  background: rgba(
    0,
    0,
    0,
    0.199
  ); /* Very subtle gray, or use var(--ih-primary) with opacity */
  margin: 0; /* Remove margin to sit perfectly between sections */
  border: none;
}

/* ========== ABOUT SECTION ========== */
.mh-about {
  position: relative;
  padding: 50px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.mh-about-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.mh-about-bg-top {
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  /* background: radial-gradient(circle, rgba(79, 70, 229, 0.12), transparent 70%); */
}

.mh-about-bg-bottom {
  bottom: -160px;
  right: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12),
    transparent 70%
  );
}

.mh-about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr; /* Changed from 1.1fr 0.9fr */
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.mh-about-text {
  animation: mhSlideFade 1s ease forwards;
  padding-left: 20px; /* Optional: adds some breathing room */
}
.mh-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(79, 70, 229, 0.08);
  color: #04048a;
  font-size: 16px;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: 14px;
}

.mh-about-text h2 {
  font-size: 36px;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #0f172a;
}

.mh-about-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
  /* max-width: 620px; */
  margin-bottom: 18px;
  text-align: justify;
}

.mh-about-visual {
  position: relative;
  animation: mhFloatSoft 4.5s ease-in-out infinite;
}

.mh-about-card img {
  width: 100%;
  border-radius: 20px;
  padding: 30px;
  transform: rotateY(180deg); /* This flips the image upside down */
  transition: transform 0.5s ease; /* Optional: adds smooth transition */
}

.mh-floating {
  position: absolute;
  background: white;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 26px 70px #03798b31;
  animation: mhFloatSoft 6s ease-in-out infinite;
}

.mh-left {
  top: 20%;
  left: -60px;
}

.mh-right {
  bottom: 15%;
  right: -60px;
}

/* ========== RESPONSIVE STYLES ========== */

@media (max-width: 992px) {
  .mh-about {
    padding: 60px 20px;
  }

  .mh-about-container {
    /* Stack elements vertically */
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .mh-about-card {
    /* Move the image to the top on mobile, text below */
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .mh-about-text p {
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center text on mobile for better balance */
  }

  /* Adjust floating elements so they don't break layout width */
  .mh-left,
  .mh-right {
    display: none; /* Often best to hide these on small screens to avoid clutter */
  }
}

@media (max-width: 576px) {
  .mh-about-text h2 {
    font-size: 28px; /* Smaller heading for mobile phones */
  }

  .mh-about-card img {
    padding: 10px; /* Reduce padding to save space */
  }

  .mh-about-bg-top {
    width: 300px;
    height: 300px;
  }
}

/* FEATURES SECTION */
.features {
  position: relative; /* Required for the absolute pseudo-element */
  padding: 50px 20px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  overflow: hidden;
  z-index: 1;
}

/* Watermark Layer */
.features::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  /* Setting multiple background images */
  background-image: url("../png/business-model-icon.png"),
    url("../png/business-model-icon.png");

  background-position: top right, bottom left;

  background-repeat: no-repeat;
  background-size: 350px auto; /* Adjust size as needed */

  /* CONTROL OPACITY HERE */
  opacity: 0.05; /* 0.1 is 10% visibility, 0.05 is 5% */

  /* Optional: filter to make it grayscale or washed out */
  filter: grayscale(100%);
}

.features-container {
  max-width: 1600px;
  margin: auto;
}

/* HEADER */
.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header h2 {
  font-size: 34px;
  margin-bottom: 10px;
  color: var(--ih-primary);
}

.features-header p {
  max-width: 680px;
  margin: auto;
  font-size: 15px;
  line-height: 1.6;
  color: #017a8d;
}

/* GRID */
.features-grid {
  max-width: 950px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* CARD */
.feature-card {
  position: relative;
  padding: 26px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow: 0px 0px 5px #02414b31;
  overflow: hidden;
  transition: all 0.35s ease;
  border: 0.5px solid #05a1b9;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 8px 20px #03798b31;
  border: 1px solid #05a1b9;
}

/* HEADER ROW (IMAGE + TITLE) */
.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-head img {
  width: 62px;
  height: 62px;
  padding: 10px;
  border-radius: 14px;
  /* background: linear-gradient(135deg, #04048a, #6366f1); */
  border: 1px solid rgba(79, 70, 229, 0.35);
  /* box-shadow: 0 10px 30px rgba(79,70,229,0.35); */
  object-fit: contain;
  transition: transform 0.35s ease;
}

.feature-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

/* CONTENT */
.feature-card ul {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  padding-left: 18px;
  margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Large laptops */
@media (max-width: 1400px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablets / small laptops */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 900px) {
  .features {
    background-size: 150px auto, 150px auto, auto;
    background-position: top -20px right -20px, bottom -20px left -20px;
  }

  .features-header h2 {
    font-size: 30px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .features {
    padding: 70px 14px;
  }

  .features-header h2 {
    font-size: 26px;
  }

  .features-header p {
    font-size: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-head img {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .feature-head h3 {
    font-size: 14px;
  }

  .feature-card ul {
    font-size: 12.5px;
  }
}

/* WHY CHOOSE SECTION */
.why-choose {
  padding: 50px 20px;
  background: #f3f4f6;
}

.why-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.why-title {
  font-size: 36px;
  color: var(--ih-primary);
  margin-bottom: 15px;
}

.why-subtitle {
  font-size: 16px;
  color: var(--ih-secondary);
  max-width: 720px;
  margin: auto;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* FEATURES GRID */
.why-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* CARD */
.why-feature {
  flex: 1;
  min-width: 220px;
  text-align: center;
  transition: transform 0.3s ease;
}

.why-feature:hover {
  transform: translateY(-6px);
}

/* ICON CIRCLE */
.why-icon {
  width: 80px;
  height: 80px;
  margin: auto;
  margin-bottom: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;

  /* Default state */
  background: white;
  color: #01a1b2;

  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, 0.35);

  box-shadow: 0px 0px 5px #02414b31;

  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* FILL ON CARD HOVER */
.why-feature:hover .why-icon {
  transform: scale(1.1);
  box-shadow: 0 26px 70px #03798b31;
}

/* TEXT */
.why-feature h3 {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 10px;
}

.why-feature p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* SECTION BASE */
.mh-for {
  padding: 50px 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.mh-for-container {
  max-width: 1200px; /* Increased slightly for better 2-column balance */
  margin: auto;
}

/* HEADINGS */
.mh-for h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--ih-primary);
  font-weight: 500;
}

.mh-for-subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
  font-size: 16px;
  color: var(--ih-secondary);
  line-height: 1.6;
}

/* FLEX WRAPPER */
.mh-for-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* LEFT SIDE: LIST */
.mh-for-list {
  flex: 1.2; /* Slightly more room for text */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* RIGHT SIDE: IMAGE */
.mh-for-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mh-for-image img {
  max-width: 100%;
  height: auto;
}

/* LIST ROWS */
.mh-for-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mh-for-row:hover {
  background: #ffffff;
  box-shadow: 0 8px 20px #03798b31;
  transform: translateX(8px);
}

/* ICON STYLING */
.mh-for-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px; /* Squircle look */
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.mh-for-row:hover .mh-for-icon {
  background: #9590f6;
  color: #ffffff;
  border-color: #9590f6;
}

/* CONTENT TEXT */
.mh-for-content h4 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #1e293b;
  font-weight: 600;
}

.mh-for-content p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* FOOTER */
.mh-for-footer {
  margin-top: 80px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  color: var(--ih-primary);
  padding: 20px;
  border-top: 1px solid #e2e8f0;
}

/* UTILITY: SMALL NUMBER */
.small-num {
  font-size: 0.75em;
  vertical-align: baseline;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .mh-for-content-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .mh-for-list {
    order: 1;
  }

  .mh-for-image {
    order: 2;
    max-width: 80%;
  }

  .mh-for-row:hover {
    transform: none; /* Disable horizontal shift on mobile for better UX */
  }
}

@media (max-width: 600px) {
  .mh-for h2 {
    font-size: 28px;
  }
  .mh-for-image {
    max-width: 100%;
  }
}

/* SECURITY SECTION */
.mh-security {
  padding: 50px 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.mh-security-container {
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.mh-security-header {
  text-align: center;
  max-width: 760px;
  margin: auto;
  margin-bottom: 70px;
}

.mh-security-header h2 {
  font-size: 34px;
  color: var(--ih-primary);
  margin-bottom: 14px;
}

.mh-security-header p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ih-secondary);
}

/* GRID */
.mh-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

/* ITEM */
.mh-security-item {
  background: white;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0px 0px 5px #02414b31;
  transition: all 0.35s ease;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}

.mh-security-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px #03798b31;
}

/* ICON */
.mh-security-item .icon {
  font-size: 28px;
  line-height: 1;
  margin-top: 4px;
}

/* TEXT */
.mh-security-item strong {
  font-size: 14px;
  color: #0f172a;
  display: block;
  margin-bottom: 6px;
}

.mh-security-item p {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* FOOTER */
.mh-security-footer {
  text-align: center;
  max-width: 680px;
  margin: auto;
}

.mh-security-footer h4 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 10px;
}

.mh-security-footer p {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 18px;
}

.mh-security-lock {
  font-weight: 400;
  color: var(--ih-primary);
}

/* RESPONSIVE SECURITY SECTION */

/* Tablets */
@media (max-width: 1024px) {
  .mh-security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .mh-security {
    padding: 100px 20px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .mh-security {
    padding: 80px 16px;
  }

  .mh-security-header h2 {
    font-size: 28px;
  }

  .mh-security-header p {
    font-size: 14px;
  }

  .mh-security-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mh-security-item {
    padding: 24px 20px;
  }

  .mh-security-item .icon {
    font-size: 24px;
  }

  .mh-security-item strong {
    font-size: 13px;
  }

  .mh-security-item p {
    font-size: 12.5px;
  }

  .mh-security-footer h4 {
    font-size: 16px;
  }

  .mh-security-footer p {
    font-size: 13px;
  }

  .mh-security-lock {
    font-size: 13px;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .mh-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mh-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes mhFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mhSlideFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mhFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes mhFloatSoft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .mh-about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mh-about-text p {
    max-width: 100%;
  }

  .mh-floating {
    display: none;
  }
}
