/* Reset */
* { margin:0;
    padding:0; 
    box-sizing: border-box; 
    max-width: 100%;
   
 }
html, body {
   height:100%;
   overflow-x: hidden;
   
   
   }
body {
  font-family: 'Almarai', Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;

}
body.lang-en {
  direction: ltr;
}

/* Sections general */
.section { min-height:100vh; padding:100px 20px 80px; display:flex; align-items:center; justify-content:center; }
.container { width:90%; max-width:1200px; margin:0 auto; }


/* NAVBAR */

.navbar {
  direction: ltr;
  position: fixed;
  top:0;
  left:0;
  right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 40px;
  z-index:1000;
  background: transparent;
  isolation: isolate;
  box-shadow: none;
}
/* الخلفية والبلور بقوا في طبقة منفصلة (::before) عشان يمنعوا خط/ظل الرندر اللي كان ظاهر عند حافة الناف بار */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}
.swiper {
  max-width: 100%;
  overflow: hidden;
}
.logo img { height: 56px; display:block; }
.nav-links { list-style:none; display:flex; gap:18px; align-items:center;   order: 2;}
.nav-links a { color:#fff; text-decoration:none; font-weight:700; padding:8px 6px; }
.nav-links  a:hover { color:#b1621d; }
.lang-btn { background:#b1621d; color:#fff; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; font-weight:700; }
.nav-actions { order: 3;}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.logo {
  order: 1;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* HOME */

.home-section {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding: 90px 20px 40px;
  background: radial-gradient(ellipse at 50% 15%, #16174a 0%, #0b0b2e 55%, #05050f 100%);
  overflow:hidden;
  color:#fff;
}

/* خلفية النجوم المتحركة */
.home-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.logo-area,
.home-text {
  position: relative;
  z-index: 1;
}

.logo-area {
  display: flex;
  justify-content: center;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

/* حاوية السمبوكسه + اليد */
.samboksa-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.samboksa {
  position: relative;
  width: 160px;
  z-index: 2;
  animation: fadeInUp 1.2s forwards;
}
/* اليد داخل السمبوكسه */
.hand {
  position: absolute;
  width: 85px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: fadeInUp 1.4s forwards, handMove 3s ease-in-out infinite;
}

/* كلمة DONE */
.done-text {
  margin-top: 10px;
  width: 150px;
  animation: fadeInUp 1.6s forwards, textPulse 4s ease-in-out infinite;
}

/* الحركات */

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 #d4af37;
  }
  50% {
    transform: scale(0.95);
    box-shadow: 0 0 10px #d4af37;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 #d4af37;
  }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes handMove {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}

@keyframes textPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

/* النص والزر */

.home-text {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-text h1 {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  min-height: 1.3em;
}
.home-text h1.typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-inline-start: 4px;
  background: #b1621d;
  vertical-align: -0.1em;
  animation: caretBlink 0.8s steps(1) infinite;
}
.home-text a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background: #b1621d;
  color: #0b0b2e;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  outline: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s, box-shadow 0.3s;
}
.home-text a.visible {
  opacity: 1;
  transform: translateY(0);
}
.home-text a:hover {
  background: #b1621d;
  box-shadow: 0 0 15px #b1621d;
  transform: scale(1.05);
}
.home-text a:active {
  animation: pulse 0.3s ease;
}

/* SERVICES */

#services {  background: radial-gradient(circle at top, #0b0b2e, #000);
 padding: 140px 0; }
#services h2 {
   text-align:center;
    color:#b1621d; 
    font-size:34px;
    margin-bottom:30px;
    font-weight:800; 
  }
.services-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr); 
  gap:28px;
  align-items:stretch;
}
.service-desc {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.6;
  text-align: center;
  /* بتقطع الكلام عند 3 سطور وتفضل موحدة لحد ما المستخدم يدوس "قراءة المزيد" */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-desc.expanded-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
   position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 20px;
  width: 100%;
  height: 340px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin: 0 auto;
}
.service-card.expanded {
  height: auto;
}
.service-card h3 {
  min-height: 44px;
}
.see-more-btn {
  background: none;
  border: none;
  color: #b1621d;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  padding: 0;
}
.see-more-btn:hover { text-decoration: underline; }
.section-two {
  position: relative;
  background: url('image/bg2.png') center/cover no-repeat;
  overflow: visible; 
  opacity: 0.1;
}

