:root {
  /* الألوان الأساسية */
  --primary-color: #0066cc;
  --secondary-color: #1e90ff;
  --accent-color: #ffd700;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* ألوان النص */
  --text-dark: #2a2a2a;
  --text-gray: #575656;
  --text-light: #888;
  --text-white: #ffffff;

  /* ألوان الخلفيات */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #f0f9f4;
  --bg-gray: #e9ecef;
  --bg-dark: #2a2a2a;

  /* ألوان التدرجات */
  --gradient-primary: linear-gradient(135deg, #63b3ff 0%, #0066cc 100%);
  --gradient-sea-green: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
  --gradient-blue: linear-gradient(135deg, #1e90ff 0%, #99badd 100%);
  --gradient-dark-blue: linear-gradient(135deg, #1e90ff 0%, #066dda 100%);
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* ألوان الحدود */
  --border-color: #e9ecef;
  --border-light: #dee2e6;
  --border-gray: #ddd;
  --border-primary: #1e90ff;

  /* ألوان الظلال */
  --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(30, 144, 255, 0.15);

  /* ألوان الوسائط الاجتماعية */
  --facebook: #3b5998;
  --twitter: #1da1f2;
  --linkedin: #0077b5;
  --whatsapp: #25d366;

  /* ألوان الحالة */
  --online-status: #28a745;
  --offline-status: #dc3545;
  --emergency-bg: #fff3cd;
  --emergency-border: #ffeaa7;
  --emergency-text: #856404;

  /* ألوان إضافية من الملفات */
  --plumbing-color: #fd6a54;
  --cleaning-color: #726ae3;
  --electrical-color: #f58b56;
  --stats-bg: rgba(255, 255, 255, 0.1);
  --stats-border: rgba(255, 255, 255, 0.2);
  --overlay-bg: rgba(255, 255, 255, 0.2);
  --card-hover-bg: rgba(255, 255, 255, 0.15);

  /* ألوان خاصة بالخدمات */
  --service-icon-bg: linear-gradient(135deg, #63b3ff, #0066cc);
  --provider-badge: #ffd700;
  --rating-stars: #ffc107;
  --progress-border: #fd6a54;

  /* ألوان النماذج */
  --input-bg: #f8f9fa;
  --input-border: #e9ecef;
  --input-focus: rgba(0, 102, 204, 0.25);

  /* ألوان الأزرار */
  --btn-primary-bg: #1e90ff;
  --btn-primary-hover: #004d99;
  --btn-secondary-bg: #6c757d;
  --btn-secondary-hover: #5a6268;
  --btn-outline: #ffffff;
  --btn-outline-hover: #2a2a2a;

  /* ألوان القوائم */
  --list-bullet: #1e90ff;
  --list-hover: #e6f2ff;

  /* ألوان التنبيهات */
  --alert-info: #f8f9ff;
  --alert-warning: #fff3cd;
  --alert-success: #d4edda;
  --alert-danger: #f8d7da;
}

/* Reset CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure,
figcaption, footer, header, hgroup, menu,
nav, output, ruby, section, summary, time,
mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
}

/* Global Styles */
html, body {
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  background-color: var(--bg-white);
  font-size: 14px;
  line-height: 1.6;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none !important;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1rem;
}

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

::selection {
  background: var(--secondary-color);
  color: var(--text-white) !important;
}

::-moz-selection {
  background: var(--secondary-color);
  color: var(--text-white) !important;
}

/* Responsive Utilities */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
  }
  
  .mobile-top-fix {
    margin-top: 30px;
    margin-bottom: 0;
  }
  
  .mobile-bottom-fix {
    margin-bottom: 30px;
  }
  
  .mobile-bottom-fix-big {
    margin-bottom: 60px;
  }
}

/* Layout */
.page-section {
  margin-top: 80px;
}

.section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.section-heading h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading h4 {
  color: var(--text-dark);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 15px;
}

.section-heading h4 em {
  font-style: normal;
  color: var(--secondary-color);
}

.section-heading .line-dec {
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

/* Buttons */
.border-first-button a {
  display: inline-block !important;
  padding: 10px 25px !important;
  color: var(--secondary-color) !important;
  border: 1px solid var(--secondary-color) !important;
  border-radius: 25px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.border-first-button a:hover {
  background-color: var(--secondary-color);
  color: var(--text-white) !important;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-dark);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--btn-outline);
  color: var(--btn-outline-hover);
}

/* Header & Navigation */

.navbar {
  box-shadow: var(--shadow-light);
  background-color: var(--bg-white) !important;
}

.navbar-brand {
  font-weight: 700;
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.navbar-brand img {
  height: 35px;
  margin-left: 10px;
}

.nav-link {
  color: var(--text-gray);
  font-weight: 500;
  padding: 8px 15px !important;
  margin: 0 3px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--bg-lighter);
  color: var(--secondary-color) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-medium);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 5px !important;
}

.dropdown-item {
  padding: 8px 20px;
  color: var(--text-gray);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-lighter);
  color: var(--secondary-color);
  padding-right: 25px;
}

