@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Bold.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
  }

:root {
  --primary-color: #0077b6;
  --secondary-color: #ffd700;
  --dark-color: #333;
  --light-color: #fff;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: "Tajawal", "Arial", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header Simplified */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 5%;
  background: var(--light-color);
  box-shadow: var(--shadow);
  position: fixed;
  width: 90%;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-left: 10px;
}

.site-title {
  font-size: 1.2rem;
  margin: 0;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: 70px;
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  animation: heroFade 15s infinite;
}

.hero-img:nth-child(1) { animation-delay: 0s; }
.hero-img:nth-child(2) { animation-delay: 5s; }
.hero-img:nth-child(3) { animation-delay: 10s; }

@keyframes heroFade {
  0%, 100% { opacity: 0; transform: scale(1.05); }
  20%, 80% { opacity: 1; transform: scale(1); }
}

.hero-content {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-box {
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--secondary-color);
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 90%;
  color: var(--light-color);
}

.hero-box h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--secondary-color);
}

.hero-highlight {
  font-size: 1rem;
  margin-top: 10px;
  color: var(--light-color);
}

/* Sections Common Styles */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin: 50px 0 30px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-divider {
  width: 90%;
  height: 2px;
  background-color: #ccc;
  margin: 50px auto;
  border-radius: 1px;
}

/* Services Section */
.service-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-item {
  width: 45%;
  min-width: 300px;
  margin: 20px 0;
  background: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
}

.service-img {
  width: 40%;
  object-fit: cover;
}

.service-desc {
  width: 60%;
  padding: 20px;
}

.service-desc h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.service-desc ul {
  padding-right: 20px;
  list-style-type: none;
}

.service-desc li {
  margin-bottom: 10px;
  position: relative;
  padding-right: 15px;
}

.service-desc li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  right: 0;
}

/* Problems Section */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.problem-card {
  background: var(--light-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-10px);
}

.problem-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.problem-card h3 {
  color: var(--primary-color);
  margin: 10px 0;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.feature {
  background: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature i {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature h3 {
  color: var(--primary-color);
  margin: 15px 0;
}

/* Icons Colors */
.fa-bolt { color: #ffc107; }
.fa-shield-alt { color: #28a745; }
.fa-tags { color: #f4c430; }
.fa-tools { color: #6f42c1; }
.fa-user-check { color: var(--primary-color); }
.fa-percent { color: var(--dark-color); }

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 60px 20px;
  color: var(--primary-color);
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--light-color);
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-btn i {
  margin-left: 10px;
}

.contact-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.phone-call-btn { background: #FFDE21; }
.whatsapp-btn { background: #128c7e; }
.facebook-btn { background: #3b5998; }

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: var(--dark-color);
  color: var(--light-color);
}

/* Floating Buttons */
.float-buttons {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light-color);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

.phone-float { background: #FFDE21; }
.whatsapp-float { background: #25d366; }
.facebook-float { background: #3b5998; }

/* Extended Content */
.extended-content {
  padding: 40px 20px;
  background: var(--light-color);
  line-height: 1.8;
  font-size: 14.5px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  margin: 0 20px;
}

.container {
  max-width: 1000px;
  margin: auto;
  color: var(--dark-color);
}

.container h2, .container h3 {
  color: var(--primary-color);
}

.container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.container h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero {
    height: 300px;
    margin-top: 60px;
  }

  .site-title {
    font-size: 1rem;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 5%;
  }
  
  .logo-container {
    width: 100%;
    justify-content: space-between;
  }

  .hero-box h2 {
    font-size: 1.5rem;
  }

  .hero-highlight {
    font-size: 0.9rem;
  }

  .service-item {
    flex-direction: column;
    width: 90%;
  }

  .service-img,
  .service-desc {
    width: 100%;
  }

  .float-buttons {
    bottom: 20px;
    left: 20px;
  }

  .feature i {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .problem-card,
  .contact-btn,
  .float-btn {
    animation: none !important;
    transition: none !important;
  }
}
/* تحسين CLS للصور */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* تحسين تحميل الخطوط */
@font-face {
  font-family: 'FontAwesome';
  src: url('webfonts/fa-solid-900.woff2') format('woff2');
  font-display: swap;
  font-weight: 900;
}

@font-face {
  font-family: 'FontAwesomeBrands';
  src: url('webfonts/fa-brands-400.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}