.overlay-img {
  position: absolute;
  top: -20px;     
  right: 0;  
  width: 100%;
  max-width: 100%;   
  pointer-events: none; 
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(243, 178, 58, 0.4);
}

 .icon-wrapper { width:140px; height:140px; margin:0 auto 16px; position:relative; display:flex; align-items:center; justify-content:center; }
 .samboxa { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:120px; transition: transform .6s ease; z-index:1; }
 .icon-img { width:56px; height:56px; position:relative; z-index:2; }
 .service-card:hover .samboxa {
   transform: translate(-50%,-50%) rotate(45deg) scale(1.05); 
   transition: transform 0.6s ease;

  }
.service-card h3 { color:#f3b23a; margin-bottom:8px; font-size:18px; }

/* PROJECTS */
#projects {
   padding-top:120px; 
   background: radial-gradient(circle at top, #020118, #000); }
#projects h2 {
   color:#b1621d;
   text-align:center;
   font-size:34px;
   margin-bottom:30px; } 
   
.project-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  background: #131220;

}

.project-card h3 {
  text-align: center;
  color: #b1621d;
  font-size: 18px;
  margin-top: 10px;
}

.projects-grid { 
   display:grid !important ;
   grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); 
   gap:25px; 
   align-items:start;
   overflow: hidden;

   }

.project-card {
   background: rgba(255,255,255,0.03); 
 padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 }
 .p{
   font-size: 16px;
  color: #ffffff;
  line-height: 1.6;
  text-align: center; }

.project-slider { 
  height:220px;
  width: 100%; 
  background: #000;
    display: flex;
  border-radius:12px; 
  overflow:hidden;
  object-fit: contain; 
  margin-bottom:12px;
  align-items: center;
  justify-content: center; 
}

  .project-slider img, .project-slider iframe {
     width:100%;
      height:100%; 
      object-fit: contain; }

/* WHY US */

#why-us { background:#05051a; padding-top:120px; }
.why{

  display: flex;
  flex-direction: column;
  align-items: center;  
  justify-content: center;
  text-align:center;
  color: #b1621d; 
  font-size:34px;
  margin-bottom:30px;
  font-weight:800;
 }

.why-container {
   margin-top: 40px;
   display:flex;
   gap:20px;
   flex-wrap:wrap;
   justify-content:center; 
   align-items: center;}

  #why-title{
    color: #b1621d;
    justify-content: center;
      text-align: center;
  }

.why-card {
  width: 260px;
  padding: 25px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  transition: 0.4s;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  justify-content: center;
  align-items: center;
}

.why-card:hover {
  transform: translateY(-10px) scale(1.05);
}
.why-card h3 {
  color: #b1621d;
  margin-bottom: 10px;
  justify-content: center;
}
.icon {
  display: flex;
  width: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.icon:hover{
   transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.6s ease;
}

#our{
  display: flex;
  justify-content: center;
  color: #b1621d;
  text-align:center; 
   font-size:34px;
    margin-bottom:30px;
   font-weight:800; 
}

/*عملائنا  CLIENTS MARQUEE */

#clients-title{
   display: flex;
  color: #b1621d;
   font-size:34px;
    margin-bottom:30px;
   font-weight:800;
  align-items: center;