.dropdown-toggle::after {
  margin-right: 5px;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  margin-top: -8px !important;
  margin-right: 2px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.service-icon {
  color: var(--border-primary);
  margin-left: 8px;
  font-size: 14px;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  line-height: 1.7;
}

.hero-section {
  background: var(--gradient-sea-green);
  color: var(--text-white);
  padding: 60px 0;
  border-radius: 10px;
  margin-bottom: 30px;
}

.service-card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-card .card-body {
  padding: 25px;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--success-color);
  margin-bottom: 15px;
}

@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin-right: 15px;
    margin-top: 5px !important;
    border-right: 2px solid var(--bg-lighter);
  }

  .navbar-collapse {
    padding: 15px 0;
  }

  .nav-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
  }
/* إظهار القوائم الفرعية يدويًا على الموبايل */
  .dropdown-submenu > .dropdown-menu {
    display: none;
    position: static !important;
    margin: 8px 0 8px 20px !important;
    padding-right: 0;
    border-right: 2px solid var(--bg-lighter);
    box-shadow: none;
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block !important;
  }
}

/* Banner Section */
.main-banner {
  background: var(--gradient-primary);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 150px 0px 80px 0px;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
}

.main-banner .left-content {
  margin-left: 15px;
}

.main-banner .left-content h6 {
  text-transform: capitalize;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.main-banner .left-content h2 {
  z-index: 2;
  position: relative;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-white);
}
.main-banner .left-content h6 {
  color: var(--text-white);
}

.main-banner .left-content p {
  margin-bottom: 30px;
  margin-left: 0;
  color: var(--text-white);
  font-size: 16px;
  line-height: 1.7;
}

.main-banner .right-image {
  text-align: left;
  position: relative;
}

.main-banner .right-image img {
  max-width: 100%;
}


/* Content Sections */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  line-height: 1.7;
}

.hero-section {
  background: var(--gradient-sea-green);
  color: var(--text-white);
  padding: 60px 0;
  border-radius: 10px;
  margin-bottom: 30px;
}

.service-card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
  box-shadow: var(--shadow-light);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-card .card-body {
  padding: 25px;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--success-color);
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 40px 0 20px;
  margin-top: auto;
  border-top: 4px solid var(--warning-color);
  box-shadow: 0 -5px 20px var(--shadow-dark);
}

.footer-dark {
  background: transparent;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-white);
  font-size: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(-5px);
}

.footer-links i {
  margin-left: 8px;
  font-size: 0.9rem;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}

.contact-info i {
  margin-left: 10px;
  color: var(--accent-color);
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--warning-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  color: var(--text-white);
}

.heart {
  color: #e74c3c;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-3px);
}

/* Custom Components */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-sea-green);
  border-radius: 2px;
}

/* Service Type Borders */
.plumbing-service {
  border-right: 4px solid var(--plumbing-color);
}

.cleaning-service {
  border-right: 4px solid var(--cleaning-color);
}

.electrical-service {
  border-right: 4px solid var(--electrical-color);
}

/* Alerts */
.alert-custom {
  border-radius: 10px;
  border: none;
  padding: 15px 20px;
  margin: 15px 0;
}

.alert-info-custom {
  background-color: var(--alert-info);
  color: var(--secondary-color);
  border-right: 4px solid var(--secondary-color);
}

.alert-warning-custom {
  background-color: var(--alert-warning);
  color: var(--emergency-text);
  border-right: 4px solid var(--warning-color);
}

.alert-success-custom {
  background-color: var(--alert-success);
  color: var(--success-color);
  border-right: 4px solid var(--success-color);
}

.alert-danger-custom {
  background-color: var(--alert-danger);
  color: var(--danger-color);
  border-right: 4px solid var(--danger-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-banner .left-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .main-banner .left-content {
    margin-left: 0;
    text-align: center;
  }
  
  .main-banner .left-content p {
    margin-left: 0;
  }
  
  .main-banner .right-image {
    text-align: center;
    margin-top: 60px;
  }
  
  .navbar-collapse {
    padding: 15px 0;
  }
  
  .nav-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
  }
  
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin-right: 15px;
    margin-top: 5px !important;
    border-right: 2px solid var(--bg-lighter);
  }
}

@media (max-width: 768px) {
  .main-banner {
    padding: 120px 0px 60px 0px;
  }
  
  .main-banner .left-content h2 {
    font-size: 1.8rem;
  }
  
  .main-banner .left-content h6 {
    font-size: 14px;
  }
  
  .section-heading h4 {
    font-size: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-section {
    min-width: 100%;
  }
  
  .btn-primary {
    margin-left: 0;
    margin-bottom: 15px;
    width: 100%;
    max-width: 280px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  .main-banner .left-content h2 {
    font-size: 1.5rem;
  }
  
  .page-section {
    margin-top: 60px;
  }
  
  .content {
    padding: 20px 15px;
  }
}

/* Print Styles */
@media print {
  .navbar, .footer-dark, .back-to-top {
    display: none !important;
  }
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .service-card, .testimonial-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid var(--border-gray) !important;
  }
}