:root {
  --blue-dark: #1a4a8f;
  --blue-light: #e8f1ff;
  --purple: #1a4a8f;
  --gray-light: #f4f6fc;
  --white: #ffffff;
  --text-dark: #333333;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  direction: rtl;
  text-align: right;
}

/* Navbar Styles */
.navbar {
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.logo {
  max-height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo {
  max-height: 45px;
}

.navbar-nav {
  margin: 0 2rem;
}

.navbar-nav .nav-item {
  margin: 0 0.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.2rem 1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  color: var(--text-dark);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--blue-dark);
  background-color: var(--blue-light);
}

.navbar-nav .nav-link i {
  font-size: 0.9em;
  opacity: 0.8;
}

.nav-buttons .btn {
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-buttons .btn-outline-primary:hover {
  background-color: var(--blue-light);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    margin: 1rem 0;
  }
  
  .nav-buttons {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .navbar-nav .nav-link {
    text-align: center;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--gray-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 130px 0 80px;
  margin-top: 20px;
}

.dashboard-preview {
  position: relative;
  z-index: 1;
  padding-right: 5rem;
}

.dashboard-preview img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

.stats-cards .stats-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 12px;
}

.stats-cards .stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.stats-card .card-subtitle {
  color: #666;
  font-size: 0.9rem;
}

.stats-card .card-title {
  margin: 0;
  font-weight: bold;
  font-size: 1.5rem;
}

@media (max-width: 991.98px) {
  .hero {
    padding: 40px 0;
    text-align: center;
  }
  
  .hero .row {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .dashboard-preview {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-right: 0;
  }
  
  .dashboard-preview img {
    max-height: 400px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .dashboard-preview img {
    max-height: 300px;
  }
  
  .hero {
    padding: 30px 0;
  }
}

/* Feature Cards */
.feature-card {
  border: none;
  background: var(--white);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

/* Client Cards */
.client-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  background: var(--blue-light);
}

.client-name {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .client-name {
    font-size: 0.9rem;
  }
}

/* Contact Form */
.form-control {
  padding: 0.8rem;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 0.2rem rgba(26,74,143,0.1);
}

/* Custom Buttons */
.btn-primary {
  background: #ff6b00;
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #e65f00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,107,0,0.2);
}

/* About Section */
.about-logo {
  width: 120px;
  height: auto;
  border-radius: 10px;
}

/* Container Styles */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Footer Styles */
footer {
  background-color: var(--blue-dark);
  color: var(--white);
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-links a {
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* Responsive Images */
.img-fluid {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Statistics Section */
.statistics {
  position: relative;
  overflow: hidden;
}

.stat-card {
  background: var(--white);
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-icon {
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
/* العنوان الرئيسي */
/* تنسيقات الموبايل */
@media (max-width: 767px) {
  .hero h1 span:first-child {
    font-size: 2.5rem !important;
  }
  
  .hero h1 span:last-child {
    font-size: 1.5rem !important;
  }
}

/* تنسيقات خاصة بالموبايل */
@media (max-width: 767px) {
  .mobile-title {
    font-size: 2rem;
  }
  
  .mobile-title .brand-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
  }
  
  .mobile-title .subtitle {
    font-size: 1.25rem;
    line-height: 1.4;
    display: block;
    white-space: normal;
  }
}

  .about-logo {
    width: 100px;
  }
  
  .footer-logo {
    height: 50px;
  }
}


.site-header {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
}

.btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 4px;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--purple);
  color: var(--white);
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5a4bcf;
}

.hero {
  background: var(--gray-light);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.3em;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 30px;
}

.features h2,
.about h2,
.contact h2 {
  font-size: 1.8em;
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  background: #fff;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  color: var(--purple);
  font-size: 1.2em;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.95em;
  color: #555;
}

.about p {
  width: 80%;
  margin: auto;
  line-height: 1.6;
  font-size: 1.1em;
  color: #333;
}

.contact form {
  max-width: 600px;
  margin: auto;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1em;
  color: #444;
}

.locations ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95em;
  color: #444;
  transition: all 0.3s ease;
}

.locations ul li:hover {
  color: var(--blue-dark);
  transform: translateX(-5px);
}

.locations ul li i {
  font-size: 0.8em;
}

.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
}