justify-content: center; }
.clients-section { background:#0b0b0b; padding:30px 0; }
.clients-marquee { overflow:hidden; width: 100%; }
.marquee-track {
  display:flex;
  gap:60px;
  align-items:center;
  width: max-content; /* عشان يحسب العرض الحقيقي للشريط ويعمل translate -50% صح */
  animation:marqueeMove 30s linear infinite;
}
.logoC {
  flex-shrink: 0; /* أهم حاجة: تمنع اللوجوهات إنها تتقلص عشان تتظبط في الشاشة */
}
.logoC img {
  width:150px;
  height: auto;
  opacity:0.6;
  filter:grayscale(100%);
  transition:.3s;
  display:block;
}
.logoC img:hover { filter:none; opacity:1; transform:scale(1.05); }
@keyframes marqueeMove { 0% { transform:translateX(0);} 100% { transform:translateX(-50%);} }

@media (max-width:600px) {
  .marquee-track { gap:36px; animation-duration:20s; }
  .logoC img { width:100px; }
}


/* عن الشركة ABOUT */

#about {  padding: 120px 40px;
  background: #01010f; 
  color: #fff;
   }

.about-container {
 display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1300px;
  margin: auto;
    flex-wrap: wrap;

}

.section-three {
  position: relative;
  overflow: hidden; }

.bg-overlay {
  position: relative;
  background: url('image/shadow BG.png') center/cover no-repeat;
  opacity: 0.1;
  overflow: hidden; 
   pointer-events: none;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
  
}

.feature-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#feature1-title {
  color: #b1621d;
  font-size: 20px;
  margin-bottom: 5px;
}

#feature2-title {
  color: #b1621d;
  font-size: 20px;
  margin-bottom: 5px;
}
#feature3-title {
  color: #b1621d;
  font-size: 20px;
  margin-bottom: 5px;
}
#feature4-title {
  color: #b1621d;
  font-size: 20px;
  margin-bottom: 5px;
}

.feature-box p {
  font-size: 14px;
  color: #ccc;
}
#about-title{
   display: flex;
  color: #b1621d;
   font-size:34px;
    margin-bottom:30px;
   font-weight:800; 
}
.about-stats{
  display: flex;
  padding: 20px;
  margin: 20px;
  gap: 15%;
}
#stat1-label {
  color: #b1621d;
  font-size: larger;
}
#stat2-label {
  color: #b1621d;
  font-size: larger;
}
#stat3-label {
  color: #b1621d;
  font-size: larger;
}
#stat4-label {
  color: #b1621d;
  font-size: larger;
}

/* لمنع انهيار التخطيط عند تغيير اللغة */
html[dir="ltr"] .about-container {
  flex-direction: row;
}

html[dir="rtl"] .about-container {
  flex-direction: row-reverse; 
}

.about-image {
  flex: 1;
  text-align: center;
  min-width: 350px;
  flex-shrink: 0;

}

.about-image img {
  width: 420px;
  max-width: 100%;
   mix-blend-mode: lighten;
   opacity:0.95;
   border-radius: 10px;
   object-fit: cover; }
   
.about-text {
  flex: 1;
  min-width: 300px; 
}

/*  للتواصل CONTACT */

.contact-section { 
   padding-top:120px;
   background: linear-gradient(135deg,#080808,#121212); }
   #contact-title{
   display: flex;
  color: #b1621d;
   font-size:34px;
    margin-bottom:30px;
   font-weight:800;   
   }

.contact-container { 
  width: 90%;
  max-width: 1200px;
  display:flex; 
  gap: 50px;
  margin: auto; 
 flex-wrap:wrap;
  align-items:flex-start; }

.contact-info { flex:1; min-width:300px; }

.contact-form { 
    flex:1;
    display:flex; 
    flex-direction:column;
    gap:15px; }

.contact-form input, .contact-form textarea {
    width: 100%;
   padding:15px; 
   border-radius:8px;
    background:#111;
     color:#fff;
      border:none; }
 .contact-form textarea {
        resize: none;
        height: 150px;
}
#contact-btn{
   padding: 15px;
  background: #b1621d;
  color: #ccc;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
#contactForm button:hover{
    transform: translateY(-3px);
      transition: 0.3s;


}
.info-item {
  display: flex;
  align-items: center;
  margin: 15px 0;
  font-size: 18px;
  gap: 10px;
}

