/* ========================================
   Global Styles & Variables
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
  /* ألوان مستوحاة من اللوجو الجديد */
  --primary-color: #004a99;    /* أزرق اللوجو الداكن */
  --secondary-color: #0072bc;  /* أزرق اللوجو الفاتح */
  --accent-color: #f7941d;     /* برتقالي اللوجو */
  --accent-hover: #e67e00;
  --text-dark: #1a202c;
  --text-light: #4a5568;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 400;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* ========================================
   Layout & Container
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--accent-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
  font-weight: 800;
}

.tagline {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-top: -5px;
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, rgba(0, 74, 153, 0.95) 0%, rgba(0, 114, 188, 0.85) 100%), 
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="white" fill-opacity="0.05" fill-rule="evenodd"><circle cx="3" cy="3" r="3"/></g></svg>');
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: #25d366; /* WhatsApp Green */
  color: white;
}

.btn-secondary:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* ========================================
   Services Section
   ======================================== */

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--accent-color);
  border-radius: 10px;
}

.services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: white;
  padding: 0;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.service-card-content {
  padding: 2rem;
  text-align: center;
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ========================================
   Features Section
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid var(--border-color);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

/* ========================================
   Contact & Footer
   ======================================== */

.contact-section {
  background: var(--primary-color);
  color: white;
  border-radius: 2rem;
  margin: 0 1.5rem 4rem;
  padding: 4rem;
}

.contact-section h2 { color: white; }
.contact-section h2::after { background: white; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-item {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-item h4 { color: white; margin-bottom: 1rem; }
.contact-item a { color: var(--accent-color); font-size: 1.3rem; font-weight: 800; }

.footer {
  background: #0a192f;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer p { color: rgba(255,255,255,0.7); }

/* ========================================
   WhatsApp Floating
   ======================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 65px;
  height: 65px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(10deg);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero-content h2 { font-size: 2.2rem; }
  .nav { display: none; } /* يمكن إضافة قائمة موبايل لاحقاً */
  .contact-section { padding: 2rem 1rem; margin: 0 1rem 2rem; }
}
