@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* ===== Reset ===== */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{
  margin: 0;
  padding: 0;
  width: 100%;
}
body{
  font-family:  'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  background: #0a1a33;
}

h1, h2, h3, h4 {
  font-weight: 800;
}

p {
  font-weight: 400;
}

/* ===== HERO FULL SCREEN ===== */
.hero{
  width: 100%;
  margin: 0;
}

.hero-card{
  width: 100%;
  height: 100vh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  border-radius: 0;   /* ✅ عشان ما يبان اللي ورا */
}

/* ===== Top pill ===== */
.top-pill{
  position: sticky;
  left: 20px;
  right: 20px;
  top: 20px;

  min-height: 30px;
  padding: 8px 12px;
  border-radius: 999px;
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.brand{
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo{
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
}

/* Nav */
.nav{
  display: flex;
  align-items: center; 
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link{
  text-decoration: none;
  color: rgba(24, 2, 83, 0.75);
  font-weight: 800;
  letter-spacing: .6px;
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  transition: .2s ease;
}
.nav-link:hover{
  background: rgba(0,0,0,.06);
  color: #000;
}

/* ===== Background image ===== */
.hero-image{
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,.10), transparent 40%),
    radial-gradient(ellipse at 80% 30%, rgba(255,255,255,.06), transparent 45%),
    linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05)),
    url("../img/Back.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
}

/* ===== About overlay ===== */
.wide-overlay{
  position: absolute;
  bottom: 90px;

  width: 720px;
  max-width: calc(100% - 80px);
  min-height: 300px;

  padding: 34px 38px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  z-index: 4;
}
/* ===== Position About Box based on language ===== */

/* English (LTR) → يسار */
html[dir="ltr"] .wide-overlay{
  left: 40px;
  right: auto;
}

/* Arabic (RTL) → يمين */
html[dir="rtl"] .wide-overlay{
  right: 40px;
  left: auto;
}

.wide-overlay h2{
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 900;
}
.wide-overlay p{
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  opacity: .95;
  text-align: justify;
}

/* Buttons */
.btn{
  text-decoration: none;
  background: rgba(2, 3, 83, 0.75);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  transition: .2s ease;
  display: inline-block;
  margin-top: 16px;
}
.btn:hover{ transform: translateY(-1px); }

/* Decorative */
.dots{
  position: absolute;
  width: 96px;
  height: 160px;
  background-image: radial-gradient(rgba(255,255,255,.45) 2px, transparent 2.6px);
  background-size: 18px 18px;
  opacity: .55;
  z-index: 2;
}
.dots-left{ left: 22px; top: 105px; }
.dots-right{ right: 22px; bottom: 80px; height: 120px; }

.corner{
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: rgba(255,255,255,.12);
  z-index: 2;
}
.corner-left{
  left: -24px;
  bottom: -24px;
  clip-path: circle(55% at 30% 70%);
}
.corner-right{
  right: -24px;
  top: 60px;
  clip-path: circle(55% at 70% 30%);
  opacity: .10;
}

/* ===== Sections ===== */
.section-block{
  padding: 56px 0;
  background: #f6f7fb;
}
.section-block + .section-block{
  border-top: 1px solid rgba(0,0,0,.06);
}

.container{
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 18px;
}

.section-head{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
	text-align: center;
	color: #1f2937;
}

.section-action{
  margin-top: 24px;
  display: flex;
  justify-content: center; /* يخليه بالنص */
}

