* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: url('background.png') center center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(1px) brightness(0.8);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h3 {
    font-size: 7em;
}

.hero h2 {
    font-size: 2.5rem;
}

.hero p {
    font-size : 1.5em;
}

.hero-gradient {
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Menu */
.menu-section {
    padding: 40px 20px;
    text-align: center;
}

.menu-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px; /* reduce space below heading */
    color: #111;
}

.dark-theme .menu-section h1 {
    color: #fff;
}

.menu-gradient {
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.menu-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 30px 0 10px 0;
}

.menu-section p {
    margin-top: 0;
    margin-bottom: 22px; /* add space below paragraph */
}

.menu-card {
    min-width: 0;
    max-width: 100%;
    height: 470px;
    background: white;
    border-radius: 16px;
    padding: 0 0 18px 0;
    box-shadow: none;
    margin: 0 auto;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    box-shadow: none;
    transform: scale(1.03);
    z-index: 2;
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
    margin: 0;
    transition: transform 0.3s;
    will-change: transform;
}

.menu-card:hover img {
    transform: scale(1.03);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 20px;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: visible;
    overflow-y: visible;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 18px 0 18px;
}

.price {
    font-weight: bold;
    font-size: 1.2em;
    /* gradient is handled by .menu-gradient */
}

.category-label {
    padding: 4px 18px;
    border-radius: 32px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: #fff;
    margin-left: 12px;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
    outline: none;
    cursor: default;
    user-select: none;
}

.menu-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 14px 18px 6px 18px;
    color: #222;
    text-align: left;
}

.menu-card p {
    margin: 0 18px 12px 18px;
    color: #444;
    font-size: 1em;
    text-align: left;
}

.menu-card button {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 18px;
}

.menu-card button:hover {
    background: #e60000;
}

/* Category Buttons */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
    margin-top: 0; /* ensure no extra space above buttons */
}

.menu-category-btn {
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #222;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.menu-category-btn.selected {
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: #fff;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

form input, form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

form button {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #e60000;
}

/* Footer */
footer {
    background: #ff4d4d;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

#backButton {
    margin-top:10px;
    background:#eee;
    color:#333;
    border:none;
    padding:8px 16px;
    border-radius:5px;
    cursor:pointer;
}

.typewriter-container {
    height: 40px; /* Adjust as needed for your font size */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    z-index: 1;
    position: relative;
}

.feedback-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 28px;
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.feedback-btn:hover {
    background: linear-gradient(90deg, #ff4d4d, #ff9800);
}

.info {
    font-size: 0.8em;
}

.red-heart {
    font-size: 1.3em;
    background: linear-gradient(90deg,yellow, #ff9800, #ff9500);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: bold;
}

.main-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 12px 32px;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    transition: background 0.2s;
}

.circle-btn:hover {
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: #fff;
}

.cart-icon {
    font-size: 1.2em;
}

.cart-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d4d;
    color: #fff;
    font-size: 0.8em;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.theme-icon {
    font-size: 1.2em;
}

.cart-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.cart-modal-content {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    width: 340px;
    margin: 80px auto 0 auto;
    text-align: center;
    position: relative;
}

.cart-modal-content .close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 1.7em;
    cursor: pointer;
}

.checkout-btn {
    margin-top: 18px;
    padding: 10px 28px;
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-controls {
    margin: 0;
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.add-cart-btn {
    background: linear-gradient(90deg, #ff9800, #ff4d4d);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    display: block;
}

.add-cart-btn:hover {
    background: linear-gradient(90deg, #ff4d4d, #ff9800);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.qty-btn {
    background: #fff;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background: #ff4d4d;
    color: #fff;
}

.qty-value {
    font-size: 1.1em;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.dark-theme {
    background: #181818;
    color: #eee;
}

.dark-theme .menu-card {
    background: #232323;
    color: #eee;
}

.dark-theme .menu-card h3,
.dark-theme .menu-card p {
    color: #eee;
}

.dark-theme .main-navbar {
    background: rgba(30,30,30,0.7);
}

.dark-theme .cart-modal-content {
    background: #232323;
    color: #eee;
}

.dark-theme .add-cart-btn,
.dark-theme .checkout-btn {
    background: #ff9800;
    color: #222;
}

.dark-theme .add-cart-btn:hover,
.dark-theme .checkout-btn:hover {
    background: #ff4d4d;
    color: #fff;
}

.dark-theme .qty-btn {
    background: #232323;
    color: #ff9800;
    border-color: #ff9800;
}

.dark-theme .qty-btn:hover {
    background: #ff9800;
    color: #232323;
}




/* 📱 Mobile Portrait Fixes */
@media (max-width: 768px) {
  body {
    padding: 0 12px;
    overflow-x: hidden;
  }

  .hero {
    padding: 40px 12px;
    min-height: 60vh;
    text-align: center;
  }

  .hero h3 {
    font-size: 3em;
    word-break: break-word;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.1em;
  }

  .typewriter-container {
    height: auto;
    margin-top: 20px;
  }

  .main-navbar {
    flex-direction: row;
    justify-content: center;
    padding: 10px 16px;
    gap: 12px;
  }

  .circle-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
  }

  .menu-section {
    padding: 30px 12px;
  }

  .menu-section h1 {
    font-size: 2rem;
  }

  .menu-section p {
    font-size: 1em;
  }

  .menu-categories {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .menu-category-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-card {
    height: auto;
    padding-bottom: 20px;
  }

  .menu-card img {
    height: 180px;
  }

  .cart-modal-content {
    width: 90%;
    margin: 60px auto 0 auto;
    padding: 24px 16px;
  }

  .checkout-btn,
  .add-cart-btn {
    font-size: 1rem;
    padding: 8px 20px;
    width: 100%;
    margin-top: 10px;
  }

  .qty-controls {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }

  footer {
    font-size: 0.75em;
    padding: 12px;
  }

  .feedback-btn {
    font-size: 1rem;
    padding: 8px 20px;
    display: block;
    margin: 12px auto 0 auto;
  }

  .info {
    text-align: center;
  }
}