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

:root {
  --bg-dark: #070707;
  --bg-gradient: radial-gradient(circle at 22% 16%, #1f1a12 0%, #0f0f0f 42%, #070707 100%);
  --text-main: #ffffff;
  --text-muted: #ababab;
  --accent-gold: #ffb703;
  --accent-orange: #fb8500;
  --accent-red: #e63946;
  --surface-1: rgba(20, 20, 20, 0.82);
  --surface-2: rgba(12, 12, 12, 0.9);
  --glass-bg: rgba(25, 25, 25, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  background-color: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(640px circle at 88% 8%, rgba(251, 133, 0, 0.12) 0%, rgba(251, 133, 0, 0) 65%),
    radial-gradient(560px circle at 8% 82%, rgba(255, 183, 3, 0.08) 0%, rgba(255, 183, 3, 0) 65%);
}

body::after {
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.18;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utilities */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 34px;
}

.section {
  padding: 110px 0;
  position: relative;
}

/* Subtle transition without stacked pseudo-element artifacts */
.section + .section {
  box-shadow: inset 0 24px 22px -26px rgba(0, 0, 0, 0.45);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.4s var(--easing);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 75%);
  transform: translateX(-140%);
  transition: transform 0.55s ease;
}

.btn:hover::after {
  transform: translateX(140%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  color: #fff;
  box-shadow: 0 10px 30px rgba(251, 133, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(251, 133, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 0;
  z-index: 1000;
  transition: all 0.5s var(--easing);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  color: white;
  letter-spacing: -1px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Global Navbar Cart */
.cart-icon {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: white;
  cursor: pointer;
  position: relative;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.cart-icon:hover {
  border-color: rgba(251, 133, 0, 0.55);
  box-shadow: 0 10px 24px rgba(251, 133, 0, 0.22);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-red);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer (Unified for all pages) */
.main-footer {
  background: linear-gradient(180deg, #070707 0%, #030303 100%);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 133, 0, 0.22) 0%, rgba(251, 133, 0, 0) 70%);
  pointer-events: none;
}

.main-footer::after {
  content: none;
}

.main-footer > .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Home Page specific */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-content {
  width: 50%;
  z-index: 10;
  padding-right: 40px;
}

.hero h1 {
  font-size: 6rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 24px 36px rgba(0, 0, 0, 0.38);
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-canvas-wrapper {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 50%;
  height: 600px;
  z-index: 1;
  perspective: 1500px;
}

.hero-plate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 450px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
  border: 1px solid var(--glass-border);
}

.floating-spice {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-orange);
  filter: blur(2px);
  z-index: 5;
  opacity: 0.8;
}

/* Animated 3D Cards */
.card-3d {
  background: linear-gradient(155deg, rgba(30, 30, 30, 0.72), rgba(12, 12, 12, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px;
  perspective: 1500px;
  transform-style: preserve-3d;
  transition: background 0.3s, transform 0.3s ease, border-color 0.3s ease;
}

.featured-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image-wrap {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transform: translateZ(50px);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--easing);
}

.card-3d:hover .card-image-wrap img {
  transform: scale(1.1);
}

.card-3d:hover {
  background: linear-gradient(155deg, rgba(36, 36, 36, 0.76), rgba(14, 14, 14, 0.9));
  border-color: rgba(251, 133, 0, 0.38);
  transform: translateY(-6px);
}

.card-info {
  transform: translateZ(30px);
}

.card-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-info p {
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: bold;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

/* About Long Section */
.about-section {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-img {
  flex: 1;
  position: relative;
  perspective: 1000px;
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  transform: rotateY(15deg);
  box-shadow: -30px 30px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.classic-menu-container,
.cart-items-list,
.cart-summary,
.checkout-container,
.menu-item-card,
.testimonial-card,
.extra-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

input,
textarea,
select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(251, 133, 0, 0.2);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3.5rem;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Cart UI Styles */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--easing);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; width: 450px; max-width: 100%; height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  border-left: 1px solid var(--glass-border);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s var(--easing);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.cart-close {
  background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.3s;
}

.cart-close:hover { color: var(--accent-red); transform: rotate(90deg); }

.cart-items-container {
  flex: 1; overflow-y: auto; padding: 30px; display: flex; flex-direction: column; gap: 20px;
}

.cart-item {
  display: flex; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: stretch;
}

.cart-item img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 10px;
}

.cart-item-info {
  flex: 1; display: flex; flex-direction: column;
}

.cart-item-info h4 { font-size: 1.1rem; margin-bottom: 5px; }

.cart-item-price { font-weight: bold; color: var(--accent-gold); margin-bottom: 10px; }

.cart-qty-controls {
  display: flex; align-items: center; background: rgba(255,255,255,0.05); width: max-content; padding: 4px; border-radius: 20px;
}

.cart-qty-controls button {
  background: none; border: none; color: white; width: 25px; cursor: pointer; border-radius: 50%;
}
.cart-qty-controls button:hover { background: rgba(255,255,255,0.1); }
.cart-qty-controls span { margin: 0 10px; font-weight: bold; }

.cart-item-remove {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: 0.3s; align-self: flex-start;
}

.cart-item-remove:hover { color: var(--accent-red); }

.cart-footer {
  padding: 30px; background: rgba(0,0,0,0.5); border-top: 1px solid var(--glass-border);
}

.cart-summary-row {
  display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--text-muted);
}

.cart-total-row {
  color: white; font-size: 1.5rem; font-weight: bold; margin: 20px 0; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,0.1);
}

.mobile-cat-dropdown {
  display: none;
  position: relative;
  width: 100%;
}

.mobile-cat-trigger {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 133, 0, 0.65);
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(16, 16, 16, 0.95) 100%);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.mobile-cat-trigger:hover,
.mobile-cat-dropdown.open .mobile-cat-trigger {
  border-color: var(--accent-orange);
  box-shadow: 0 10px 28px rgba(251, 133, 0, 0.2);
}

.mobile-cat-trigger i {
  color: var(--accent-orange);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.mobile-cat-dropdown.open .mobile-cat-trigger i {
  transform: rotate(180deg);
}

.mobile-cat-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-cat-dropdown.open .mobile-cat-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-cat-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-cat-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-cat-option.active {
  background: rgba(251, 133, 0, 0.18);
  color: #ffd099;
}

/* --- Responsive Mobile Styles --- */
@media (max-width: 900px) {
  .desktop-side-cat { display: none !important; }
  .mobile-cat-dropdown { display: block; }

  .navbar {
    padding: 12px 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.86) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 26px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.5) 0%, rgba(8, 8, 8, 0.18) 45%, rgba(8, 8, 8, 0) 100%);
    filter: blur(6px);
  }
  
  .container {
    padding: 0 18px;
  }
  
  .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
  }
  .logo { order: 1; font-size: 1.9rem; }
  .nav-actions { order: 2; justify-self: end; }
  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: 0;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-links a {
    font-size: 0.98rem;
    min-width: 84px;
    text-align: center;
  }

  .cart-icon {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 168px;
    min-height: auto;
  }
  .hero-content {
    width: 100%;
    padding-right: 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    transform: none;
    top: 0;
    right: auto;
    left: auto;
    margin-top: 30px;
  }
  .hero-plate {
    width: 80%;
    height: auto;
    aspect-ratio: 3/4;
  }
  
  .about-section {
    flex-direction: column;
    text-align: center;
  }
  .about-text h2 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .section {
    padding: 92px 0;
  }

  .section + .section {
    box-shadow: inset 0 18px 20px -24px rgba(0, 0, 0, 0.38);
  }
  .footer-col h4 {
    margin-bottom: 10px;
  }
  
  .menu-layout {
    flex-direction: column;
    gap: 0;
  }
  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
    flex: none;
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  .sidebar h3 { display: none; }

  .menu-grid {
    margin-top: 14px;
    gap: 18px;
  }
  
  .classic-menu-container {
    padding: 30px 20px;
  }
  .menu-header-classic h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 176px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .logo {
    font-size: 1.72rem;
  }

  .nav-links {
    justify-content: center;
    gap: 10px;
    padding: 7px 8px;
  }

  .nav-links a {
    font-size: 0.93rem;
    min-width: 78px;
  }
}
