@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --primary: #c61e57;
  --dark: #1a1a1a;
  --text-gray: #555;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 40px rgba(198, 30, 87, 0.15);
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.7;
}

html[lang="en"] body { 
  direction: ltr; 
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

html[lang="en"] .about-list li i { margin-right: 12px; margin-left: 0; }
html[lang="en"] .feat-box i { margin-right: 10px; margin-left: 0; }
html[lang="en"] .stat-float-card { right: auto; left: -30px; border-left: none; border-right: 5px solid var(--primary); }
html[lang="en"] .whatsapp-float { right: auto; left: 30px; }
html[lang="en"] .saudi-badge-corner { flex-direction: row-reverse; } 
html[lang="en"] .input-group { text-align: left; } 
html[lang="en"] .service-box { align-items: flex-start; }
html[lang="en"] .footer-social { align-items: flex-end; } /* محاذاة لليمين في الانجليزي */
html[lang="en"] .footer-social .social-icons { justify-content: flex-end; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. الناف بار --- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 9999;
  padding: 25px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  transition: 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
}

.logo img { 
  height: 85px; 
  transition: 0.4s ease; 
  filter: brightness(0) invert(1); 
}
.navbar.scrolled .logo img { 
  height: 50px; 
  filter: none; 
}

.navbar.scrolled .nav-links a { color: var(--dark); }
.navbar.scrolled .btn-contact { background: var(--primary); color: white; }
.navbar.scrolled .btn-contact:hover { background: #eee; color: var(--primary); }
.navbar.scrolled .btn-lang { color: var(--primary); border-color: var(--primary); }
.navbar.scrolled .btn-lang:hover { background: var(--primary); color: white; }

.nav-content { 
  width: 90%; max-width: 1300px; margin: 0 auto; 
  display: flex; justify-content: space-between; align-items: center; 
}

.nav-links { display: flex; gap: 35px; }
.nav-links a { 
  color: white; font-weight: 500; font-size: 1.05rem; position: relative; 
}
.nav-links a:hover { color: var(--primary); font-weight: bold; }

.nav-buttons { display: flex; align-items: center; gap: 10px; }

.btn-contact {
  background: var(--primary); color: white; padding: 10px 30px; border-radius: 50px;
  font-weight: bold; transition: 0.3s; border: none; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn-contact:hover { background: white; color: var(--primary); }

.btn-lang {
  background: transparent; color: white; border: 1px solid white;
  padding: 8px 15px; border-radius: 50px; font-weight: bold; font-size: 0.9rem;
  cursor: pointer; transition: 0.3s; font-family: 'Outfit', sans-serif;
}
.btn-lang:hover { background: white; color: var(--primary); }


/* --- 3. الهيرو --- */
/* --- 3. الهيرو --- */
.hero-parallax {
  position: relative;
  height: 67vh; /* الحجم الجديد */
  background-image: url('../imgs/section-1.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* طبقة التعتيم */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.32) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* المحتوى */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 15px 25px;
  text-align: center;
  transform: translateY(-50px); /* رفع فعلي */
}/* التاق */
.hero-tag {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

/* العنوان */
.hero-content h1 {
  font-size: 3rem; 
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.primary-color-hero {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(198, 30, 87, 0.55);
}

.hero-text-highlight {
  font-size: 1.3rem;
  margin-bottom: 35px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 0 7px rgba(0, 0, 0, 0.65);
}

.btn-group {
  display: none;
}

.btn-main {
  background: var(--primary);
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.05rem;
  border: 2px solid var(--primary);
}
.btn-main:hover {
  background: transparent;
}

.btn-light {
  background: white;
  color: var(--primary);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.05rem;
  border: 2px solid white;
}
.btn-light:hover {
  background: transparent;
  color: white;
}

.features-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(13px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  gap: 55px;
  padding: 18px 0;
  z-index: 5;
}

.feat-box {
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.feat-box i {
  color: var(--primary);
  font-size: 1.2rem;
}
.section-padding { padding: 100px 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.split-layout { display: flex; align-items: center; gap: 80px; }

.image-side { flex: 1; position: relative; }
.img-holder img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); display: block; }

.stat-float-card {
  position: absolute; bottom: 40px; right: -30px;
  background: white; padding: 20px 40px; border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15); text-align: center;
  border-left: 5px solid var(--primary);
  animation: floatAnim 3s ease-in-out infinite alternate;
}
@keyframes floatAnim { from { transform: translateY(0); } to { transform: translateY(-10px); } }

.stat-number { display: block; font-size: 2.5rem; color: var(--primary); font-weight: 800; line-height: 1; }
.stat-label { font-size: 1rem; color: #555; font-weight: bold; margin-top: 5px; }

.text-side { flex: 1; }
.sub-heading { 
  color: var(--primary); text-transform: uppercase; letter-spacing: 1px; 
  font-weight: 700; margin-bottom: 10px; display: block; font-size: 1rem;
}
h2 { font-size: 2.6rem; margin-bottom: 20px; font-weight: 800; color: #222; }

.text-content-box p { font-size: 1.1rem; color: #444; margin-bottom: 20px; line-height: 1.8; text-align: justify; }
.about-list li { margin-bottom: 15px; color: #555; display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; }
.about-list i { color: var(--primary); margin-top: 5px; font-size: 1.1rem; flex-shrink: 0; }

.stats-grid { display: flex; gap: 40px; margin-top: 30px; }
.stat-item h3 { font-size: 2rem; color: var(--primary); margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; color: #777; font-weight: bold; }

/* --- 5. المنتجات (Flexbox) --- */
.bg-light { background-color: #f9f9f9; }
.center { text-align: center; }
.products-desc { font-size: 1.1rem; max-width: 700px; margin: 0 auto 40px; color: #666; }

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}

.product-card-clean {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: 0.4s; border: 1px solid #f5f5f5;
  width: 240px; flex-grow: 0;
}

.product-card-clean:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(198, 30, 87, 0.1); border-color: #f0f0f0; }

.card-image { 
  height: 190px; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.card-image img { max-width: 65%; transition: 0.5s; filter: drop-shadow(0 8px 8px rgba(0,0,0,0.08)); }
.product-card-clean:hover .card-image img { transform: scale(1.1) rotate(3deg); }

.card-details { padding: 18px; text-align: center; border-top: 1px solid #f9f9f9; }
.card-details h3 { font-size: 1.1rem; margin-bottom: 5px; color: #333; }
.card-details span { font-size: 0.75rem; color: #999; font-weight: bold; letter-spacing: 1px; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;
}
.service-box {
  background: #fff; padding: 30px; border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #eee;
  transition: 0.3s; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}
.service-box:hover {
  transform: translateY(-5px); box-shadow: 0 10px 30px rgba(198, 30, 87, 0.1); border-color: var(--primary);
}
.service-box::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 4px;
  background: var(--primary); transition: 0.4s;
}
.service-box:hover::before { width: 100%; }
.service-icon {
  width: 60px; height: 60px; background: #fdf2f6; color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 5px; transition: 0.3s; flex-shrink: 0;
}
.service-box:hover .service-icon { background: var(--primary); color: white; }
.service-box p {
  font-size: 1.05rem; font-weight: 600; color: #444; line-height: 1.6; margin: 0;
}

.service-box.featured {
  background: var(--primary);
  color: white;
  box-shadow: 0 20px 40px rgba(198, 30, 87, 0.3);
  transform: translateY(-20px); 
}
.service-box.featured p {
  color: white;
  font-size: 1.15rem;
}
.service-box.featured .service-icon {
  background: white;
  color: var(--primary);
}
.service-box.featured:hover {
  background: #a01846;
  transform: translateY(-25px);
}

#quality { background-color: var(--white); }
.certs-display { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin-top: 50px; }
.cert-item {
  background: var(--bg-light); padding: 30px; border-radius: 15px;
  box-shadow: var(--shadow); text-align: center; width: 280px; border-bottom: 4px solid var(--primary); transition: 0.3s;
}
.cert-item:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.cert-item img { height: 90px; margin-bottom: 15px; filter: grayscale(80%); transition: 0.3s; }
.cert-item:hover img { filter: grayscale(0%); }
.cert-item h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 10px; }
.cert-item p { font-size: 0.9rem; color: #777; line-height: 1.5; }

.clients-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.client-logo-box {
  width: 160px; height: 100px; background: white; border: 1px solid #eee;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: 0.3s; overflow: hidden;
}
.client-logo-box:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.client-logo-box img { max-width: 80%; max-height: 80%; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: 0.3s; }
.client-logo-box:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

footer { 
  background: #1a1a1a; 
  color: #ccc; 
  padding-top: 50px; 
  border-top: 4px solid var(--primary); 
}

.footer-wrapper { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  flex-wrap: wrap; 
  gap: 40px; 
  padding-bottom: 40px;
}
.footer-info { flex: 1; min-width: 280px; }
.footer-logo { width: 140px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-text-highlight { 
  font-size: 0.95rem; 
  max-width: 350px; 
  color: #aaa; 
  line-height: 1.6; 
}

.contact-col { flex: 1; min-width: 280px; }
.contact-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.contact-item { 
  display: flex; align-items: center; gap: 10px; 
  margin-bottom: 12px; color: #bbb; transition: 0.3s; 
  font-size: 0.9rem;
}
.contact-item:hover { color: var(--primary); }
.contact-item i { color: var(--primary); font-size: 1.1rem; width: 20px; text-align: center; }

.footer-social { 
  flex: 1; 
  min-width: 150px; 
  text-align: right; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}
.footer-social h4 { color: white; margin-bottom: 15px; font-size: 1.1rem; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { 
  width: 38px; height: 38px; background: #333; color: white; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: 0.3s;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }

.saudi-badge-footer {
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid #333;
  display: inline-flex;
  align-items: center; 
  padding: 8px 15px; 
  border-radius: 8px; 
  transition: 0.3s;
  opacity: 0.8;
  margin-top: 25px; 
  font-size: 0.9rem; 
  gap: 10px; 
}
.saudi-badge-footer:hover { 
  background: rgba(255, 255, 255, 0.1); 
  opacity: 1;
}
.saudi-badge-footer img { 
  height: 30px; 
  display: block; 
}
.footer-copyright { background: #111; padding: 15px 0; border-top: 1px solid #2a2a2a; }
.copyright-content { display: flex; justify-content: space-between; align-items: center; }
.copyright-text { font-size: 0.85rem; color: #777; }

.saudi-badge-corner { display: none; }


.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; z-index: 1000; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* --- Modal --- */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7); z-index: 10000; justify-content: center; align-items: center; backdrop-filter: blur(5px); animation: fadeIn 0.3s ease;
}
.modal-box {
  background: white; width: 90%; max-width: 500px; border-radius: 20px; padding: 40px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: slideUp 0.4s ease;
}
.close-btn { position: absolute; top: 20px; left: 20px; font-size: 2rem; color: #aaa; cursor: pointer; }
.close-btn:hover { color: var(--primary); }
.modal-header h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.input-group { margin-bottom: 20px; text-align: right; }
.input-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit;
}
.btn-submit {
  width: 100%; background: var(--primary); color: white; border: none; padding: 15px; border-radius: 10px; font-size: 1.1rem; font-weight: bold; cursor: pointer;
}
.btn-submit:hover { background: #a01846; }

.success-view { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
.check-icon {
  width: 80px; height: 80px; background: #4CAF50; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}
.success-view h3 { font-size: 1.8rem; margin-bottom: 10px; color: #333; }
.success-view p { color: #666; font-size: 1rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.reveal, .reveal-left, .reveal-right, .reveal-bottom { opacity: 0; transition: all 1s ease; }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-bottom { transform: translateY(50px); }
.active { opacity: 1; transform: translate(0); }

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.8rem; }
  .hero-text-highlight { font-size: 1.1rem; }
  .nav-links { display: none; }
  .navbar { background: rgba(15,15,15,0.9); padding: 10px 0; }
  .logo img { filter: brightness(0) invert(1); height: 50px; }
  .navbar.scrolled .logo img { filter: none; }
  
  .split-layout { flex-direction: column; }
  .image-side { width: 100%; }
  .stat-float-card { right: 50%; transform: translateX(50%); bottom: -30px; width: 80%; animation: none; }
  .features-strip { display: none; }
  .cert-item { width: 90%; max-width: 350px; }
  h2 { font-size: 2.2rem; }
  .footer-wrapper { flex-direction: column; text-align: center; align-items: center; gap: 30px; }
  .contact-item { justify-content: center; }
  .footer-social { align-items: center; }
  .social-icons { justify-content: center; }
  
  .copyright-content { flex-direction: column; gap: 15px; }

  .hero-parallax {
    background-attachment: scroll !important;
    background-position: center center !important;
    height: 100vh;
  }

  .products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    margin-top: 20px;
    scrollbar-width: none; 
    max-width: 100%; 
  }
  
  .products-grid::-webkit-scrollbar { display: none; }

  .product-card-clean {
    flex: 0 0 85%;
    width: 85%;
    max-width: 300px;
    scroll-snap-align: center;
  }
  
  .service-box.featured {
    transform: translateY(0);
  }
}