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

:root {
  /* Peach/Orange Gradient Theme */
  --bg-gradient: linear-gradient(135deg, #FFF0E5 0%, #FFD1BC 100%);
  --text-color: #1A1A1A;
  --text-light: #666666;
  --accent-color: #000000;
  --primary-orange: #FF5722;
  --card-bg: #FFFFFF;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
  --font-main: 'Poppins', sans-serif;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.text-gold {
  color: var(--primary-orange);
}

/* Keeping class name but mapping to orange */
.text-center {
  text-align: center;
}

.section {
  padding: 80px 0;
}

/* Navbar */
.navbar {
  padding: 24px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-orange);
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  /* Taller hero */
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  /* Space for navbar */
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-tag {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 450px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.hero-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 90%;
  max-width: 600px;
  border-radius: 50%;
  /* Circle look for main dish */
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-soft);
}

/* Floating Ingredients Decor (Simulated with pseudo-elements or extra divs if needed) */

/* Menu Section */
.menu-section {
  padding-top: 40px;
}

.section-header-group {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.section-desc {
  color: var(--text-light);
  max-width: 400px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.menu-item {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 160px 160px 20px 20px;
  /* Pill shape top */
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.item-img-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.item-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.item-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  min-height: 40px;
  /* Alignment */
}

.item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-right: auto;
}

.item-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.add-btn:hover {
  background: var(--primary-orange);
}

/* About/Features Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-img {
  border-radius: 50%;
  height: 500px;
  width: 500px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

/* Reservation Modal */
.modal-content {
  background: #fff;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  color: var(--text-color);
}

.close-modal {
  color: var(--text-color);
}

input,
select {
  background: #f5f5f5;
  color: var(--text-color);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

input:focus,
select:focus {
  background: #fff;
  border-color: var(--accent-color);
}

label {
  color: var(--text-color);
}

/* Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-btn {
    display: block;
    color: var(--text-color);
    z-index: 1001;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-img {
    width: 300px;
    height: 300px;
  }
}

/* --- Pill Navigation Styles --- */
:root {
  --pill-bg: #060010;
  --pill-text: #ffffff;
  --pill-hover-text: #060010;
  --pill-accent: #ffffff;
  /* For hover circle */
}

/* Container to center/place the nav */
.pill-nav-container {
  position: absolute;
  /* Floating */
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  /* Center the pill */
  z-index: 1000;
  padding: 0 20px;
}

/* The Black Pill */
.pill-nav {
  background: var(--pill-bg);
  color: var(--pill-text);
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 60px;
}

/* Logo */
.pill-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Desktop Items */
.pill-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Individual Pill Links */
.pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--pill-text);
  overflow: hidden;
  /* Mask the circle */
  font-weight: 500;
  font-size: 0.95rem;
}

/* The expanding white circle */
.hover-circle {
  position: absolute;
  left: 50%;
  /* JS will center it */
  background: var(--pill-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* JS sets width/height/bottom */
}

/* Label Stack for rolling text */
.label-stack {
  position: relative;
  z-index: 1;
  /* Above circle */
  height: 1.5em;
  /* approximate line height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pill-label {
  display: block;
  color: var(--pill-text);
  /* JS animates Y */
}

/* In the React code, hovered text color is black (because circle is white) */
.pill-label-hover {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--pill-hover-text);
  width: 100%;
  text-align: center;
  opacity: 0;
  /* JS handles this */
}

/* Mobile Toggle */
.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  /* Desktop default */
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #fff;
  display: block;
}

/* Mobile Menu Popover */
.mobile-menu-popover {
  position: absolute;
  top: 70px;
  /* Below pill */
  background: var(--pill-bg);
  /* Use pill color for consistency */
  padding: 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 300px;
  color: #fff;
  visibility: hidden;
  /* JS toggles */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.mobile-menu-link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .pill-nav {
    justify-content: space-between;
    width: 90%;
    max-width: 400px;
  }

  .pill-logo {
    margin-right: auto;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* --- Custom Cursor Styles --- */
body {
  cursor: none;
  /* Hide default */
}

a,
button,
.btn,
.pill,
.add-btn,
input,
select {
  cursor: none;
  /* Hide default on interactables */
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Hover State */
.custom-cursor.hovering .cursor-ring {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 87, 34, 0.1);
  border-color: var(--primary-orange);
}

/* --- Category Filter --- */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 10px 24px;
  border: 2px solid var(--pill-bg);
  background: transparent;
  color: var(--text-color);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--pill-bg);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Shopping Cart UI --- */
.cart-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-float-btn:hover {
  transform: scale(1.1);
}

.cart-icon {
  font-size: 30px;
  color: #fff;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #000;
  color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #fff;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-gradient);
}

.cart-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-cart {
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 15px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eee;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.cart-control-btn {
  cursor: pointer;
  color: var(--primary-orange);
  user-select: none;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid #eee;
  background: #fff;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.empty-cart-msg {
  text-align: center;
  color: var(--text-light);
  margin-top: 50px;
  font-style: italic;
}

@media(max-width: 480px) {
  .cart-sidebar {
    width: 100%;
  }
}
