:root {
  --primary-color: #1a365d;
  --secondary-color: #2c5282;
  --accent-color: #f6ad55;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text-color: #718096;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Noto Sans', 'Noto Kufi Arabic', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: all 0.3s ease;
}

html[dir="rtl"] body {
  font-family: 'Noto Kufi Arabic', 'Noto Sans', sans-serif;
  text-align: right;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:5px 0 5px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

html[dir="rtl"] .logo img {
  margin-right: 0;
  margin-left: 10px;
}

.header-content nav ul {
  display: flex;
  list-style: none;
}

.header-content nav ul li {
  margin-left: 20px;
}

html[dir="rtl"] .header-content nav ul li {
  margin-left: 0;
  margin-right: 20px;
}

.header-content nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header-content nav ul li a:hover {
  color: var(--accent-color);
}

.header-content nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

html[dir="rtl"] .header-content nav ul li a::after {
  left: auto;
  right: 0;
}

.header-content nav ul li a:hover::after {
  width: 100%;
}

.language-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

html[dir="rtl"] .language-switch {
  margin-left: 0;
  margin-right: 20px;
}
/* Mobile-Responsive Navigation Styling */

/* Menu toggle button styling */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: var(--accent-color);
}

/* Base navigation styling improvements */
.header-content nav {
  position: relative;
}

.header-content .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.header-content .nav-menu li {
  margin: 0 10px;
}

.nav-menu li a {
  display: block;
  padding: 0.5rem;
  font-size: 0.95rem;
}

.language-switch {
  display: flex;
  margin-left: 15px;
}

.language-switch a {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .header-content {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 0;
  }
  
  .menu-toggle {
    display: block;
    order: 3;
  }
  
  .header-content nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  /* Use this class to toggle the menu open/closed with JavaScript */
  .header-content nav.open {
    max-height: 300px;
  }
  
 .header-content .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }
  
  .header-content .nav-menu li {
    width: 100%;
    margin: 0;
    text-align: center;
  }
  
  .header-content .nav-menu li a {
    padding: 0.75rem 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .language-switch {
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .language-switch a {
    padding: 0.5rem 1rem;
    margin: 0 5px;
  }
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem 0;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 30px;
  }
  
  .nav-menu li a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* RTL language support */
html[dir="rtl"] .menu-toggle {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .header-content .nav-menu li a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .language-switch {
  margin-left: 0;
  margin-right: 15px;
}

@media (max-width: 768px) {
  html[dir="rtl"] .header-content .nav-menu {
    align-items: flex-end;
  }
}
.language-switch a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.language-switch a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-switch a.active {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: bold;
}

.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5rem 0;
  text-align: center;
}

html[dir="rtl"] .hero {
  background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--primary-color);
}

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

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-color);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--light-text-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--light-text-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .header-content {
  
  }
  
 .header-content nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .language-switch {
    margin: 1rem 0 0;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}
