/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Language switcher styles */
.language-switcher {
  margin-left: 1rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid #333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.lang-btn:hover {
  background-color: #333;
  color: #fff;
}

.lang-btn i {
  font-size: 0.75rem;
}

/* Arabic language support */
[lang="ar"] {
  direction: rtl;
  text-align: right;
  font-family: "Inter", "Arial", sans-serif;
}

[lang="ar"] .nav-menu {
  flex-direction: row-reverse;
}

[lang="ar"] .language-switcher {
  margin-left: 0;
  margin-right: 1rem;
}

[lang="ar"] .about-content {
  direction: rtl;
}

[lang="ar"] .contact-content {
  direction: rtl;
}

[lang="ar"] .services-grid {
  direction: rtl;
}

[lang="ar"] .service-content h3 i {
  transform: rotate(180deg);
}

[lang="ar"] .hours-item {
  flex-direction: row-reverse;
}

[lang="ar"] .contact-info {
  flex-direction: row-reverse;
}

[lang="ar"] .checkbox-group {
  flex-direction: row-reverse;
}

[lang="ar"] .checkbox-group input[type="checkbox"] {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* RTL specific adjustments */
[lang="ar"] .hero-content {
  text-align: right;
}

[lang="ar"] .about-text {
  text-align: right;
}

[lang="ar"] .services-header {
  text-align: right;
}

[lang="ar"] .contact-form-section {
  text-align: right;
}

[lang="ar"] .contact-info-section {
  text-align: right;
}

/* Arabic text styling */
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] p,
[lang="ar"] span,
[lang="ar"] label {
  font-family: "Inter", "Arial", sans-serif;
}

/* Language transition */
* {
  transition: all 0.3s ease;
}

/* RTL body class support */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-menu {
  flex-direction: row-reverse;
}

body.rtl .language-switcher {
  margin-left: 0;
  margin-right: 1rem;
}

body.rtl .about-content {
  direction: rtl;
}

body.rtl .contact-content {
  direction: rtl;
}

body.rtl .services-grid {
  direction: rtl;
}

body.rtl .service-content h3 i {
  transform: rotate(180deg);
}

body.rtl .hours-item {
  flex-direction: row-reverse;
}

body.rtl .contact-info {
  flex-direction: row-reverse;
}

body.rtl .checkbox-group {
  flex-direction: row-reverse;
}

body.rtl .checkbox-group input[type="checkbox"] {
  margin-left: 0;
  margin-right: 0.5rem;
}

body.rtl .hero-content {
  text-align: right;
}

body.rtl .about-text {
  text-align: right;
}

body.rtl .services-header {
  text-align: right;
}

body.rtl .contact-form-section {
  text-align: right;
}

body.rtl .contact-info-section {
  text-align: right;
}

/* Responsive design for language switcher */
@media (max-width: 768px) {
  .language-switcher {
    margin-left: 0.5rem;
  }

  .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 0.5rem;
  }

  .language-switcher {
    margin-left: 0.25rem;
  }

  .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 0.25rem;
  }
}

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

/* Header and Navigation */
.header {
  background: #ffffff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand h1 {
  color: #000000;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #000;
}

.nav-menu a.active {
  color: #000;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #22c55e;
}

.contact-btn {
  border: 1px solid #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: #000 !important;
  font-weight: 600;
}

.contact-btn:hover {
  background-color: #000;
  color: #fff !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("image_1.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: #22c55e;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.cta-button:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
  padding: 5rem 0;
  background: white;
}

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

.about-text {
  max-width: 500px;
}

.section-tag {
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
  font-weight: 700;
}

.about-text p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-link {
  color: #64748b;
  text-decoration: underline;
  font-weight: 500;
}

.about-image {
  height: 400px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

/* Services Section */
.services {
  padding: 5rem 0;
  background: #f8fafc;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
  font-weight: 700;
}

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

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-content h3 i {
  color: #22c55e;
  font-size: 0.875rem;
}

.service-content p {
  color: #64748b;
  font-size: 0.875rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: white;
}

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

.contact-form-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1e293b;
  font-weight: 700;
}

.contact-form {
  background: white;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.875rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #22c55e;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.submit-btn {
  background: #22c55e;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: #16a34a;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-placeholder {
  height: 300px;
  background: #f0f0f0;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-error {
  background: #7c3aed;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
}

.map-error i {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.map-error p {
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.contact-item h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #1e293b;
  font-weight: 600;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  color: #22c55e;
  width: 16px;
}

.contact-info a {
  color: #64748b;
  text-decoration: underline;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item span {
  color: #64748b;
  font-size: 0.875rem;
}

/* Success/Error Messages */
.message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .about h2,
  .services-header h2,
  .contact-form-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-brand h1 {
    font-size: 1.25rem;
    margin-right: auto;
  }

  .nav-menu {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-menu a {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }

  .contact-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .language-switcher {
    margin-left: 0.25rem;
  }

  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 360px) {
  .nav {
    padding: 0.5rem 0.75rem;
  }

  .nav-brand h1 {
    font-size: 1.1rem;
  }

  .nav-menu {
    gap: 0.25rem;
    margin-top: 0.25rem;
  }

  .nav-menu a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .contact-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  .lang-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.contact-form,
.contact-info {
  animation: fadeInUp 0.8s ease-out;
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}
