* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #080c14;
  background-image: radial-gradient(circle at 50% 15%, #0f1d36 0%, #080c14 70%);
  color: #f1f5f9;
  line-height: 1.8;
  min-height: 100vh;
}

body.en {
  font-family: 'Poppins', sans-serif;
}

body.en h1, body.en h2, body.en h3 {
  letter-spacing: -0.5px;
}

/* Navbar Wrapper */
.navbar-wrapper {
  position: sticky;
  top: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
}

.navbar-pill {
  width: 100%;
  max-width: 1020px;
  height: 60px;
  background: rgba(13, 22, 38, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* ضبط اللوجو */
.logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  height: 100% !important;
  overflow: hidden !important;
}

.logo img, .logo-img {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
}

/* الروابط لسطح المكتب */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #adc911;
}

.nav-pdf-link {
  color: #adc911 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-pdf-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* حاوية الأزرار في شريط التنقل */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* زر تغيير اللغة */
.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #adc911;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #adc911;
  color: #080c14;
  border-color: #adc911;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(173, 201, 17, 0.3);
}

/* زر القائمة للشاشات الصغيرة */
.menu-toggle {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #adc911;
}

.btn-nav, .btn-primary {
  background: #adc911;
  color: #080c14 !important;
  padding: 8px 22px;
  border-radius: 25px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-nav:hover, .btn-primary:hover {
  background: #9ab30f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(173, 201, 17, 0.25);
}

/* زر تحميل ملف الأعمال PDF */
.btn-pdf {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-pdf:hover {
  background: rgba(173, 201, 17, 0.15);
  border-color: #adc911;
  color: #adc911;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(173, 201, 17, 0.15);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 85px 15% 60px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 900;
}

.hero h1 span {
  color: #adc911;
}

.hero p {
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Sections General */
.services, .clients-section, .contact {
  padding: 70px 8%;
  text-align: center;
}

h2 {
  font-size: 32px;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: rgba(21, 27, 40, 0.7);
  backdrop-filter: blur(8px);
  padding: 35px 25px;
  border-radius: 16px;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s;
}

body.en .service-card {
  text-align: left;
}

.service-card:hover {
  border-color: #adc911;
}

.service-card h3 {
  color: #adc911;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.5;
}

.service-card p {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

/* =======================================================
   قسم عملاؤنا (Clients Grid)
   ======================================================= */
.clients-section {
  width: 100%;
  box-sizing: border-box;
}

.clients-title {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 40px;
}

.clients-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.client-grid-card {
  background: #151b28;
  border-radius: 14px;
  overflow: hidden;
  text-align: right;
  border: 1px solid #232c3f;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, border-color 0.3s;
}

body.en .client-grid-card {
  text-align: left;
}

.client-grid-card:hover {
  transform: translateY(-5px);
  border-color: rgba(173, 201, 17, 0.4);
}

.client-logo-box {
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.client-logo-img {
  max-height: 150px !important;
  max-width: 88% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.3s;
}

.client-grid-card:hover .client-logo-img {
  transform: scale(1.05);
}

.client-meta-box {
  padding: 16px 20px;
  background: #151b28;
  border-top: 1px solid #232c3f;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-insta-tag {
  color: #adc911;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  text-align: left;
  width: fit-content;
}

.client-name-tag {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

/* Contact Form */
.contact-form {
  max-width: 550px;
  margin: 30px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  background: #151b28;
  border: 1px solid #232c3f;
  padding: 14px 18px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

textarea,
#custMsg,
.contact-form textarea {
  resize: none !important;
  overflow-y: auto !important;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: #adc911;
}

/* GET IN TOUCH */
.get-in-touch {
  max-width: 550px;
  margin: 30px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.get-in-touch h3 {
  font-size: 16px;
  font-weight: 700;
  color: #adc911;
  letter-spacing: 2px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #cbd5e1;
  font-size: 15px;
}

.contact-item i {
  font-size: 18px;
  color: #adc911;
  width: 20px;
  margin-top: 4px;
  text-align: center;
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
}

.contact-item a:hover {
  color: #adc911;
}

.map-link-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-link-btn .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f283a;
  color: #adc911;
  border: 1px solid rgba(173, 201, 17, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #232c3f;
  margin-top: 5px;
}

.map-container iframe {
  display: block;
}

/* Social Follow */
.social-section {
  text-align: center;
  padding: 30px 0 10px;
}

.social-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #adc911;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-btn {
  width: 48px;
  height: 48px;
  background-color: #151b28;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 20px;
  text-decoration: none;
  border: 1px solid #232c3f;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: #adc911;
  color: #0b0f17;
}

footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 14px;
}

/* =======================================================
   تنسيقات الجوال والشاشات الصغيرة
   ======================================================= */
@media (max-width: 820px) {
  .navbar-pill {
    height: 52px;
    padding: 0 16px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo img, .logo-img {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 100px !important;
  }

  .menu-toggle {
    display: flex;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
    gap: 4px;
    width: auto;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(13, 22, 38, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    flex-direction: column;
    padding: 22px;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 17px;
    width: 100%;
    text-align: center;
    padding: 6px 0;
  }

  /* توسيط رابط ملف الأعمال على الهاتف */
  .nav-links .nav-pdf-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .btn-nav {
    width: 100%;
    margin-top: 5px;
  }

  .hero {
    padding: 45px 5% 35px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-pdf {
    width: 100%;
    max-width: 280px;
  }

  /* 3 مربعات بالصف في الهواتف */
  .clients-section {
    padding: 50px 8px;
  }

  .clients-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .clients-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .client-grid-card {
    border-radius: 8px;
  }

  .client-logo-box {
    height: 85px !important;
    padding: 5px !important;
  }

  .client-logo-img {
    max-height: 70px !important;
    max-width: 90% !important;
  }

  .client-meta-box {
    padding: 6px 4px !important;
    gap: 2px !important;
  }

  .client-insta-tag {
    font-size: 8px !important;
    gap: 2px !important;
  }

  .client-insta-tag i {
    font-size: 9px !important;
  }

  .client-name-tag {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
}