/* Global Styles */
:root {
  /* New Vibrant Food-Friendly Color Palette */
  --primary-color: #E74C3C;       /* Appetizing red - stimulates hunger */
  --secondary-color: #F39C12;     /* Warm orange - food friendly */
  --accent-color: #2ECC71;        /* Fresh green - for healthy options */
  --dark-color: #2C3E50;          /* Deep blue - for contrast */
  --light-color: #FDF2E9;         /* Warm off-white - soft background */
  --highlight-color: #F9E79F;     /* Light yellow - for highlights */
  
  /* Text Colors */
  --text-color: #333333;
  --text-light: #7F8C8D;
  --text-on-dark: #ECF0F1;
  
  /* Effects */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.8rem;
  position: relative;
}

h3 {
  font-size: 1.7rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.btn i {
  font-size: 1.1em;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #C0392B;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #E67E22;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3);
}

.btn-order {
  background-color: var(--accent-color);
  color: white;
  width: 100%;
  padding: 1rem;
  margin-top: 0.75rem;
}

.btn-order:hover {
  background-color: #27AE60;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(46, 204, 113, 0.3);
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo i {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
  font-size: 1.05rem;
}

nav a:hover {
  color: var(--primary-color);
}

nav a.active {
  color: var(--primary-color);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('images/TKRMain.jpg') no-repeat center center/cover;
  height: 80vh;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  color: white;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.menu-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.item-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.menu-item:hover .item-img img {
  transform: scale(1.1);
}

.price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.age-restricted {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--dark-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.item-details {
  padding: 1.8rem;
}

.item-details h3 {
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.item-details p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  position: relative;
  padding-bottom: 1.2rem;
  margin: 3rem 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.section-title i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quantity-btn:hover {
  background-color: #C0392B;
  transform: scale(1.1);
}

.quantity-input {
  width: 60px;
  text-align: center;
  margin: 0 12px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}

/* Order Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.4s ease-out;
}

.modal-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  max-width: 550px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(0);
  animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

#orderSummary {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.order-total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary-color);
}

/* Age Verification */
.age-gate-message {
  text-align: center;
  padding: 3rem 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 3rem auto;
}

.age-gate-message i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Order Cart Button */
.order-cart {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
}

.order-cart button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1.2rem 2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  font-size: 1.1rem;
}

.order-cart button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#cartCount {
  background-color: white;
  color: var(--primary-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--dark-color), #34495E);
  color: var(--text-on-dark);
  text-align: center;
  padding: 3rem 0;
  margin-top: 5rem;
}

footer p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer i {
  margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .hero {
    height: 70vh;
  }

  .hero h2 {
    font-size: 2.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    height: 60vh;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .order-cart {
    bottom: 20px;
    right: 20px;
  }

  .order-cart button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}
