* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
.logo-text {
  font-family: "Playfair Display", serif;
}

body {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #2c3e50;
  overflow-x: hidden;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #66ccff;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #66ccff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #66ccff;
}

.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher button {
  background: transparent;
  border: 2px solid #66ccff;
  color: #66ccff;
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.language-switcher button:hover {
  background: #66ccff;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #66ccff;
  z-index: 1001;
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 30px 30px;
  overflow-y: auto;
  /* Default: Slide from right (LTR) */
  right: -100%;
  transform: translateX(0);
}

/* When in Arabic mode, slide from left */
html[dir="rtl"] .mobile-menu {
  right: auto;
  left: -100%;
}

.mobile-menu.active {
  /* Active state based on direction */
  right: 0;
}

html[dir="rtl"] .mobile-menu.active {
  right: auto;
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 30px;
}

.mobile-nav-links li {
  margin: 20px 0;
  opacity: 0;
  /* Default: Slide from right */
  transform: translateX(20px);
  transition: all 0.4s ease;
}

html[dir="rtl"] .mobile-nav-links li {
  /* In RTL: Slide from left */
  transform: translateX(-20px);
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-links li:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-nav-links li:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-nav-links li:nth-child(3) {
  transition-delay: 0.3s;
}
.mobile-nav-links li:nth-child(4) {
  transition-delay: 0.4s;
}

.mobile-nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
  color: #66ccff;
  padding-left: 10px;
}

html[dir="rtl"] .mobile-nav-links a:hover {
  padding-right: 10px;
  padding-left: 0;
}

.mobile-language-switcher {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
}

.mobile-language-switcher button {
  background: transparent;
  border: 2px solid #66ccff;
  color: #66ccff;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.mobile-language-switcher button:hover {
  background: #66ccff;
  color: white;
}

/* ========================================
   OVERLAY (FOR MOBILE MENU)
   ======================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 992px) {
  .nav-links,
  .language-switcher {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

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

  .mobile-menu {
    width: 85%;
  }
}

/* ========================================
   RTL SUPPORT (Arabic Language)
   ======================================== */
html[dir="rtl"] {
  direction: rtl;
}

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

html[dir="rtl"] .nav-links {
  text-align: right;
}

/* ========================================
   Menu Hero SECTION
   ======================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Menu Hero Section */
.menu-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("https://images.unsplash.com/photo-1571091718767-18b5b1457add?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1172&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
}

.menu-hero-content {
  max-width: 800px;
}

.menu-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  line-height: 1.2;
}

.menu-hero h1 span {
  color: #66ccff;
}

.menu-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #34495e;
}

/* ========================================
   Menu  SECTION
   ======================================== */

.menu-add-ons {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.menu-add-ons h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.add-ons-container {
  max-width: 600px;
  margin: 0 auto;
}

.add-ons-list {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
  line-height: 2.2;
  color: #444;
}

.add-ons-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #ccc;
  padding: 8px 0;
}

.add-ons-list li:last-child {
  border-bottom: none;
}

.add-on-price {
  font-weight: bold;
  color: #66ccff;
  min-width: 80px;
  text-align: right;
}

/* Menu Categories */
.menu-categories {
  padding: 60px 5%;
  text-align: center;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.divider-line {
  height: 2px;
  width: 50px;
  background: #66ccff;
}

.divider-icon {
  color: #66ccff;
  font-size: 1.2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.category-tab {
  padding: 12px 25px;
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 30px;
  color: #7f8c8d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tab:hover {
  border-color: #66ccff;
  color: #66ccff;
}

.category-tab.active {
  background: #66ccff;
  border-color: #66ccff;
  color: white;
}

/* Menu Items Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.menu-item-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.menu-item-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item-card:hover .item-image img {
  transform: scale(1.05);
}

.item-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #66ccff;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.item-badge.popular {
  background: #ff6b6b;
}

.item-badge.new {
  background: #2ecc71;
}

.item-content {
  padding: 20px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.item-header h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-right: 15px;
  font-family: "Playfair Display", serif;
}

.item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #66ccff;
  white-space: nowrap;
}

.item-content p {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.item-details {
  display: flex;
  justify-content: space-between;
  color: #95a5a6;
  font-size: 0.9rem;
}

.item-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f39c12;
  font-weight: 600;
}

/* ========================================
   Footer SECTION
   ======================================== */
/* Footer Section Styles */
.footer-section {
  background: linear-gradient(to bottom, #f7fbff 0%, #e6f2ff 100%);
  padding: 60px 5% 20px;
  color: #2c3e50;
  position: relative;
}

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

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

/* Footer Brand */
.footer-brand {
  grid-column: 1 / 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

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

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #66ccff;
  font-family: "Playfair Display", serif;
}

.footer-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #66ccff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #33bbff;
  transform: translateY(-5px);
}

/* Footer Links */
.footer-links {
  grid-column: 2 / 3;
}

.footer-title {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
  position: relative;
  padding-bottom: 12px;
  text-align: left;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 50px;
  height: 2.5px;
  background: #66ccff;
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0;
}

.footer-title:hover::after,
.footer-title.active::after {
  width: 50px;
}

/* Footer Menu */
.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: #7f8c8d;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-inline-start: 15px;
  display: inline-block;
}

.footer-menu a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #66ccff;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-menu a:hover {
  color: #66ccff;
  padding-inline-start: 20px;
}

