/* Responsive Design for Home Page */
@media (max-width: 991.98px) {
  .hero {
    padding: 60px 20px;
    max-width: 95vw;
  }
  .featured-carousel .container,
  #testimonials .container,
  #contactForm .container,
  #aboutUs .container {
    padding: 2rem 1.5rem;
    max-width: 95vw;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 40px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .hero h2 {
    font-size: 2.2rem !important;
  }
  .hero p {
    font-size: 1.1rem !important;
  }
  .featured-carousel .container,
  #testimonials .container,
  #contactForm .container,
  #aboutUs .container {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .glide__slide img.card-img-top {
    height: 180px;
    object-fit: cover;
  }
  .featured-carousel .row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 30px 10px;
    margin: 0.5rem auto;
  }
  .hero h2 {
    font-size: 1.8rem !important;
  }
  .hero p {
    font-size: 1rem !important;
  }
  .featured-carousel .container,
  #testimonials .container,
  #contactForm .container,
  #aboutUs .container {
    padding: 1rem 0.5rem;
    border-radius: 8px;
  }
  .glide__slide {
    width: 100% !important;
  }
  .glide__slide img.card-img-top {
    height: 160px;
  }
  footer {
    font-size: 0.85em;
    padding: 1.5rem 0.5rem;
  }
  #socialMedia {
    padding: 1rem 0.5rem;
  }
  #socialMedia i {
    font-size: 1.5rem;
  }
}
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1faee;
  --bg-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --premium-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Stunning Background for specific sections */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Logo and Restaurant Name */
#logo {
  width: 65px; /* Increased size */
  height: 65px;
  object-fit: contain;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.1);
}

.restaurant-name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.4rem; 
  letter-spacing: -1px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments for Logo and Title */
/* Modern Navbar - Glassmorphism */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(230, 57, 70, 0.95) !important; /* Premium Red with slight transparency */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex !important;
  align-items: center;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.restaurant-name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0 2px;
  color: rgba(255, 255, 255, 0.85) !important; /* Default white with slight transparency */
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  background: white !important;
  color: var(--primary-color) !important;
}

/* Mobile Toggler */
.navbar-toggler {
  width: 45px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255,255,255,0.2);
}

.navbar-toggler i {
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    margin-top: 1rem;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav-link {
    color: #1e293b !important; /* Proper contrast on mobile white background */
    margin: 4px 0;
    padding: 0.8rem 1.2rem !important;
    font-size: 1rem;
    border-radius: 10px;
  }
  
  .nav-link:hover {
    background: #f8fafc;
    color: var(--primary-color) !important;
  }

  .nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
  }
}

@media (max-width: 575.98px) {
  #logo {
    width: 45px;
    height: 45px;
  }
  .restaurant-name {
    font-size: 0.8rem; /* Hard shrink to fit the full name */
    max-width: none;
    line-height: 1.1;
    margin-right: 5px;
    letter-spacing: -0.2px;
  }

  /* Hero Button Optimizations for Mobile */
  .hero .btn-lg {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important; /* Squarer/Less roundy as requested */
  }
  
  .hero h1 {
    font-size: 2.5rem !important;
  }
  
  .hero p {
    font-size: 1.1rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-content {
    padding: 2rem 1.5rem !important;
    margin: 0 1rem;
  }
}

a:focus,
button:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Hero Section - Modern Design */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)), url('../assets/filipino_cuisine_hero_bg_1773753017240.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  margin: 0 !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hero-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 1s ease-out;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #fff !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

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

/* About Us Section */
#aboutUs {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#aboutUs:hover {
  transform: scale(1.02); /* Slight zoom effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Glass Cards */
.card {
  background: white;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--premium-shadow);
}

.card-img-top {
  transition: var(--transition-smooth);
}

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

#testimonials .card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  text-align: left;
}

#testimonials .card p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary-color);
  position: relative;
}

#testimonials .card p::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -20px;
  opacity: 0.1;
  font-family: serif;
}
/* Follow Us Section */
#socialMedia a {
  transition: transform 0.3s ease, color 0.3s ease;
}

#socialMedia a:hover {
  transform: scale(1.2); /* Slight zoom effect */
  color: #ffcc00; /* Change color on hover */
}

/* Featured Dishes Section */
#featuredDishes .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

#featuredDishes .card:hover {
  transform: scale(1.05) translateY(-10px); /* Slight zoom and lift */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
  background-color: rgba(255, 0, 0, 0.05); /* Subtle red background */
}

#featuredDishes .card img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

#featuredDishes .card:hover img {
  transform: scale(1); /* Slight zoom on the image */
  filter: brightness(0.9); /* Slightly darken the image */
}

#featuredDishes .card {
  border-radius: 24px;
}

.badge.bg-danger {
  background-color: var(--primary-color) !important;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}

/* Carousel Container */
#menuContainer {
  max-width: 1200px;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  margin: 2rem auto;
  position: relative;
  /* display, visibility, opacity, and transform removed to ensure always visible */
}

#menuContainer[style*="display: block"] {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

#menuContainer .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

#menuContainer .close-btn:hover,
#menuContainer .close-btn:focus {
  color: #cc0000;
}

/* Glide Carousel */
.glide {
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}

.glide__track {
  overflow: hidden;
}

.glide__slides {
  display: flex;
  gap: 20px; /* Add spacing between slides */
  overflow: hidden; /* Prevent overflow */
}

.glide__slide {
  flex: 0 0 auto; /* Ensure slides do not shrink or grow */
  width: calc(100% / 3 - 20px); /* Adjust width for 3 slides per view with gap */
  max-width: 300px; /* Set a maximum width for slides */
  height: auto; /* Allow height to adjust based on content */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .glide__slide {
    width: calc(100% / 2 - 20px); /* 2 slides per view */
  }
}

@media (max-width: 768px) {
  .glide__slide {
    width: calc(100% - 20px); /* 1 slide per view */
  }
}


/* Skeleton Preloader Styles */
.skeleton {
  background-color: #e2e5e7;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0)
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-title {
  height: 1.5rem;
  margin-bottom: 0.75rem;
  width: 70%;
}

.skeleton-img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-btn {
  height: 40px;
  width: 120px;
  border-radius: 5px;
}

/* Hide content while loading */
.content-loading {
  display: none !important;
}

/* Hide skeleton once loaded */
.loaded .skeleton {
  display: none !important;
}

/* Added lazy loading styles for images */
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-loaded {
  opacity: 1;
}

/* Cart Icon Animation */
.cart-bounce {
  animation: cartBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.cart-pulse {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    animation: cartPulse 0.5s ease-out;
}

@keyframes cartPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    100% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
}
