/* Brown Truck Premium Links Portal & Visual Menu Styling
  Designed with rich aesthetics, glassmorphism, responsive mobile-first layouts, and smooth animations.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #e74c3c;
  /* Premium Red */
  --primary-rgb: 231, 76, 60;
  --primary-light: #ff7968;
  --primary-dark: #c0392b;

  --bg-dark: #0d0b09;
  /* Deep matte charcoal with warm brown undertone */
  --bg-overlay: rgba(13, 11, 9, 0.85);
  /* Heavy dark overlay for rich contrast */

  --card-bg: rgba(26, 22, 19, 0.65);
  /* Frosted dark brown glass */
  --card-border: rgba(231, 76, 60, 0.15);
  /* Subtle red border */
  --card-border-hover: rgba(231, 76, 60, 0.4);

  --text-main: #fcfbfa;
  /* Off-white for comfort */
  --text-muted: #bbb2a7;
  /* Warm grey/beige for low priority text */
  --text-dark: #2c1a0c;

  /* Layout & Shadows */
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px 0 rgba(231, 76, 60, 0.08);
  --shadow-glow-active: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 25px 0 rgba(231, 76, 60, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background Image & Premium Vignette Overlay */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.6) 0%, rgba(13, 11, 9, 0.85) 60%, var(--bg-dark) 100%), url('brown-truck.png') no-repeat center center;
  background-size: cover;
  filter: contrast(1.05) brightness(0.9);
  transition: transform 10s ease-out;
}

body:hover .bg-container {
  transform: scale(1.03);
  /* Extremely subtle parallax effect */
}

/* Vignette border to focus center content */
.bg-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Layout Containers */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
}

.portal-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header & Logo styling */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.logo-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 16px;
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.2) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 4s infinite ease-in-out;
}

.logo-img {
  width: 175%;
  height: 360%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.logo-img:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Glassmorphic Central Card */
.portal-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 45%,
      rgba(231, 76, 60, 0.05) 50%,
      transparent 55%);
  transform: rotate(45deg);
  pointer-events: none;
  animation: shimmerSheen 8s infinite linear;
}

.portal-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-glow-active);
}

/* Button & Link Styles */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: rgba(13, 11, 9, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portal-btn-content {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

/* Button Text stack styling */
.btn-text-stack {
  display: flex;
  flex-direction: column;
}

.btn-en {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.portal-btn-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.portal-btn-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5px !important;
  stroke: var(--primary);
}

.portal-btn-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition-bounce);
}

/* Button Hover States */
.portal-btn:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(26, 22, 19, 0.9);
  border-color: rgba(231, 76, 60, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(231, 76, 60, 0.15);
}

.portal-btn:hover .portal-btn-arrow {
  transform: translateX(4px);
  color: var(--primary);
  opacity: 1;
}

/* Special Highlight Button (e.g. Location highlight) */
.portal-btn.btn-highlight {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(20, 18, 16, 0.85) 100%);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.portal-btn.btn-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transition: 0.5s;
}

.portal-btn.btn-highlight:hover::after {
  left: 100%;
  transition: 0.8s ease-in-out;
}

.portal-btn.btn-highlight:hover {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.25) 0%, rgba(26, 22, 19, 0.9) 100%);
  border-color: var(--primary);
}

/* Digital Menu Section Styling */
.menu-view-container {
  width: 100%;
  margin-top: 8px;
  animation: fadeIn 0.4s ease-out forwards;
}

.menu-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.menu-title-stack {
  display: flex;
  flex-direction: column;
}

.menu-title-en {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.close-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.close-menu-btn:hover {
  background: rgba(231, 76, 60, 0.2);
  color: var(--primary-light);
  border-color: var(--primary);
  transform: rotate(90deg);
}

/* Category Slider tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 8px 18px;
  background: rgba(13, 11, 9, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-tab.active {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.category-tab:hover:not(.active) {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.3);
  color: var(--text-main);
}

/* Search Bar */
.search-box-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(13, 11, 9, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(13, 11, 9, 0.9);
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.search-input:focus+.search-icon {
  color: var(--primary);
}

/* Menu Items List */
.menu-items-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(231, 76, 60, 0.3) rgba(0, 0, 0, 0.2);
}

.menu-items-grid::-webkit-scrollbar {
  width: 5px;
}

.menu-items-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.menu-items-grid::-webkit-scrollbar-thumb {
  background: rgba(231, 76, 60, 0.3);
  border-radius: 10px;
}

.menu-items-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Menu Item Card */
.menu-item-card {
  display: flex;
  background: rgba(13, 11, 9, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 14px;
  gap: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.menu-item-card:hover {
  background: rgba(20, 18, 16, 0.85);
  border-color: rgba(231, 76, 60, 0.2);
  transform: translateX(2px);
}

.item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-spicy {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-popular {
  background: linear-gradient(135deg, #f39c12, #d35400);
  color: #fff;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-new {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.menu-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-title-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.item-title-en {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.item-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.item-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.item-price-currency {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.item-calories {
  font-size: 0.75rem;
  color: #9e8e7c;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-cal-icon {
  width: 10px;
  height: 10px;
  fill: var(--primary);
}

/* Footer Section */
.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s 0.6s ease-out forwards;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-credits {
  opacity: 0.6;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

/* Animations */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.2) 0%, transparent 70%);
    transform: scale(1);
  }

  50% {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.35) 0%, transparent 70%);
    transform: scale(1.02);
  }
}

@keyframes shimmerSheen {
  0% {
    transform: translate(-30%, -30%) rotate(45deg);
  }

  100% {
    transform: translate(30%, 30%) rotate(45deg);
  }
}

.hidden {
  display: none !important;
}