.footer-menu a:hover::before {
  opacity: 1;
}

/* Footer Contact */
.footer-contact {
  grid-column: 3 / 4;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(102, 204, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #66ccff;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-details span {
  color: #7f8c8d;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Footer Newsletter */
.footer-newsletter {
  grid-column: 4 / 5;
}

.newsletter-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.newsletter-form {
  position: relative;
}

.input-group {
  position: relative;
  display: flex;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e8e8e8;
  border-radius: 30px 0 0 30px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  color: #2c3e50;
}

.input-group input:focus {
  border-color: #66ccff;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  color: #95a5a6;
  pointer-events: none;
  transition: all 0.3s ease;
  background: white;
  padding: 0 5px;
  font-size: 1rem;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  inset-inline-start: 10px;
  font-size: 0.8rem;
  color: #66ccff;
}

.input-group {
  position: relative;
  display: flex;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e8e8e8;
  border-radius: 30px 0 0 30px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  color: #2c3e50;
}

/* RTL: Flip input radius in Arabic */
html[dir="rtl"] .input-group input {
  border-radius: 0 30px 30px 0;
}

.input-group input:focus {
  border-color: #66ccff;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  color: #95a5a6;
  pointer-events: none;
  transition: all 0.3s ease;
  background: white;
  padding: 0 5px;
  font-size: 1rem;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  inset-inline-start: 10px;
  font-size: 0.8rem;
  color: #66ccff;
}

/* RTL: Flip label position logic */
html[dir="rtl"] .input-group input:focus + label,
html[dir="rtl"] .input-group input:not(:placeholder-shown) + label {
  inset-inline-start: 10px;
}

/* Submit Button */
.input-group button {
  padding: 15px 20px;
  background: #66ccff;
  color: white;
  border: none;
  border-radius: 0 30px 30px 0; /* Rounded on the right (LTR) */
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

/* In RTL: Button should be rounded on the LEFT */
html[dir="rtl"] .input-group button {
  border-radius: 30px 0 0 30px; /* Now rounded on the left */
  padding: 15px 20px;
}

/* Newsletter Success & Error Messages */
.form-success,
.form-error {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: left;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.form-success {
  background: #e6f7ee;
  color: #27ae60;
  border: 1px solid #d1eeda;
}

.form-error {
  background: #fdf2f2;
  color: #e74c3c;
  border: 1px solid #fbc7c7;
}

/* Show messages */
.form-success.show,
.form-error.show {
  opacity: 1;
  height: auto;
  margin: 10px 0;
}

/* Newsletter Form Styles */
.form-loading,
.form-success,
.form-error {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.form-loading {
  background-color: rgba(102, 204, 255, 0.1);
  color: #66ccff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-success {
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid #2ecc71;
}

.form-error {
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid #e74c3c;
}

.input-group {
  position: relative;
}

.input-group input:valid {
  border-color: #2ecc71;
}

/* RTL Support for Messages */
html[dir="rtl"] .form-success,
html[dir="rtl"] .form-error {
  text-align: right;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 40px;
}

.footer-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* RTL Support */
html[dir="rtl"] .footer-menu a {
  padding-inline-start: 0;
  padding-inline-end: 15px;
}

html[dir="rtl"] .footer-menu a::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

html[dir="rtl"] .footer-menu a:hover {
  padding-inline-end: 20px;
}

html[dir="rtl"] .footer-contact h3,
html[dir="rtl"] .footer-links h3,
html[dir="rtl"] .footer-newsletter h3 {
  text-align: right;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / 3;
    text-align: center;
  }

  .footer-links {
    grid-column: 1 / 2;
  }

  .footer-contact {
    grid-column: 2 / 3;
  }

  .footer-newsletter {
    grid-column: 1 / 3;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .contact-item {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 40px 5% 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-newsletter {
    grid-column: 1;
  }

  .footer-logo {
    justify-content: center;
    text-align: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }

  .footer-menu {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  html[dir="rtl"] .footer-contact h3,
  html[dir="rtl"] .footer-links h3,
  html[dir="rtl"] .footer-newsletter h3 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo img {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group input {
    border-radius: 30px;
    margin-bottom: 10px;
    padding: 14px;
  }

  .input-group input + label {
    left: 15px;
  }

  .input-group button {
    border-radius: 30px;
    padding: 12px;
  }
}

/* Animation for footer elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-newsletter {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.footer-links {
  animation-delay: 0.1s;
}
.footer-contact {
  animation-delay: 0.2s;
}
.footer-newsletter {
  animation-delay: 0.3s;
}
