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

:root {
  --primary-color: #ff4500; /* Sizzling Orange */
  --secondary-color: #ffb400; /* Mustard Yellow */
  --bg-color: #111111; /* Deep Charcoal */
  --bg-color-alt: #1a1a1a;
  --text-color: #f5f5f5; /* Crisp White */
  --text-muted: #aaaaaa;
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: 5rem; }
h2 { font-size: 3.5rem; }
h3 { font-size: 2.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.8rem; }
}

p {
  margin-bottom: 1rem;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Magnetic effect replaces the old before pseudo element */
.btn:hover {
  box-shadow: 0 10px 20px rgba(255, 69, 0, 0.4);
}

.btn-secondary {
  background-color: #333;
  color: #fff;
}
.btn-secondary:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* 3D and Hover Utilities */
.preserve-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  will-change: transform;
}

.tilt-card img {
  transform: translateZ(50px); /* 3D pop effect */
  transition: var(--transition-smooth);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-smooth);
  background: transparent;
}

nav.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: 1rem;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-color-alt);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
  }
  .nav-links.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  .hamburger {
    display: flex;
    z-index: 101;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

.cursor.hovered {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 2px solid var(--primary-color);
}

/* Sections */
section {
  padding: 6rem 0;
}

/* Marquee */
.marquee-container {
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.marquee-content {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  margin: 0 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  z-index: 1;
  perspective: 1000px;
}

.hero-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-content {
    width: 100%;
    margin-bottom: 2rem;
  }
  .hero-image-wrapper {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    width: 80%;
    margin: 0 auto;
  }
}

/* Category Navigation for Menus */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-nav a {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid #333;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.category-nav a.active, .category-nav a:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* About Section */
.about {
  background-color: var(--bg-color-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 2px solid #333;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-text {
    order: -1;
    text-align: center;
  }
}

/* Featured Section */
.featured {
  text-align: center;
}

.section-title {
  margin-bottom: 3rem;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.menu-item {
  background: var(--bg-color-alt);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #333;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: linear-gradient(45deg, transparent, rgba(255,69,0,0.1), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item img {
  width: 80%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.6));
}

.menu-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.menu-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #151515;
  box-shadow: -5px 0 25px rgba(0,0,0,0.8);
  z-index: 1000;
  transition: 0.5s cubic-bezier(0.8, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid #333;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 2rem;
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-color-alt);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #222;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

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

.cart-item-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  color: var(--secondary-color);
  font-weight: bold;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.remove-item {
  color: #ff4444;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid #333;
  background: #111;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

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

/* Checkout Page Styles */
.checkout-section {
  padding-top: 120px;
  padding-bottom: 6rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.checkout-form-group {
  margin-bottom: 1.5rem;
}

.checkout-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-form-group input, .checkout-form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color-alt);
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.checkout-form-group input:focus, .checkout-form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.2);
}

.checkout-summary {
  background: var(--bg-color-alt);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #333;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-top: 2rem;
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Success Animation Modal */
.success-modal {
  text-align: center;
  padding: 4rem;
}

.success-icon {
  font-size: 5rem;
  color: #4CAF50;
  margin-bottom: 2rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color-alt);
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  position: relative;
  transform: scale(0.8) translateY(50px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 1px solid #333;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.close-modal:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-img-container {
  width: 50%;
  background: radial-gradient(circle, #333 0%, #111 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  perspective: 1000px;
}

.modal-img-container img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.6));
  transform: translateZ(50px);
}

.modal-details {
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-details h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ingredients {
  margin-bottom: 2rem;
}

.ingredients h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #222;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #ddd;
  border: 1px solid #444;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.qty-btn {
  background: #333;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}

.qty-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-img-container, .modal-details {
    width: 100%;
  }
  .modal-img-container {
    padding: 2rem;
  }
  .modal-details {
    padding: 2rem;
  }
}

/* Footer */
footer {
  background: #0a0a0a;
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid #222;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  color: #666;
  font-size: 0.9rem;
}
