:root {
  --primary-color: #ff6b6b;
  --secondary-color: #ffd93d;
  --text-color: #2d3436;
  --light-text: #ffffff;
  --gray-text: #636e72;
  --background-light: #ffffff;
  --background-gray: #f8f9fa;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--background-light);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link i {
  margin-right: 0.5rem;
  font-size: 0.9em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.logo a {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  /* background: rgba(255, 107, 107, 0.1); */
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Profile Menu Styles */
.profile-menu {
  position: relative;
  margin-left: 1rem;
}

.user-button {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.user-button-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-button .user-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.username {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.username {
  color: var(--text-color);
  font-weight: 500;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--background-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: none;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: var(--background-light);
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-dropdown.show {
  display: block;
  animation: slideDown 0.2s ease forwards;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--background-gray);
  margin-bottom: 1rem;
}

.dropdown-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info h4 {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.profile-link:hover {
  background: var(--background-gray);
  color: var(--primary-color);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-button,
.user-button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cart-button {
  position: relative;
}

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

/* Hero Section */
.hero-section {
  padding-top: 80px;
  /* min-height: 100vh; */
  height: 300px;
  display: flex;
  align-items: center;
  background: var(--background-light);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

/* Section divider for hero section */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  height: 300px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gray-text),
    transparent
  );
  opacity: 0.5;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  /* background: linear-gradient(45deg, #ff6b6b, #ffd93d); */
  /* -webkit-background-clip: text; */
  /* background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  color: linear-gradient(45deg, #ff6b6b, #ffd93d);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 3s ease;
  animation-delay: 2000ms;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: white;
  /* color: var(--gray-text); */
  font-weight: 400;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--light-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(5px);
}

/* Menu Section */
.menu-section {
  padding: 6rem 2rem;
  background: var(--background-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray-text);
  font-size: 1.1rem;
}

.menu-subtitle {
  color: var(--gray-text);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.category-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  background: var(--background-gray);
  color: var(--text-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
  border-color: var(--primary-color);
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-btn.active,
.category-btn:hover {
  background: var(--primary-color);
  color: var(--light-text);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--background-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--light-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-description {
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.add-to-cart-btn {
  background: var(--primary-color);
  color: var(--light-text);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Cart Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.modal-content {
  background: var(--background-light);
  width: 90%;
  max-width: 500px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--background-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-text);
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--primary-color);
}

.cart-items {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.cart-summary {
  padding: 1.5rem;
  background: var(--background-gray);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.summary-row.total {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.checkout-btn:hover {
  background: var(--secondary-color);
}

/* Footer */
.footer {
  background: #2d3436;
  color: var(--light-text);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #b2bec3;
  margin-bottom: 1rem;
}

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

.social-link {
  color: var(--light-text);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul a {
  color: #b2bec3;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul a:hover {
  color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
}

.newsletter-form button {
  padding: 0.8rem;
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--light-text);
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: var(--light-text);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background-light);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .menu-categories {
    flex-wrap: wrap;
  }

  .product-card {
    margin: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-form {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 15px 25px;
  border-radius: var(--radius-md);
  background: var(--background-light);
  color: var(--text-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  animation: slideIn 0.5s ease, fadeOut 0.5s ease 2.5s forwards;
}

.notification.success {
  background: #4caf50;
  color: white;
}

.notification i {
  font-size: 1.2rem;
}

/* Scroll Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal animations for sections */
section {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll behavior for the whole page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on your navbar height */
}

/* Active navigation link style */
.nav-link.active {
  color: var(--primary-color);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  /* background: var(--primary-color); */
  animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInLeft {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* Section Styles */
.hero-section,
.about-section,
.menu-section,
.contact-section {
  padding: 6rem 0;
  background: var(--background-light);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Remove any previous border styles */
.menu-section {
  margin-top: 0;
}

/* Section dividers */
.hero-section::after,
.menu-section::after,
.about-section::after,
.contact-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #ff6b6b 30%,
    #ffd93d 70%,
    transparent 100%
  );
  opacity: 0.3;
}

.about-container,
.menu-container,
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  width: 100%;
}

.about-title,
.menu-title,
.contact-title {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.about-title::after,
.menu-title::after,
.contact-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.about-title i {
  font-size: 2rem;
  color: var(--primary-color);
}

.about-text {
  margin-bottom: 3rem;
}

.about-text p {
  color: var(--gray-text);
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 800px;
}

.restaurant-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.feature span {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature:hover i {
  transform: scale(1.1);
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .restaurant-features {
    flex-direction: column;
    gap: 2rem;
  }

  .about-text p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .about-title {
    font-size: 2rem;
  }
}
