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

body {
  font-family: 'Cairo', 'Tajawal', 'Dubai', 'Tahoma', 'Arial', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: #333;
  direction: rtl;
  text-align: right;
  font-weight: 400;
}

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

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.logo {
  order: 2;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  order: 3;
  justify-content: flex-end;
}

.lang-toggle {
  order: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  color: #2c5aa0;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Cairo', sans-serif;
}

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

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

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

.theme-toggle,
.lang-toggle {
  background: none;
  border: 2px solid #2c5aa0;
  color: #2c5aa0;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: #2c5aa0;
  color: white;
}

/* Dark Theme */
[data-theme="dark"] {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

[data-theme="dark"] .header {
  background: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .logo-text {
  color: #4a90e2;
}

[data-theme="dark"] .nav-menu a {
  color: #e0e0e0;
}

[data-theme="dark"] .nav-menu a:hover {
  color: #4a90e2;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle {
  border-color: #4a90e2;
  color: #4a90e2;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-toggle:hover {
  background: #4a90e2;
  color: white;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="dark"] .banner-image {
  opacity: 0.2;
}

[data-theme="dark"] .services {
  background: #252525;
}

[data-theme="dark"] .service-card {
  background: #3d3d3d;
  color: #e0e0e0;
}

[data-theme="dark"] .service-card h3 {
  color: #4a90e2;
}

[data-theme="dark"] .service-card p {
  color: #b0b0b0;
}

[data-theme="dark"] .pricing {
  background: #1a1a1a;
}

[data-theme="dark"] .price-card {
  background: #3d3d3d;
  border-color: #555;
  color: #e0e0e0;
}

[data-theme="dark"] .price-card:hover {
  border-color: #4a90e2;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .price-card h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .price {
  color: #4a90e2;
}

[data-theme="dark"] .price-card p {
  color: #b0b0b0;
}

[data-theme="dark"] .contact {
  background: #252525;
}

[data-theme="dark"] .contact-info p {
  color: #b0b0b0;
}

[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .contact-form h3 {
  color: #4a90e2;
}

[data-theme="dark"] .contact-form {
  background: #3d3d3d;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
  background: #555;
  border-color: #666;
  color: #e0e0e0;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form select:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: #4a90e2;
}

[data-theme="dark"] .submit-button {
  background: #4a90e2;
}

[data-theme="dark"] .submit-button:hover {
  background: #357abd;
}

[data-theme="dark"] .section-title {
  color: #e0e0e0;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

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

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

[dir="rtl"] .services-grid,
[dir="rtl"] .pricing-grid {
  direction: rtl;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 150px 0 120px;
  text-align: center;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
  filter: contrast(1.1) brightness(1.1) saturate(1.2);
}

.banner-image.active {
  opacity: 0.3;
}

[data-theme="dark"] .banner-image.active {
  opacity: 0.2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.cta-button:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-button.secondary:hover {
  background: white;
  color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c5aa0;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
}

.service-card p {
  color: #666;
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background: #fff;
}

.gallery-description {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 250px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.gallery-overlay p {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
  margin: 0;
}

/* Dark theme for gallery */
[data-theme="dark"] .gallery {
  background: #252525;
}

[data-theme="dark"] .gallery-description {
  color: #b0b0b0;
}

[data-theme="dark"] .gallery-item {
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .gallery-item:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background: #f8f9fa;
}

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

.price-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.price-card:hover {
  border-color: #2c5aa0;
  box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: #2c5aa0;
  margin-bottom: 1rem;
}

.price-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Appointment Section */
.appointment {
  padding: 80px 0;
  background: #f8f9fa;
}

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

.appointment-info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #2c5aa0;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-icon {
  font-size: 2rem;
  min-width: 50px;
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.feature-text p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.appointment-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.appointment-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #2c5aa0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.address-section,
.datetime-section,
.items-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.address-section h4,
.datetime-section h4,
.items-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #2c5aa0;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.address-section h4::before {
  content: "📍";
  font-size: 1.1rem;
}

.datetime-section h4::before {
  content: "📅";
  font-size: 1.1rem;
}

.items-section h4::before {
  content: "📦";
  font-size: 1.1rem;
}

.checkbox-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.checkbox-label:hover {
  background: rgba(44, 90, 160, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2c5aa0;
  cursor: pointer;
}

.checkmark {
  color: #64748b;
  flex: 1;
}

.submit-button {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-button:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Dark theme for appointment section */
[data-theme="dark"] .appointment {
  background: #252525;
}

[data-theme="dark"] .appointment-info h3,
[data-theme="dark"] .appointment-form h3 {
  color: #4a90e2;
}

[data-theme="dark"] .feature {
  background: #3d3d3d;
}

[data-theme="dark"] .feature-text h4 {
  color: #e0e0e0;
}

[data-theme="dark"] .feature-text p {
  color: #b0b0b0;
}

[data-theme="dark"] .appointment-form {
  background: #3d3d3d;
}

[data-theme="dark"] .appointment-form input,
[data-theme="dark"] .appointment-form select,
[data-theme="dark"] .appointment-form textarea {
  background: #3a4553;
  border-color: #4a5568;
  color: #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .appointment-form input:focus,
[data-theme="dark"] .appointment-form select:focus,
[data-theme="dark"] .appointment-form textarea:focus {
  border-color: #4a90e2;
  background: #2d3748;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

[data-theme="dark"] .appointment-form input:hover,
[data-theme="dark"] .appointment-form select:hover,
[data-theme="dark"] .appointment-form textarea:hover {
  border-color: #718096;
  background: #2d3748;
}

[data-theme="dark"] .appointment-form input::placeholder,
[data-theme="dark"] .appointment-form textarea::placeholder {
  color: #a0aec0;
}

[data-theme="dark"] .address-section,
[data-theme="dark"] .datetime-section,
[data-theme="dark"] .items-section {
  background: #2d3748;
  border-color: #4a5568;
}</data-theme>

[data-theme="dark"] .address-section h4,
[data-theme="dark"] .datetime-section h4,
[data-theme="dark"] .items-section h4 {
  color: #e0e0e0;
  border-color: #555;
}

[data-theme="dark"] .checkbox-section {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .checkbox-label:hover {
  background: rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .checkbox-label input[type="checkbox"] {
  accent-color: #4a90e2;
}

[data-theme="dark"] .checkmark {
  color: #a0aec0;
}

[data-theme="dark"] .submit-button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .submit-button:hover {
  background: linear-gradient(135deg, #357abd 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #fff;
}

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

.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #2c5aa0;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: #666;
}

.hours {
  margin-top: 2rem;
}

.hours h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 1.2rem;
  border: 2px solid #e1e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Tajawal', sans-serif;
  background: #fafbfc;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: #2c5aa0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
  transform: translateY(-1px);
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: #8492a6;
  font-weight: 400;
}

.appointment-form input:hover,
.appointment-form select:hover,
.appointment-form textarea:hover {
  border-color: #cbd5e0;
  background: #ffffff;
}

.submit-button {
  background: #2c5aa0;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background: #1e3a8a;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 20px;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }

  .theme-toggle,
  .lang-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .logo {
    flex-direction: row;
    gap: 0.6rem;
    text-align: center;
    justify-content: center;
  }

  .logo-image {
    height: 35px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .header {
    padding: 0;
  }

  .navbar {
    padding: 0.8rem 0;
  }

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

  .hero-description {
    font-size: 1rem;
  }

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

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

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

  .gallery-item {
    height: 200px;
  }

  .gallery-grid {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 1rem;
    padding: 0.8rem 15px;
  }

  .nav-menu {
    gap: 0.5rem;
  }

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

  .theme-toggle,
  .lang-toggle {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .logo {
    gap: 0.4rem;
  }

  .logo-image {
    height: 30px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero {
    padding: 120px 0 80px;
    margin-top: 70px;
    min-height: 70vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 80%;
    max-width: 300px;
  }

  .services,
  .pricing,
  .contact,
  .appointment {
    padding: 60px 0;
  }

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

  .appointment-form,
  .contact-form {
    padding: 1.5rem;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    min-width: auto;
  }
}
