/* General Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}
/* --- Navigation Bar --- */
.navbar {
  background-color: rgba(251, 249, 249, 0.375); /* Slightly transparent background */
  padding: 10px 20px;
  position: fixed; /* Keep it at the top when scrolling */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure it stays above other content */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo img {
  height: 40px; /* Adjust logo size as needed */
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.navbar-logo img:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: rgb(44, 39, 39);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative; /* For the underline effect */
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #5788c0; /* Blue underline */
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #5788c0;
  transform: translateY(-2px);
}
/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* General Buttons */
.btn {
  padding: 12px 18px;
  margin: 8px;
  border: none;
  cursor: pointer;
  color: #fff;
  background-color: #888;
  transition: all 0.3s ease;
  border-radius: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 0.8em;
}

.btn:hover {
  background-color: #444;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.mo { background-color: #b1b6bb; }
.dodo { background-color: rgba(202, 184, 184, 0.63); }
.about { background-color: rgba(192, 179, 179, 0.541); }
.about:hover { background-color: #9d9dac; }
.buy { 
  background-color: rgba(197, 181, 181, 0.541);
  width: 80%;
  margin: 15px auto 0;
  padding: 10px 15px;
}
.buy:hover { background-color: #dac2c2; }

/* Page One */
.containA {
  height: 100vh;
  width: 100%;
  background: url(photo/backgroundrest.jpg) no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.containA::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.pageone {
  max-width: 600px;
  z-index: 2;
  padding: 20px;
}

.pageone img {
  width: 300px;
  margin-bottom: 15px;
  animation: fadeIn 1s ease-out, pulse 2s infinite;
}

.title-animate {
  animation: fadeIn 1s ease-out 0.2s both;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.subtitle-animate {
  animation: fadeIn 1s ease-out 0.4s both;
  font-size: 1.1em;
  margin-bottom: 25px;
}

.button-group {
  animation: fadeIn 1s ease-out 0.6s both;
  display: flex;
  justify-content: center;
}

/* Page Two */
.pagetwo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  flex-wrap: wrap;
  background-color: white;
}

.pagetwo img {
  width: 45%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pagetwo img:hover {
  transform: scale(1.03);
}

.texttwo {
  width: 45%;
  max-width: 500px;
  padding: 0 30px;
}

.texttwo h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #333;
}

.texttwo p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95em;
}

span {
  color: #5788c0;
}

/* Parallax Image Section */
.pagethree {
  height: 50vh;
  position: relative;
  overflow: hidden;
}

.parallax-img {
  background: url(photo/bg-home.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Page Four - Food Items */
.allpagefour {
  padding: 70px 30px;
  background-color: white;
  text-align: center;
}

.menu-title {
  font-size: 2.2em;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.menu-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #5788c0;
  margin: 15px auto;
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.pagefour {
  width: 22%;
  min-width: 220px;
  background-color: #fdfdfd;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.pagefour:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.pagefour img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.pagefour h3 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 10px;
}

hr {
  width: 50%;
  margin: 8px auto;
  border: none;
  height: 1px;
  background-color: #5788c0;
}

.pagefour p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.85em;
  flex-grow: 1;
}

/* --- Footer Styles --- */
.footer {
  background-color: #333;
  color: white;
  padding: 20px 0 20px;
  text-align: center;
}

.footer-content {
  max-width: 900px; /* Adjusted max-width for better two-column layout */
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 280px; /* Slightly increased min-width */
  text-align: center;
}

.footer-section h3 {
  font-size: 1.5em;
  margin-bottom: 20px; /* More space below heading */
  color: #fff;
  position: relative;
}

.footer-section h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #5788c0;
  margin: 10px auto 0;
}

/* Styles for the contact and social links group */
.contact-links-group,
.social-links-group {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  gap: 15px; /* Space between each contact/social item */
}

.contact-item,
.social-item {
  display: flex;
  align-items: center; /* Align icon and text/label */
  gap: 10px; /* Space between icon and text/label */
  color: #ddd;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover,
.social-item:hover {
  color: #5788c0;
  transform: translateX(5px); /* Slight movement on hover */
}

.contact-item p,
.social-item p {
  margin: 0; /* Remove default paragraph margin */
  color: inherit; /* Inherit color from parent a tag */
}

.contact-icon,
.social-icon {
  width: 28px; /* Size for your icons */
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon,
.social-item:hover .social-icon {
  transform: scale(1.1);
}


.copyright {
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 30px; /* More space above copyright */
  color: #5b5a5a;
  font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .pagefour {
    width: 22%;
  }
}

@media (max-width: 1000px) {
  .pagefour {
    width: 30%;
  }
  
  .pagetwo img, .texttwo {
    width: 100%;
    max-width: 100%;
  }
  
  .texttwo {
    padding: 20px 0;
    margin-top: 30px;
  }

  .nav-links {
    flex-direction: column; /* Stack nav links on smaller screens */
    align-items: flex-end; /* Align to the right */
    position: absolute;
    top: 60px; /* Below the navbar */
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 15px 0;
    display: none; /* Hidden by default for mobile toggle */
  }

  .nav-links.active {
    display: flex; /* Show when active */
  }

  .nav-links li {
    margin: 10px 20px;
  }
}

@media (max-width: 768px) {
  .pagefour {
    width: 45%;
  }
  
  .pagethree {
    height: 40vh;
  }
  
  .pagetwo {
    padding: 50px 20px;
  }
  
  .allpagefour {
    padding: 60px 20px;
  }
  
  .title-animate {
    font-size: 2.2em;
  }

  .navbar-container {
    flex-wrap: wrap; /* Allow logo and links to wrap */
    justify-content: center;
  }

  .navbar-logo {
    margin-bottom: 10px;
  }

  .footer-content {
    flex-direction: column; /* Stack footer content */
    align-items: center;
  }

  .footer-section {
    min-width: unset; /* Remove min-width for stacking */
    width: 100%;
    margin-bottom: 30px; /* Space between stacked sections */
  }

  .contact-links-group,
  .social-links-group {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .pagefour {
    width: 90%;
  }
  
  .menu-title {
    font-size: 1.8em;
  }
  
  .contact-item, .social-item {
    font-size: 0.9em; /* Smaller font for very small screens */
  }

  .contact-icon, .social-icon {
    width: 24px;
    height: 24px;
  }

  .contact-info h3, .social-links-footer h3 {
    font-size: 1.3em;
  }

  .btn {
    padding: 10px 15px;
    font-size: 0.75em;
  }
}