/* ================================= Index Page ================================= */
/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)),
    url("../images/hero.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation-delay: 0s;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation-delay: 0.2s;
}

.btn-hero {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  animation-delay: 0.4s;
}

.btn-hero:hover {
  transform: translateY(-3px);
}

/* Animations */
.animate-fade-up {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Featured Section */
.featured-section {
  background: var(--bg-cream);
}

.food-card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.food-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.food-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.food-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.food-content {
  padding: 1.5rem;
}

.food-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-weight: bold;
}

.food-content p {
  color: var(--text-gray);
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  border: none;
}

/* About Section */
.about-section {
  background: var(--bg-white);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: bold;
}

.about-content p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-image {
  height: 400px;
  background: var(--border-gray-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.about-image img {
  max-width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  object-position: right;
}

/* Features Section */
.features-section {
  background: var(--bg-cream);
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-weight: bold;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ================================= Menu Page ================================= */
/* Menu Section */
.menu-section {
  padding: 1rem 0 4rem;
  background: var(--bg-white);
}

/* Filter Controls */
.filter-controls {
  padding: 0 2rem 1rem;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: var(--bg-white);
  border: 0px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--primary-orange);
  color: var(--text-light);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-main);
  color: var(--text-light);
}

.filter-btn:focus,
.filter-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.filter-selects {
  display: flex;
  gap: 1rem;
}

.form-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--bg-white);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.form-select#sortFilter {
  width: 100%;
}

.form-select:focus,
.form-select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-lg);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.menu-card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease backwards;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.menu-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.badge-must-try {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: var(--text-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
}

.menu-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.menu-card-header h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: bold;
  margin: 0;
  flex: 1;
}

.cuisine-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.cuisine-tag.chinese {
  background: var(--bg-red-light);
  color: var(--primary-red);
}

.cuisine-tag.malay {
  background: var(--bg-green-light);
  color: var(--primary-green);
}

.cuisine-tag.indian {
  background: var(--bg-orange-light);
  color: var(--primary-orange);
}

.menu-description {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex: 1;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-white);
}

.type-tag {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.type-tag i {
  color: var(--primary-orange);
  margin-right: 0.3rem;
}

/* Loading Message */
.loading-message {
  text-align: center;
  padding: 3rem;
  color: var(--text-gray);
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid var(--bg-white);
  border-top: 4px solid var(--primary-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-gray);
}

.no-results i {
  font-size: 4rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* ================================= Feedback Page ================================= */
/* Feedback Page Specific Styles */
.feedback-section {
  padding: 1rem 0 4rem;
  background: var(--bg-white);
}

/* Feedback Form Container */
.feedback-form-container {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

.form-intro {
  margin-bottom: 1.5rem;
  /* padding-bottom: 1.5rem; */
  border-bottom: 2px solid var(--bg-white);
}

.form-intro h2 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.form-intro p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* Form Styles */
.feedback-form .form-group {
  margin-bottom: 1.8rem;
}

.feedback-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.required {
  color: var(--primary-red);
}

.feedback-form .form-control,
.feedback-form select {
  width: 100%;
  padding: 0rem 1rem;
  border: 2px solid var(--border-gray-light);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  appearance: auto;
}

.feedback-form .form-control:focus,
.feedback-form select:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.feedback-form .form-control.error,
.feedback-form select.error {
  border-color: var(--primary-red);
}

.feedback-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: var(--primary-red);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: none;
}

.char-count {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 0.3rem;
}

/* Star Rating */
.rating-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.rating-container input[type="radio"] {
  display: none;
}

.star {
  cursor: pointer;
  transition: var(--transition);
}

.star i {
  font-size: 2rem;
  color: var(--border-gray-light);
}

.star i:hover,
.star.active i {
  color: var(--primary-yellow);
  transform: scale(1.1);
}

.rating-text {
  margin-top: 0.1rem;
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
  justify-content: center;
  display: flex;
}

.rating-text.selected {
  color: var(--primary-orange);
  font-weight: 600;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.btn-submit i {
  margin-right: 0.5rem;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 3rem 2rem;
}

.success-message i {
  font-size: 4rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn-new-feedback {
  padding: 0.8rem 2rem;
}

/* Sidebar */
.feedback-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.sidebar-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-red) 100%
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sidebar-icon i {
  font-size: 1.8rem;
  color: var(--text-light);
}

.sidebar-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.sidebar-card p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  color: var(--text-gray);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.contact-list i {
  color: var(--primary-orange);
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

/* Social Share */
.social-share {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.share-btn.facebook {
  background: var(--social-bg-facebook);
}

.share-btn.whatsapp {
  background: var(--social-bg-whatsapp);
}

.share-btn.instagram {
  background: var(--social-bg-instagram);
}
