/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #0a0a0a;
  overflow-x: hidden;
}

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

/* Language Selection Screen */
.language-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Home Button */
.home-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10000;
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border: 2px solid #d4af37;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.home-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f4d03f, #d4af37);
}

.home-btn i {
  font-size: 1.5rem;
  font-weight: 600;
}

.language-screen .logo {
  text-align: center;
  margin-bottom: 2rem;
}

.language-screen .logo-image {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

.language-screen .logo p {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 1.5rem auto;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.8px;
  font-family: "Playfair Display", serif;
  max-width: 80%;
  line-height: 1.4;
}

.language-selector-main {
  text-align: center;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid #d4af37;
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}

.language-selector-main h3 {
  font-size: 1.2rem;
  color: #d4af37;
  margin-bottom: 2rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  text-align: center;
  letter-spacing: 0.5px;
}

.language-selector-main .language-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-selector-main .lang-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  padding: 1.2rem 2rem;
  background: #1a1a1a;
  border: 2px solid #d4af37;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  width: 100%;
}

.language-selector-main .lang-btn:hover {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.language-selector-main .lang-btn .flag-img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Menu Content Wrapper */
.menu-content-wrapper {
  display: none;
}

.menu-content-wrapper.active {
  display: block;
}

/* Header */
.menu-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: white;
  padding: 1.5rem 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
  border-bottom: 2px solid #d4af37;
  overflow: visible !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible !important;
  position: relative;
}

.menu-header .home-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
}

.menu-header .home-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border: 2px solid #d4af37;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-header .home-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f4d03f, #d4af37);
}

.menu-header .home-btn i {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Back Button */
.menu-header .back-button {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

.menu-header .back-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border: 2px solid #d4af37;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
}

.menu-header .back-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f4d03f, #d4af37);
}

.menu-header .back-btn i {
  font-size: 1.5rem;
  font-weight: 600;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-image {
  height: 65px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
  transition: all 0.3s ease;
  border-radius: 8px;
}

.logo-image:hover {
  filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.6));
  transform: scale(1.05);
}

.menu-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  letter-spacing: 1px;
}

/* Language Selector */
.language-selector {
  position: relative;
  cursor: pointer;
}

.language-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #222;
  border: 2px solid #d4af37;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.language-btn i {
  margin-left: 8px;
}

.selected-flag-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4af37;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1a1a;
  border: 2px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  margin-top: 5px;
  display: none;
  z-index: 1001;
}

.language-dropdown.active .language-options {
  display: block !important;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.language-option:hover {
  background: #222;
  color: #d4af37;
}

.flag-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4af37;
  image-rendering: crisp-edges;
  flex-shrink: 0;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 15px 25px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border-radius: 10px;
  transition: all 0.3s ease;
  color: #000;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.current-lang:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 250px;
  margin-top: 15px;
  z-index: 1000;
  border: 2px solid #d4af37;
}

.language-dropdown.active .language-options {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 25px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  border-bottom: 1px solid #333;
  font-size: 1.3rem;
  font-weight: 500;
}

.lang-dropdown a:last-child {
  border-bottom: none;
}

.lang-dropdown a:hover {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #000;
  transform: translateX(8px);
}

/* Menu Navigation */
.menu-nav {
  background: #1a1a1a;
  padding: 1rem 0;
  border-bottom: 2px solid #d4af37;
  position: sticky;
  top: 0;
  z-index: 99;
  margin-top: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 120px;
  border: 2px solid transparent;
}

.tab-btn i {
  font-size: 2rem;
  color: #666;
  transition: all 0.3s ease;
}

