/* Color Variables */
:root {
  --primary: #e74c3c; /* Appetizing tomato red */
  --primary-dark: #c0392b;
  --secondary: #f39c12; /* Cheese orange */
  --secondary-light: #f1c40f;
  --dark: #2c3e50; /* Dark blue for contrast */
  --light: #f5f5f5;
  --accent: #27ae60; /* Fresh green */
  --text: #333333;
  --bg-color: #fff;
  --card-bg: #fff;
  --text-color: #333;
  --navbar-bg: #fff;
  --footer-bg: #2c3e50;
  --footer-text: #fff;
  --hero-overlay: rgba(0, 0, 0, 0.6);
  --section-bg: #f8f9fa;
  --section-alt-bg: #fff;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --card-bg: #2d2d2d;
  --text-color: #f5f5f5;
  --navbar-bg: #2d2d2d;
  --footer-bg: #1a1a1a;
  --footer-text: #f5f5f5;
  --hero-overlay: rgba(0, 0, 0, 0.7);
  --section-bg: #2d2d2d;
  --section-alt-bg: #252525;
  --border-color: #444;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar Customization */
.navbar-custom {
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
  font-family: 'Abril Fatface', cursive;
}

.navbar-custom .nav-link {
  color: var(--text-color);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary);
}

.navbar-custom .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(30deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1568901346375-23c9450c58cd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

/* About Teaser */
.about-teaser {
  background-color: var(--section-bg);
  padding: 80px 0;
}

.about-teaser h2 {
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 700;
}

.about-teaser .lead {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
}

footer h5 {
  color: var(--secondary-light);
  margin-bottom: 20px;
  font-weight: 600;
}

footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-light);
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
}

/* Food Highlights Section (Added) */
.food-highlights {
  padding: 80px 0;
}

.food-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  border: none;
  background-color: var(--card-bg);
}

.food-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.food-card img {
  height: 200px;
  object-fit: cover;
}

.food-card .card-body {
  padding: 20px;
}

.food-card .card-title {
  color: var(--primary);
  font-weight: 700;
}

.food-card .price {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Special Offer Banner */
.special-offer {
  background-color: var(--secondary);
  color: white;
  padding: 15px 0;
  text-align: center;
  font-weight: 600;
  margin-bottom: 0;
}
/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h5 {
  color: var(--secondary-light);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.footer-column p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

.footer-column a:hover {
  color: var(--secondary-light);
  transform: translateX(5px);
}

.footer-logo {
  font-family: 'Abril Fatface', cursive;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: var(--primary);
}

.contact-info i {
  color: var(--secondary-light);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.opening-hours {
  margin-top: 20px;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.opening-hours span:last-child {
  color: var(--secondary-light);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form input::placeholder {
  color: #ccc;
}

.newsletter-form button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

@media (max-width: 768px) {
  .footer-column {
    min-width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }
  
  .newsletter-form button {
    margin-top: 10px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1568901346375-23c9450c58cd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 150px 0;
  text-align: center;
  position: relative;
}

/* Special Cards */
.special-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
  background-color: var(--card-bg);
}

.special-card:hover {
  transform: translateY(-5px);
}

.special-card img {
  height: 200px;
  object-fit: cover;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
}

.discounted-price {
  color: #e74c3c;
}

/* Category Cards */
.category-card {
  background: var(--card-bg);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.category-link {
  text-decoration: none;
  color: inherit;
}

/* Testimonials */
.testimonial-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.rating {
  color: #f39c12;
}

/* Section backgrounds */
.bg-light {
  background-color: var(--section-bg) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-control {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .bg-light {
  background-color: var(--section-bg) !important;
}
/* Theme Toggle Mobile Styles */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 15px;
  transition: transform 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.theme-toggle:hover {
  transform: rotate(30deg);
  background-color: rgba(0,0,0,0.05);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}

.theme-toggle-mobile {
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .theme-toggle {
    margin-left: 0;
    position: absolute;
    right: 60px; /* Position next to hamburger menu */
    top: 50%;
    transform: translateY(-50%);
  }
  
  .navbar-toggler {
    position: relative;
    z-index: 1000;
  }
}

@media (max-width: 575.98px) {
  .theme-toggle {
    right: 50px;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
}