/* About box */
.about-box{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-box p{
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

/* Companies grid */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.logo-card{
  height: 120px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-decoration: none;
  transition: .2s ease;
}
.logo-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
.logo-card img{
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Clients slider */
.logo-slider{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 14px 0;
}
.logo-track{
  display: flex;
  gap: 34px;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.logo-item{
  width: 170px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  pointer-events: none; /* not clickable */
  user-select: none;
}
.logo-item img{
  max-height: 58px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Industries chips */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* ===== Responsive ===== */
@media (max-width: 1000px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px){
  .top-pill{
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav{
    width: 100%;
    justify-content: flex-start;
  }
.wide-overlay{
    top: 140px;
    width: auto;
    max-width: calc(100% - 28px);
    padding: 22px;
  }

  /* LTR (EN) -> يسار */
  html[dir="ltr"] .wide-overlay{
    left: 14px;
    right: auto;
  }

  /* RTL (AR) -> يمين */
  html[dir="rtl"] .wide-overlay{
    right: 14px;
    left: auto;
  }

  .wide-overlay h2{ font-size: 30px; }
}

@media (max-width: 560px){
  .section-head{ flex-direction: column; justify-content: center; }
  .cards-grid{ grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
footer{
  width: 100%;
  color: #02173f;
  padding: 56px 0 28px;
  margin-top: 64px;
  text-align: center;
}

.footer-main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 36px;

  display: flex;
  flex-direction: column;  
  align-items: center;
  gap: 24px;                /* مسافة رأسية بينهم */
}

/* كل عمود */
.footer-col{
  text-align: center;
}

.footer-col span{
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.footer-col p{
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
}

.footer-col h3{
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

/* الجزء السفلي */
.footer-bottom{
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* روابط الفوتر */
.footer-menu{
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.footer-menu a{
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
}

.footer-menu a:hover{
  color: #fff;
}

.footer-copy{
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* ===== Mobile ===== */
@media (max-width: 700px){
  .footer-main{
    flex-direction: column;   /* بالجوال فوق بعض */
    gap: 24px;
  }

  .footer-bottom{
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* ===== Top pill base ===== */
.top-pill{
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== English (LTR) ===== */
/* كل شيء يسار، زر اللغة ينزاح يمين */
html[dir="ltr"] .brand,
html[dir="ltr"] .nav{
  order: 1;
}

html[dir="ltr"] .lang-btn{
  order: 2;
  margin-left: auto;   /* 👈 يدزه لليمين */
}

html[dir="rtl"] .lang-btn{
  order: 1;
  margin-right: auto;  /* 👈 يدزه لليسار */
}

.menu-toggle{
  display: none;
  background: transparent;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: #000;
}

@media (max-width: 768px){

  /* نخفي الروابط */
  .nav{
    position: absolute;
    top: 72px;
    right: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
  }

  /* لما تكون مفتوحة */
  .nav.active{
    display: flex;
  }

  .nav-link{
    color: #111;
    text-align: center;
  }

  /* نظهر زر ☰ */
  .menu-toggle{
    display: block;
  }
}

/* ===== Language Toggle Switch ===== */
.lang-switch{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
}

/* النص EN / AR */
.lang-label{
  font-size: 12px;
  font-weight: 800;
  color: rgba(24, 2, 83, 0.75);
}

/* السويتش */
.switch{
  position: relative;
  width: 42px;
  height: 22px;
}

.switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.slider{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.15);
  border-radius: 999px;
  cursor: pointer;
  transition: .3s ease;
}

.slider::before{
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* لما يكون AR */
.switch input:checked + .slider{
  background: #052255;
}

.switch input:checked + .slider::before{
  transform: translateX(20px);
}

/* داخل منيو الجوال */
@media (max-width: 768px){
  .lang-switch{
    justify-content: center;
    width: 100%;
  }
}

/* ===== MOBILE FIX (override) ===== */
@media (max-width: 768px){

  /* خلي الهيدر صف واحد مو عمود */
  .top-pill{
    left: 14px;
    right: 14px;
    top: 14px;

    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;

    padding: 10px 12px;
    min-height: 52px;
    gap: 10px;
  }

  /* اللوقو يصغر بس يظل واضح */
  .brand-logo{
    width: 200px;
    height: 200px;
  }

  /* زر الثلاث شرطات */
  .menu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    color: rgba(0,0,0,.75);
  }

  /* نخلي زر اللغة صغير وأنيق */
  .lang-btn{
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* البوكس (About) يصير تحت ومقاسه منطقي */

  .wide-overlay{
    top: auto !important;
    bottom: 18px !important;

    width: auto;
    max-width: calc(100% - 28px);

    padding: 18px;
    min-height: auto;
    border-radius: 18px;
	  text-align: center;
  }

  /* LTR (EN) -> يسار */
  html[dir="ltr"] .wide-overlay{
    left: 14px;
    right: auto;
  }

  /* RTL (AR) -> يمين */
  html[dir="rtl"] .wide-overlay{
    right: 14px;
    left: auto;
  }

  .wide-overlay h2{
    font-size: 24px;
    margin-bottom: 10px;
	  text-align: center;
  }

  .wide-overlay p{
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
  }

  /* زر Company Profile */
  .btn{
    padding: 10px 12px;
    font-size: 12px;
  }
}
/* CONTACT */
#contact {
  padding: 4rem 2rem;
  text-align: center;
  background: #f6f7fb;
}
#contact iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 0;
  background: #f6f7fb;
}