@import url("../variables.css");

/* ====== هيكل القسم ====== */
.hm-section { 
  background-color: #e9f3ff;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
  padding: 80px 70px;
  z-index: 1;
}

/* ====== خلفيات الأشكال ====== */
.hm-bg-shape {
  position: absolute;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
  max-width: 100%;
  box-sizing: border-box;
  animation: hm-float 6s ease-in-out infinite;
}

.hm-shape1a { top: 30%; left: 90%; width: 100px; animation-delay: 0s; }
.hm-shape2a { top: 10%; left: 50%; width: 200px; animation-delay: 1s; }
.hm-shape1b { bottom: 80%; left: 45%; width: 80px; animation-delay: 2s; }
.hm-shape2b { bottom: 20%; left: 25%; width: 200px; animation-delay: 3s; }
.hm-shape1c { bottom: 10%; left: 30%; width: 100px; animation-delay: 4s; }

@keyframes hm-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 600px) {
  .hm-shape1a { top: 30%; left: 10%; width: 60px; }
  .hm-shape2a { top: 10%; left: 50%; width: 120px; }
  .hm-shape1b { bottom: 80%; left: 80%; width: 40px; }
  .hm-shape2b { bottom: 10%; left: 50%; width: 120px; }
  .hm-shape1c { bottom: 10%; left: 30%; width: 50px; }
}

/* ====== التخطيط الرئيسي ====== */
.hm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

/* ====== النص ====== */
.hm-text-col {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  z-index: 1;
}

.hm-title {
  font-size: var(--fs-hero-title);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
  
}

.hm-main-color { color: #1D23D1; }
.hm-accent-color { color: #00B9F2; }

.hm-desc {
  font-size: var(--fs-subtitle);
  color: #333;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* ====== الزر ====== */
.hm-btn-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hm-btn {
  background-color: #00B9F2;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: var(--fs-button);
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.hm-btn:hover { background-color: #0099cc; }
.hm-btn-arrow { width: 18px; height: 18px; }

/* ====== الصورة ====== */
.hm-image-col {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 300px;
}

.hm-image-wrapper { position: relative; }
.hm-main-image {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  object-fit: cover;
}

/* ====== النص العمودي ====== */
.hm-vertical-text {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(-50%) rotate(90deg);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hm-mouse-icon { width: 14px; transform: rotate(-90deg); }
.hm-vertical-text span {
  color: #1D23D1;
  font-weight: 600;
}

/* ====== RTL ====== */
html[dir="rtl"] .hm-title { text-align: right; }
html[dir="rtl"] .hm-vertical-text { right: auto; left: 0; transform: rotate(90deg); }

/* ====== Responsiveness ====== */
@media (max-width: 1200px) {
  .hm-main-image { max-width: 600px; }
}

@media (max-width: 991px) {
  .hm-container {
    flex-direction: column-reverse;
    align-items: center; /* هذا يوسّط كل الأعمدة أفقياً */
    text-align: center;  /* يبقي النصوص داخل الأعمدة */
  }

  .hm-text-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* يوسّط كل محتويات العمود */
    max-width: 100%;
  }



  .hm-title-line {
    text-align: center;   /* يوسّط كل سطر داخل العنوان */
  }


  .hm-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hm-btn {
    margin: 0;
  }

  .hm-vertical-text {
    display: none;
  }
}



@media (max-width: 768px) {
  .hm-main-image { max-width: 500px; }
}

@media (max-width: 600px) {
  .hm-section { padding: 50px 30px; }
  .hm-main-image { max-width: 100%; height: auto; }

}
