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

:root {
  --primary-color: #d4a574;
  --secondary-color: #8b6f47;
  --accent-color: #f5e6d3;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --bg-light: #fafafa;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: 20px;
  color: var(--text-dark);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  animation: fadeInDown 0.8s ease-out;
}

.main-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px var(--shadow);
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  font-style: italic;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    flex-direction: column;  /* Stack logo + subtitle */
    align-items: center;     /* Center everything */
}

.logo-link:hover,
.logo-link:focus {
    text-decoration: none;
    color: inherit;
}

/* Logo image styling */
.logo-image {
    width: 140px;                /* Bigger size */
    height: 140px;
    border-radius: 50%;           /* Circular */
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5); /* Black shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Optional hover effect */
.logo-image:hover {
    transform: scale(1.05);      /* Slight zoom on hover */
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

/* Subtitle styling */
.logo-link .subtitle {
    font-size: 16px;
    color: #555;
    margin: 0;
    text-align: center;
}

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out;
}

.category-btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  background: var(--white);
  color: var(--secondary-color);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.category-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  z-index: -1;
}

.category-btn:hover::before {
  width: 300px;
  height: 300px;
}

.category-btn:hover {
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-hover);
}

.category-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px var(--shadow);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  animation: fadeIn 1s ease-out;
}

.menu-item {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-item[data-category]:not([data-category="breakfast"]) {
  display: none;
}

.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.menu-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s ease;
  position: relative;
  z-index: 0;
  filter: brightness(1);
}

.menu-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.menu-item > *:not(img) {
  padding: 0 25px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.menu-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 25px 0 8px 0;
  transition: color 0.3s ease;
}

.menu-item:hover h3 {
  color: var(--secondary-color);
}

.menu-item p.time {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  font-style: italic;
}

.menu-item p.description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.menu-item span.price {
  margin-top: auto;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.menu-item:hover span.price {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.menu-item span.price::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.menu-item:hover span.price::before {
  width: 40px;
  background: var(--secondary-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: 25px;
  max-width: 1000px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.close-btn:hover {
  color: var(--secondary-color);
  background: var(--accent-color);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-image {
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: center;
  background: var(--bg-light);
  border-radius: 25px 25px 0 0;
  display: block;
}

.modal-info {
  padding: 40px;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.modal-time {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-style: italic;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.modal-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-price::before {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .category-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    max-width: 95%;
    margin: 10px;
  }

  .modal-info {
    padding: 25px;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-image {
    height: 250px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}