* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-color: #ccc;
}

.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  background-color: #ccc;

}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 20px 20px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  direction: ltr;
}

.header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.header p {
  font-size: 18px;
  margin: 0;
}

.search-container {
  margin-top: 20px;
  margin-bottom: 25px;
}

.search-box {
  display: flex;
  align-items: center;
  border-radius: 25px;
  padding: 15px 20px;
  gap: 12px;
}

.search-box i {
  font-size: 18px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.search-box input::placeholder {
  color: black;
}

.nav-tabs {
  display: flex;
  justify-content: space-between;
  border-radius: 25px;
  padding: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px var(--shadow);
  gap: 4px;
}

.nav-tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
  user-select: none;
}

.nav-tab.active,
.nav-tab:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.section {
  margin-bottom: 35px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 5px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
}

.see-all {
  color: black;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.see-all:hover {
  opacity: 0.8;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  transition: all 0.3s ease;
}

.menu-item {
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 6px 25px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.menu-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.menu-item:hover img {
  transform: scale(1.05);
}

.item-info {
  flex-grow: 1;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.item-name {
  font-size: 16px;
  font-weight: 700;
  color: black;
  margin-bottom: 4px;
  line-height: 1.3;
}

.item-description {
  font-size: 13px;
  color: black;
  line-height: 1.4;
  flex-grow: 1;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #888;
}

.favorite-btn:hover {
  background: rgba(255, 0, 0, 0.1);
  color: red;
  transform: scale(1.1);
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: black;
}

.iframe-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  animation: fadeInModal 0.5s ease forwards;
  overflow: hidden;
}

.iframe-modal.active {
  display: block;
}

.iframe-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  animation: fadeInIframe 0.5s ease forwards;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: #f0f0f0;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInIframe {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.dark-mode {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.lang-btns {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.lang-btns button {
  padding: 8px 16px;
  border: 2px solid #555;
  color: white;
  font-weight: bold;

  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.lang-btns button:hover {
  color: white;
}

.lang-btns button.active {
  color: white;
  border-color: #007bff;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.page-content .settings-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;

  padding-bottom: 10px;
}

.page-content .setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 12px 0;
}

.page-content .setting-label span {
  font-size: 1.1rem;
  font-weight: 600;
}

.page-content .switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.page-content .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.page-content .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 28px;
  transition: 0.4s;
}

.page-content .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  transition: 0.4s;
}

.page-content input:checked + .slider {
  background-color: #4caf50;
}

.page-content input:checked + .slider:before {
  transform: translateX(24px);
}

.page-content .settings-content {
  margin-top: 40px;
  min-height: 150px;
  font-size: 1rem;
  color: #555;
}

.page-content-settings {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.page-content-settings .settings-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.page-content-settings .setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.page-content-settings .setting-label span {
  font-size: 1.1rem;
  font-weight: 600;
}

.page-content-settings .switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.page-content-settings .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.page-content-settings .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 28px;
  transition: 0.4s;
}

.page-content-settings .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.page-content-settings input:checked + .slider {
  background-color: #4caf50;
}

.page-content-settings input:checked + .slider:before {
  transform: translateX(24px);
}

.page-content-settings .settings-content {
  margin-top: 40px;
  min-height: 150px;
  font-size: 1rem;
  color: #555;
}

.social-footer {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  max-width: 900px;
  width: 90%;
  margin: 20px auto 0;
}

.social-icon {
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.social-icon:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}


/* ========== Delivery Fixed Icon ========== */
.delivery-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.delivery-fixed:hover {
  background-color: #222;
  transform: scale(1.1);
}

.delivery-icon i {
  font-size: 26px;
}

/* ========== Delivery Form Container ========== */
/* خلفية تغطية */
.delivery-form-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

}

.delivery-form-container.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* شكل الكارد للفورم */
.delivery-form {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* inputs */
.delivery-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: 0.3s;
  margin-top: 10px;
}
.delivery-form input:focus {
  border-color: #008cba;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.2);
}

/* زر الإضافة */
#addOrderBtn {
  padding: 10px 20px;
  background: #008cba;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
#addOrderBtn:hover {
  background: #005f7a;
}

/* الجزء الخاص بإدخال الطلب */
.order-section {
  display: flex;
  gap: 10px;
}

/* قائمة الطلبات */
.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
}
.order-list li {
  background: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}

/* زر الإرسال للواتساب */
#sendWhatsApp {
  padding: 12px;
  background: #25d366;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}
#sendWhatsApp:hover {
  background: #1da851;
}

/* زر الإغلاق */
.close-delivery {
  position: absolute;
  top: 1px;
  right: 20px;
  font-size: 24px;
  color: #0a0a0a;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 100px;
}
.close-delivery:hover {
  color: #e74c3c;
}

/* انيميشن الظهور */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Dark Mode Adjustments ========== */
body.dark-mode .delivery-form-container {
  background-color: #1b1b1b;
  color: #f2f2f2;
}

body.dark-mode .delivery-form input {
  background-color: #2a2a2a;
  color: #fff;
}

body.dark-mode .delivery-form input:focus {
  background-color: #3a3a3a;
}

body.dark-mode .order-section button {
  background-color: #fff;
  color: #000;
}

body.dark-mode #sendWhatsApp {
  background-color: #25d366;
  color: white;
}

body.dark-mode .order-list li {
  background-color: #333;
  color: white;
}

body.dark-mode .close-delivery {
  color: #aaa;
}

body.dark-mode .close-delivery:hover {
  color: red;
}

 .contact-container {
      text-align: center;
    }

    .contact-container h2 {
      font-size: 32px;
      margin-bottom: 30px;
      color: #000000;
      letter-spacing: 1px;
      box-shadow: 0 0 10px rgb(0, 0, 0);
      border-radius: 100px;
    }

    .social-icons {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
       box-shadow: 0 0 10px rgb(0, 0, 0);
      border-radius: 100px;
      padding: 20px;
    }

    .social-icons a {
      color: white;
      background: #222;
      padding: 15px;
      border-radius: 25%;
      font-size: 24px;
      text-decoration: none;
      transition: 0.3s;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
    }

    .social-icons a:hover {
      transform: scale(1.2);
      background: #333;
    }

    @media (max-width: 600px) {
      .social-icons {
        gap: 15px;
      }
      .contact-container h2 {
        font-size: 24px;
      }
    }

    
.matix-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  color: #fff;
  padding: 20px;
}

.matix-card {
  text-align: center;
  padding: 40px 30px;
  background-color: #1e1e1e;
  border-radius: 20px;
  box-shadow: 0 0 20px rgb(12, 12, 12);
  animation: fadeInUp 0.8s ease forwards;
  max-width: 400px;
  width: 100%;
}

.matix-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgb(0, 0, 0));
}

.matix-name {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: 2px;
  font-weight: bold;
}

.matix-desc {
  font-size: 16px;
  color: #bbb;
  margin-bottom: 25px;
  padding: 0 10px;
}

.matix-contact {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.matix-contact a {
  font-size: 22px;
  background-color: #333;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.3s, transform 0.3s;
}

.matix-contact a:hover {
  background-color: #000000;
  transform: scale(1.1);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}