/* =====================================
   BASIC
===================================== */

body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    font-family: "Cairo", sans-serif;
    color: #333;
}

/* =====================================
   HEADER WITH GRADIENT
===================================== */
.header {
    background: linear-gradient(135deg, #c12864, #33b7c6); 
    /* وردي فاتح ─ تركوازي فاتح */

    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
}


.header img {
    width: 80px;  /* ← كان 200px */
    transition: 0.3s ease;
}


/* =====================================
   HERO SECTION
===================================== */

.hero {
    padding: 60px 40px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* ====== Equal columns for hero (left / right) ====== */
.hero-content {
  display: flex;
  gap: 40px;
  align-items: stretch;      /* يضمن تطابق الارتفاع */
  justify-content: center;
  flex-wrap: wrap;           /* يسمح بالانتقال للعمود على الشاشات الصغيرة */
}

/* كل عمود ياخذ نفس الحيز */
.hero-left,
.hero-right {
  flex: 1 1 380px;           /* نمو، انكماش، والقيمة الأساسية */
  min-width: 300px;          /* تحكم أدنى للعرض قبل الانهيار للعمود */
  display: flex;
  flex-direction: column;
  justify-content: center;   /* محاذاة عمودية متساوية */
  padding: 18px;
  box-sizing: border-box;
}

/* محاذاة النص داخل العمود اليميني (RTL) */
.hero-right {
  text-align: right;
}

/* نص داخل الهيرو-ليفت يكون مركزي أفقيًا وأحيانًا لعرض الصورة */
.hero-left {
  text-align: center;
}

/* صورة الروبوت تتناسب مع الحيز ولا تكسر التصميم */
.robot-img {
  max-width: 100%;
  height: 100%;
  display: block;
  margin: 15px auto 0;
  object-fit: contain;
}

/* إذا أردنا أن نحدّد نفس الإرتفاع المرئي للعمود (خيار) */
.hero-left .box, .hero-right .box {
  width: 100%;
}

/* ====== Responsive: على الشاشات الصغيرة نصبح عمودين عموديًا ====== */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .hero-left,
  .hero-right {
    min-width: 100%;
    flex: 1 1 100%;
    text-align: center;      /* في الموبايل نخلي النص مركزي للعرض الأفضل */
  }

  .hero-right { text-align: center; }
}

.hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    color: #8b0034;
}

.hero-left h1 span {
    color: #008c9e;
}

.robot-img {
    width: 500px;
    margin-top: 20px;
}

.hero-right h2 {
    font-size: 28px;
    font-weight: 700;
    color: #8b0034;
}

.hero-right p {
    font-size: 18px;
    line-height: 36px;
}

/* =====================================
   PRICING BOXES
===================================== */

.pricing-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
}

.pricing-box {
    background: #fff;
    width: 380px;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.paid {
    color: #8b0034;
}

.free {
    color: #008c9e;
}

.sub {
    font-size: 18px;
    margin-bottom: 10px;
}

.limited {
    color: #8b0034;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.btn {
    display: block;
    background: linear-gradient(135deg, #8b0034, #008c9e);
    color: #fff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

/* =====================================
   FOOTER
===================================== */

.footer {
    background: #8b0034;
    padding: 15px;
    text-align: center;
    color: #fff;
    margin-top: 40px;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .pricing-section {
        flex-direction: column;
        align-items: center;
    }
}
/* ============================
   HOVER EFFECT FOR PRICING BOXES
=============================== */

.pricing-box {
    transition: all 0.35s ease-in-out;
    border-top: 6px solid transparent;
}

.pricing-box:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
    border-top: 6px solid;
    border-image: linear-gradient(135deg, #8b0034, #008c9e) 1;
}

/* Glow effect on title when hovered */
.pricing-box:hover .title {
    text-shadow: 0 0 8px rgba(139, 0, 52, 0.4),
                 0 0 12px rgba(0, 140, 158, 0.4);
    transition: 0.3s ease;
}

/* Button hover upgrade */
.pricing-box .btn:hover {
    background: linear-gradient(135deg, #008c9e, #8b0034);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* =========================================================
   GLOBAL RESPONSIVE FIXES
   ========================================================= */

img {
  max-width: 100%;
  height: auto;
}

/* GENERAL CONTAINER FIX */
body, html {
  overflow-x: hidden;
}

/* =========================================================
   HEADER RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
  .header {
    padding: 10px 0;
  }
  .header img {
    width: 130px;
  }
}

/* When scrolling on mobile */
@media (max-width: 600px) {
  .header.scrolled {
    padding: 5px 0;
  }
  .header.scrolled img {
    width: 110px;
  }
}

/* =========================================================
   HERO SECTION RESPONSIVE
   ========================================================= */

.hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.hero-left, 
.hero-right {
  flex: 1 1 100%;
  text-align: center;
  padding: 0 15px;
}

.hero-left h1 {
  font-size: 32px;
  line-height: 1.4;
}

.hero-right h2 {
  font-size: 24px;
}

@media (min-width: 768px) {
  .hero-left, .hero-right {
    flex: 1 1 45%;
    text-align: right;
  }
  .hero-left {
    text-align: center;
  }
}

/* =========================================================
   PRICING RESPONSIVE
   ========================================================= */

.pricing-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px;
}

.pricing-box {
  width: 100%;
  max-width: 400px;
}

@media (min-width: 900px) {
  .pricing-box {
    width: 380px;
  }
}

/* =========================================================
   TYPOGRAPHY RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
  p  { font-size: 16px; }
}

/* ===== Responsive Fix for Pricing Section ===== */

.pricing-section {
    display: flex;
    flex-wrap: wrap;            /* يسمح للنظام بالتفاف البوكسات */
    justify-content: center;
    gap: 25px;
    padding: 30px 15px;
}

.pricing-box {
    width: 100%;                /* للموبايل */
    max-width: 380px;           /* للتابلت واللابتوب */
    flex: 1 1 300px;            /* حلول ذكية للتجاوب */
    box-sizing: border-box;
}

/* للتابلت (عرض متوسط) */
@media (min-width: 600px) and (max-width: 999px) {
    .pricing-box {
        max-width: 45%;         /* بوكسين جنب بعض */
    }
}

/* للشاشات الكبيرة — يعود الوضع الطبيعي */
@media (min-width: 1000px) {
    .pricing-box {
        max-width: 380px;
    }
}
