@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap");

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

:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

body {
  font-family: "Noto Sans Arabic", sans-serif;
  /* Removed hardcoded direction: rtl; to allow dynamic switching */
  color: var(--text);
  background-color: var(--background);

}

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

/* Header */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Added styles for logo image */
.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo svg {
  color: var(--accent);
}

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

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent);
}

/* Added hamburger menu button styles */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.600rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

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

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

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

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Owner Section */
.owner-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.owner-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.owner-image-wrapper {
  position: relative;
}

.owner-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.owner-info {
  background-color: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.owner-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.owner-greeting {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.owner-info p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.owner-info strong {
  color: var(--primary);
  font-weight: 600;
}

.owner-values {
  background-color: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  /* Changed border-right to border-inline-start for RTL/LTR support */
  border-inline-start: 4px solid var(--accent);
}

.owner-values h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.owner-values ul {
  list-style: none;
  padding: 0;
}

.owner-values ul li {
  padding: 0.75rem 0;
  color: var(--text);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.owner-values ul li:last-child {
  border-bottom: none;
}

.owner-mission {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 2rem 0;
}

.owner-signature {
  /* Changed text-align: right to text-align: end for RTL/LTR support */
  text-align: end;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.owner-signature strong {
  color: var(--primary);
  font-size: 1.125rem;
  font-style: normal;
}

/* Company Stats */
.company-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.2);
  transition: transform 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-box .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-box .stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--surface);
}

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

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--surface);
  border-radius: 12px;
}

.info-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Noto Sans Arabic", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Added language toggle button styles */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.875rem;
}

.language-toggle:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.language-toggle svg {
  flex-shrink: 0;
}

#currentLang {
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  /* Hide navigation on mobile and show hamburger button */
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    /* Changed right positioning to use inset-inline-end for RTL/LTR support */
    inset-inline-end: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    /* Changed transition property to inset-inline-end */
    transition: inset-inline-end 0.3s ease;
    z-index: 99;
  }

  .nav.active {
    /* Changed right: 0 to inset-inline-end: 0 for RTL/LTR support */
    inset-inline-end: 0;
  }

  .nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:hover {
    background-color: var(--surface);
  }

  /* Added responsive styles for owner section */
  .owner-content {
    grid-template-columns: 1fr;
  }

  .company-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile styles for language toggle */
  .language-toggle {
    margin: 1rem 2rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  /* Added mobile responsive styles for company stats */
  .company-stats {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Added mobile styles for logo */
  .logo-image {
    width: 40px;
    height: 40px;
  }

  .logo span {
    font-size: 1.25rem;
  }
}