.tab-btn span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  transform: translateY(-3px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #000;
  border-color: #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.tab-btn.active i,
.tab-btn.active span {
  color: #000;
}

/* Menu Content */
.menu-content {
  padding: 3rem 0;
  background: #0a0a0a;
  scroll-behavior: smooth;
}

.menu-section {
  display: none;
  animation: fadeIn 0.5s ease;
  scroll-margin-top: 100px;
}

.menu-section.active {
  display: block;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  letter-spacing: 1px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.menu-item {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
}

.item-image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

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

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

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.item-info p {
  color: #cccccc;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.item-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #d4af37;
  text-align: right;
  margin-top: auto;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.menu-footer {
  background: #1a1a1a;
  padding: 2rem 0;
  border-top: 2px solid #d4af37;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info p {
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: #d4af37;
  margin-right: 0.5rem;
}

.qr-info {
  text-align: right;
}

.qr-info p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #cccccc;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  /* Language Screen Mobile */
  .language-screen {
    padding: 1rem;
    height: 100vh;
    overflow-y: auto;
  }

  .home-button {
    top: 1rem;
    right: 1rem;
  }

  .home-btn {
    width: 45px;
    height: 45px;
  }

  .home-btn i {
    font-size: 1.3rem;
  }

  .menu-header .back-btn {
    width: 45px;
    height: 45px;
  }

  .menu-header .back-btn i {
    font-size: 1.3rem;
  }

  .language-screen .logo-image {
    height: 60px;
  }

  .language-screen .logo p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 1.2rem auto;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.5px;
    font-family: "Playfair Display", serif;
    max-width: 85%;
    line-height: 1.3;
  }

  .language-selector-main {
    padding: 2rem 1.5rem;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
  }

  .language-selector-main h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: "Playfair Display", serif;
    text-align: center;
    letter-spacing: 0.3px;
  }

  .language-selector-main .lang-btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    gap: 1rem;
  }

  .language-selector-main .lang-btn .flag-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }

  /* Menu Content Mobile */
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo-image {
    height: 50px;
  }

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

  .language-selector {
    margin-top: 1rem;
  }

  .language-btn {
    padding: 10px 16px;
    font-size: 1rem;
    min-width: 100px;
  }

  .language-options {
    min-width: 160px;
  }

  .category-tabs {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    padding: 0.6rem 0.8rem;
    min-width: 80px;
    flex-direction: column;
    gap: 0.3rem;
  }

  .tab-btn i {
    font-size: 1.2rem;
  }

  .tab-btn span {
    font-size: 0.8rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .menu-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .item-image {
    height: 180px;
    margin-bottom: 0.8rem;
  }

  .item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .item-info p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .item-price {
    align-self: flex-end;
    font-size: 1.2rem;
  }

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

  .qr-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

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

  .language-screen .logo p {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 1rem auto;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.3px;
    font-family: "Playfair Display", serif;
    max-width: 90%;
    line-height: 1.2;
  }

  .language-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 80px;
  }

  .language-options {
    min-width: 140px;
  }

  .tab-btn {
    padding: 0.6rem 0.8rem;
    min-width: 70px;
  }

  .tab-btn i {
    font-size: 1rem;
  }

  .tab-btn span {
    font-size: 0.7rem;
  }

  .menu-item {
    padding: 0.8rem;
  }

  .item-image {
    height: 120px;
    margin-bottom: 0.6rem;
  }

  .item-info h3 {
    font-size: 1.1rem;
  }

  .item-info p {
    font-size: 0.8rem;
  }

  .item-price {
    font-size: 1.1rem;
  }

  .home-button {
    top: 0.8rem;
    right: 0.8rem;
  }

  .home-btn {
    width: 40px;
    height: 40px;
  }

  .home-btn i {
    font-size: 1.1rem;
  }

  .menu-header .back-btn {
    width: 40px;
    height: 40px;
  }

  .menu-header .back-btn i {
    font-size: 1.1rem;
  }

  .current-lang {
    gap: 4px;
    padding: 5px 8px;
    font-size: 0.9rem;
  }

  .flag-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }

  .selected-flag-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }

  .lang-dropdown a {
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  /* Prominent Language Selector Small Mobile */
  .prominent-language-selector {
    padding: 0.4rem;
  }

  .prominent-language-selector h3 {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .language-buttons {
    gap: 0.4rem;
  }

  .lang-btn {
    padding: 0.4rem 0.6rem;
    min-width: 70px;
    font-size: 0.7rem;
  }

  .lang-btn span:last-child {
    font-size: 0.6rem;
  }
}

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

[dir="rtl"] .menu-item {
  flex-direction: column;
}

[dir="rtl"] .item-price {
  text-align: left;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

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

[dir="rtl"] .qr-info {
  text-align: left;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8941f;
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Prominent Language Selector */
.prominent-language-selector {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  border: 1px solid #d4af37;
}

.prominent-language-selector h3 {
  font-size: 1.2rem;
  color: #d4af37;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.language-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.lang-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #1a1a1a;
  border: 1px solid #d4af37;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  min-width: 110px;
}

.lang-btn:hover {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.lang-btn.active {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #000;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.lang-btn span:last-child {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .selected-flag-img,
  .flag-img {
    width: 22px;
    height: 22px;
  }
  .language-btn {
    font-size: 0.95rem;
    padding: 8px 12px;
  }
  .language-options {
    min-width: 120px;
  }
}
