/* General Styles */

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  scroll-behavior: smooth;

  /*  Watermark Background Image */
  background-image: url('images/cbonless2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-attachment: fixed;
  opacity: 1; /* Page content stays fully visible */
}


/* Hero Section */
.hero {
  background-image: url('https://source.unsplash.com/1600x900/?restaurant'); /* Add your desired background image */
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  top: -50px;  /* Moves the content 50px up */
}

.hero h1 {
  font-family: 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  color: darkseagreen;
}

.hero p {
  font-family: 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-group {
  display: flex;
  justify-content: center;
}

.btn {
  background-color: darkseagreen;
  color: #fff;
  padding: 15px 30px;
  margin: 10px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e74c3c;
}

/* Menu Section */
.section {
  padding: 60px 20px;
  text-align: center;
}

.menu-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.menu-card {
  background-color: #fff;
  width: 150px;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  perspective: 1000px;
  font-size: 0.75rem;
  position: relative;
  overflow: hidden;
}

.menu-card .card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  position: relative;
}

.menu-card:hover .card {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  padding: 8px;
}

.card-back {
  transform: rotateY(180deg);
}

/* Image fits inside container cleanly */
/* ✅ Image wrapper with fixed height */
.image-container {
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Titles and Descriptions */
.menu-card h3 {
  font-size: 0.9rem;
  margin: 6px 0 2px;
  text-align: center;
}

.menu-card p {
  font-size: 0.75rem;
  margin: 0;
  text-align: center;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #c0392b;
  color: white;
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: #e74c3c;
}

/* Contact Section */
#contact {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}

#contact p {
  font-size: 1.1rem;
  margin: 10px 0;
}

#contact a {
  color: #c0392b;
  text-decoration: none;
}

#contact iframe {
  margin-top: 30px;
  border-radius: 10px;
}

.go-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fbfafa;
  color: #1bb34b;
  padding: 10px 10px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 999;
}

.go-top-btn:hover {
  transform: rotateX(15deg) rotateY(15deg) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.go-top-btn:active {
  transform: scale(0.95) rotateX(10deg) rotateY(10deg);
} /*This will make your button rotate in 3D slightly on hover, giving a modern, interactive touch*/

/* Badge (top-right corner) */
.order-count {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #e74c3c;
  color: white;
  padding: 3px 7px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  z-index: 10;
  display: none;
}

.order-count.show {
  display: inline-block;
}

/* Quantity Controls ( + / - buttons ) */
.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.count-display,
.quantity-controls .count {
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
  font-weight: bold;
  color: #333;
}

.quantity-controls button {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quantity-controls button:hover {
  background-color: #c0392b;
}

/* Modern 3D Button Style */
/*.complete-order-container {
  text-align: center;
  margin-top: 30px;
}*/
.floating-order-btn-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; /* Initially hidden */
}

.floating-order-btn-container button {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 40px;
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.floating-order-btn-container button:hover {
  background: linear-gradient(145deg, #c0392b, #a93226);
  transform: translateY(-3px);
}


.modern-btn {
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 12px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modern-btn:hover {
  background: linear-gradient(145deg, #c0392b, #a93226);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}
/*-----//////// Modern alert messag button---//////////////////////////////*/

/* without fading window normal message*/
/*.custom-alert-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}*/
/*.custom-alert-box {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-width: 300px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}*/
/*.custom-alert-button {
  margin-top: 15px;
  background-color: #0cc93c; /* Blue 
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}*/
/*.custom-alert-button:hover {
  background-color: #00b315;
}*/
/*------------------ Start alert modern message window fade---*/

.custom-alert-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}
.custom-alert-box {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  max-width: 320px;
  text-align: center;
  font-family: 'GDSherpa', sans-serif;

  animation: fadeIn 0.3s ease-out;
}

.custom-alert-box p {
  font-size: 16px;
  margin: 0;
}

.custom-alert-button {
  margin-top: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-alert-button:hover {
  background-color: #0056b3;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/*------------------ Finish alert modern message window fade---*/
/*======================Finish Alert message css============================================*/

/* //////-----Popup Styles---/////////////////////////////////////////////////////////////// */

.popup-overlay {
  display: none; /* Default hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Make sure it's on top */
}
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
  margin-bottom: 15px;
  font-weight: 700;
  color: #c0392b;
}

.popup-content label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin: 8px 0 4px;
  color: #333;
  font-size: 0.9rem;
}

.popup-content input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #c0392b;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.popup-content input:focus {
  border-color: #e74c3c;
  outline: none;
}

.popup-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.popup-buttons button {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-buttons button:hover {
  transform: translateY(-2px);
}

.yes-btn {
  background-color: #27ae60;
  color: white;
  border: none;
}

.no-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
}
/*======================Finish popup form message css============================================*/
/* Order summery to show what are items selected*/
.order-summary-box {
  background-color: #f7f7f7;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.9rem;
}

/* Scroll Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate {
  animation: fadeIn 1s ease-in-out;
}


/*================== Responsive Breakpoints ==================*/

/* Tablet & Small Laptops */
@media screen and (max-width: 1024px) {
  html {
    font-size: 16px;
  }

  .menu-card {
    width: 140px;
    height: 200px;
  }

  .popup-content {
    max-width: 95%;
    padding: 15px;
  }

  .popup-content input {
    font-size: 0.95rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .quantity-controls button {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .floating-order-btn-container button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ------------------Phones---------------------------------------------- */
@media screen and (max-width: 480px) {
  .menu-card {
    width: 120px;
    height: 180px;
  }

  .btn,
  .modern-btn,
  .floating-order-btn-container button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .popup-buttons button {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .go-top-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .order-summary-box {
    font-size: 0.85rem;
  }

  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
  }

  .btn-group button {
    width: 100%;
    max-width: 200px;
  }

  .card h3 {
    font-size: 1rem;
  }

 .card-back p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Works in WebKit-based browsers */
  overflow: hidden;
  text-overflow: ellipsis;

  /* Optional fallback for non-WebKit browsers */
  line-clamp: 2; /* Draft spec – not widely supported yet */
}

}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
  .filter-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }

  .filter-btn {
    margin: 5px; /* Reduce margin for better fit */
    flex: 1 1 auto; /* Let buttons adjust width */
    min-width: 120px;
  }

  .menu-grid {
    flex-direction: row; /* keep cards side by side */
    flex-wrap: wrap;     /* allow wrapping */
    justify-content: center;
    align-items: center;
  }

  .menu-card {
    width: 150px;
    height: 200px;
    margin: 10px;
  }

  .btn-group {
    flex-direction: column; /* stack buttons if needed */
    align-items: center;
  }

  body {
    background-attachment: scroll;
    background-size: cover; /* Optional: fills the screen */
  }
  body {
  background-image: url('images/cbonless2.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;   /* scale width to screen, keep aspect ratio */
  background-attachment: scroll; /* fixes iOS/Safari issue */
}

}
