:root {
  --primary-color: #004d40;
  --secondary-color: #00796b;
  --accent-color: #b0bec5;
  --background-color: #f7fafc;
  --text-color: #2d3748;
  --light-text-color: #718096;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.08);
}

* {
  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.8;
  transition: all 0.3s ease;
  font-size: 17px;
  background-image: url('/static/images/background-pattern.svg');
  background-attachment: fixed;
}

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

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

header {
  background-color: rgba(0, 77, 64, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 2px 4px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

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

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

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

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

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

.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;
  opacity: 0.9;
}

.header-content nav ul li a:hover {
  color: white;
  opacity: 1;
}

.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.active::after,
.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;
}

.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);
}

.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;
}

@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;
  }
  .header-content nav.open {
    max-height: 350px;
  }
  .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;
  }
}

@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;
  }
}

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: 6px;
  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(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6rem 0;
  text-align: center;
}

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

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.3rem;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.12);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.15);
  filter: brightness(1.05);
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

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

.feature-card {
  background-color: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  border-top: 4px solid var(--accent-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.15);
}

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

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

.feature-card p {
  color: var(--light-text-color);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.15);
}

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

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

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  max-width: 720px;
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.12);
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}

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

footer {
  background-color: #263238;
  color: #cfd8dc;
  padding: 4rem 0 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

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

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

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 500;
}

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

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

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

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

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

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

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

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

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}

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