/* General Styles */
body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background-color: #111; /* Dark background for futuristic feel */
  color: #eee;
  overflow-x: hidden; /* Prevent horizontal scroll */
  direction: rtl; /* Right-to-left */
}

a {
  color: #00aaff; /* Futuristic blue */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0077cc;
}

/* Spinner Styles */
.spinner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #00aaff; /* Futuristic blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Navbar Styles */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; /* Initially transparent */
  transition: background-color 0.5s ease;
  padding: 10px 0;
}

#navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.9); /* Dark semi-transparent on scroll */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-right {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.nav-center .logo {
  height: 50px; /* Adjust as needed */
  transition: transform 0.3s ease;
}

.nav-center .logo:hover {
  transform: scale(1.1);
}

.nav-left {
  /* For potential future elements */
  min-width: 100px; /* Ensure space for alignment */
}

/* Header Styles */
#header {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align content to the bottom */
  overflow: hidden;
  text-align: center;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  filter: brightness(0.6); /* Darken video slightly */
}

.header-content {
  position: relative;
  z-index: 1;
  padding-bottom: 50px; /* Space from bottom */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#menu-button {
  background-color: rgba(
    0,
    170,
    255,
    0.8
  ); /* Futuristic blue, semi-transparent */
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  border-radius: 5px;
  width: 90%;
  max-width: 400px; /* Max width for the button */
  margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
}

#menu-button:hover {
  background-color: rgba(0, 120, 200, 0.9);
  transform: translateY(-3px);
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  font-size: 1.8em;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #00aaff;
  transform: scale(1.2);
}

/* Food Class Section Placeholder Styles */
#food-classes {
  padding-top: 50px; /* Add some space below the header */
}

.food-class-section {
  min-height: 80vh; /* Example height */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Parallax effect */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center items vertically for now */
  align-items: center; /* Center items horizontally for now */
  padding: 40px 20px;
  border-bottom: 2px solid #48ff00; /* Separator */
  color: #fff; /* Default text color for sections */
}

.food-class-section::before {
  /* Overlay for better text readability */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
  z-index: 1;
}

.food-class-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px; /* Limit content width */
  text-align: center; /* Adjust as needed when items are added */
}

.food-class-title {
  /* Style for the class title itself */
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 40px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.food-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline; /* Align title and price */
  margin-bottom: 15px;
  padding: 10px 0;
  font-size: 1.1em;
  opacity: 0; /* Initially hidden for scroll effect */
  transform: translateY(20px); /* Start slightly lower */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.food-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.food-item-title {
  text-align: right;
  flex-grow: 1; /* Take available space */
  margin-left: 10px; /* Space before dots */
  font-size: 1.3em; /* Increased font size */
  font-weight: bold; /* Make it bolder too */
}

.food-item-dots {
  flex-grow: 2; /* Take more space */
  border-bottom: 2px dotted #aaa;
  margin: 0 10px;
  position: relative;
  bottom: 5px; /* Align dots vertically */
}

.food-item-price {
  text-align: left;
  font-weight: bold;
  color: orange; /* Futuristic accent color */
  min-width: 60px; /* Ensure price alignment */
  font-size: 1.2em; /* Slightly larger for emphasis */
}

.food-item-description {
  font-size: 0.9em;
  color: #ccc;
  text-align: right; /* Align description under title */
  padding-right: 10px; /* Indent description slightly */
  margin-top: 5px;
  grid-column: 1 / -1; /* Span full width if using grid later */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
  }
  .nav-right {
    margin-bottom: 5px;
  }
  .nav-center .logo {
    height: 40px;
  }
  .nav-left {
    display: none; /* Hide placeholder on small screens */
  }
  .header-content {
    padding-bottom: 30px;
  }
  #menu-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .social-icons a {
    font-size: 1.5em;
    margin: 0 10px;
  }
  .food-class-title {
    font-size: 2.5em;
  }
  .food-item {
    font-size: 1em;
  }
}

/* Scroll to Top Button Styles */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 30px; /* Changed from left to right */
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgba(
    0,
    170,
    255,
    0.7
  ); /* Futuristic blue, semi-transparent */
  color: white;
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 50%; /* Make it circular */
  font-size: 18px;
  transition: background-color 0.3s ease, opacity 0.4s ease,
    visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtn.show {
  display: block; /* Make it visible */
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background-color: rgba(0, 120, 200, 0.9); /* Darker blue on hover */
}