.info-item i {
  font-size: 20px;
  color: #b1621d;
}

.info-item a {
   text-decoration: none;
    color: #ffffff;
}
.social-icons a {
   font-size: 24px;
  transition: 0.3s;
  color: #fff;
  margin: 15px;

}
.social-icons a:hover{
  color: #b1621d;
   transform: scale(1.2);
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  padding: 20px;
  margin: 10px;
  width: 300px;
  display: flex;
  border-radius: 8px;
  border: 1px solid #333;
  background: #131318;
  color: #fff;
  
}

#contactForm button {
  background: #b1621d;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* مهم للموبايل */
}

.submit{
  width: 200px;
  margin-left: 60px;
}
.submit:hover{
  transform: scale(1.05);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.site-footer {
  color: #b1621d;
  text-align: center;
  padding: 16px 20px;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  opacity: 0.9;
}


/* Responsive */

@media (max-width:900px) {
   .overlay-img {
    display: none !important;
  }

  .menu-toggle {display: flex;}
  .nav-links { position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: #0b0b2e;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: 0.4s;
    z-index: 999; }
  .nav-links.active { right: 0;}
  .navbar { padding:12px 20px; }
  .projects-grid {  grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .marquee-track { animation-duration: 25s; }

  .about-container { padding: 0 10px; }
  .about-stats { gap: 8%; }
  #about { padding: 100px 20px; }
}
@media (max-height: 650px) {
  .home-section { padding: 80px 20px 24px; }
  .logo-mark { transform: scale(0.8); }
  .done-text { margin-top: 4px; }
  .home-text { margin-top: 8px; }
}

@media (max-width:768px) {

  .logo-mark {
    transform: scale(0.7);
  }

  .done-text {
    transform: scale(0.8);
  }

  .service-card { height: 300px; }
  .contact-container { gap: 30px; }
  #contactForm input,
  #contactForm select,
  #contactForm textarea {
    width: 100%;
    margin: 6px 0;
  }
  .submit { margin-left: 0; width: 100%; }

}
@media (max-width:600px) {

  .projects-grid {
    grid-template-columns: 1fr; gap: 20px;}

  .project-card { padding: 12px;}

  .project-slider { height: auto; }

  .project-slider img,
  .project-slider iframe { height: auto; aspect-ratio: 16/9;}

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-card { padding: 28px 14px; height: 280px; }
  .icon-wrapper { width: 100px; height: 100px; }
  .samboxa { width: 90px; }

  .why-container { gap: 14px; }
  .why-card { width: 100%; max-width: 320px; padding: 20px; }

  .about-container { flex-direction: column !important; text-align: center; }
  .about-image { min-width: 0; }
  .about-stats { justify-content: center; gap: 8%; }
  .feature-box { text-align: center; }
}

@media (max-width:480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { height: auto; min-height: 220px; }
  .service-desc { -webkit-line-clamp: 4; }

  .about-stats { flex-wrap: wrap; row-gap: 15px; }
  .about-features { grid-template-columns: 1fr; }

  .section { padding: 90px 16px 60px; }
  .container { width: 94%; }

  .home-text h1 { font-size: 18px; }
  .home-text a { font-size: 14px; padding: 10px 22px; }

  #services h2,
  #projects h2,
  #why-title,
  #clients-title,
  #about-title,
  #contact-title { font-size: 26px; }
}

@media (max-width:400px) {
  .home-text h1 {font-size: 16px;} }

@media (max-width: 360px) {
  .logo img { height: 44px; }
  .navbar { padding: 10px 14px; }
  .service-card { padding: 24px 12px; }
  .why-card { padding: 16px; }
}

/* Language utility classes (optional fallback) */
.lang-ar .lang-en { display:none; }
.lang-en .lang-ar { display:none; }
@media (max-width: 768px) {
  .overlay-img {
    display: none;
  }
}