/* =======================
   GLOBAL RESET
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

/* =======================
   NAVBAR
======================= */
.navbar {
    height: 70px;
    background-color: #1F1F1F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #F39C12;
    font-size: 26px;
    font-weight: 700;
}

.nav-links a {
    color: #ffffff;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 750;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #F39C12;
}

/* =======================
   HERO SECTION
======================= */
.hero {
    height: 90vh;
    background: url("images/homepage.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(29, 32, 31, 0.484);
}

.hero-content p{
    position: relative;
    color: #ffffff;
    font-weight : 700;
    font-size: 30px;
    text-align: center;
    max-width: 1000px;
    margin-bottom: 40px
}

.hero-content h1 {
    position: relative;
    text-align: center;
    font-size: 52px;
    color: #f7f6f4;
    font-weight : 700;
    font-size: 50px;
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-block;
    margin: 20px auto 0;
    position: relative;
    padding: 15px 40px;
    font-size: 18px;
    color: #ffffff;
    background-color: #F39C12;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;

}

.hero-btn:hover {
    background-color: #e08e0b;
}

/* =======================
   CATEGORIES SECTION
======================= */
.categories {
    padding: 80px 60px;
    background-color: #FFF8F0;
    text-align: center;
}

.categories h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #1F1F1F;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* CATEGORY CARD */
.category-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.07);
}

.category-card.active {
    outline: 4px solid #F39C12;
}

/* IMAGE */
.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* TITLE UNDER IMAGE */
.category-title {
    padding: 14px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1F1F1F;
    background-color: #FFF8F0;
}

/* =======================
   MENU ITEMS SECTION
======================= */
.menu-items {
    display: none;   /* shown only when category clicked */
    padding: 80px 60px;
    background-color: #ffffff;
}

.menu-items h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
}

/* GRID */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* FOOD CARD */
.food-card {
    background-color: #FFF8F0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s;
    text-align: center;
}

.food-card:hover {
    transform: scale(1.05);
}

.food-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.food-card p {
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #1F1F1F;
}


.cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    z-index: 999;
}

.food-card {
    position: relative;
}

.add-btn {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
}

.contact-footer {
    background: #1e1e1e;
    color: #fff;
    padding: 12px 15px;
    margin-top: 20px;
    text-align: center; 
}

.contact-footer h2 {
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid #f39c12; 
    margin-bottom: 15px;
}

.contact-footer h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    margin: 0.5px auto 0 auto;
    border-radius: 2px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: auto;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    width: 45%;
}

.footer-left{
    text-align: left;
}

.footer-right{
    text-align: right;
}

.footer-left p,
.footer-right p {
    margin: 5px 0;
    font-size: 16px;
    text-align: center ;
    
}

.footer-left span,
.footer-right span {
    color: #f39c12;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #ccc;
}

/* FUN MODAL BACKGROUND */
.fun-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* FUN BOX */
.fun-box {
    background: #FFF8F0;
    width: 80%;
    max-width: 700px;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    animation: popUp 0.4s ease;
}

/* POP ANIMATION */
@keyframes popUp {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
}

/* TITLE */
.fun-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1F1F1F;
}

/* FACT GRID */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* FACT CARD */
.fact-card {
    background: #1F1F1F;
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.fact-card:hover {
    transform: scale(1.05);
    background: #F39C12;
    color: #1F1F1F;
}

.about-section {
    padding: 80px 60px;
    background: linear-gradient(135deg, #fff8f0, #ffe6c7);
}

.about-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* TEXT AREA */
.about-text h2 {
    font-size: 36px;
    color: #1F1F1F;
    margin-bottom: 10px;
    border-bottom: 3px solid #F39C12;
    display: inline-block;
    padding-bottom: 8px;
}

.about-tagline {
    font-size: 18px;
    color: #F39C12;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

/* CARDS */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.about-card {
    background: #1F1F1F;
    color: #fff;
    padding: 25px 20px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.about-card h4 {
    margin: 10px 0;
    color: #F39C12;
}

.about-card p {
    font-size: 14px;
    line-height: 1.4;
}

.about-card:hover {
    transform: translateY(-8px);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.food-card:hover .add-btn {
    display: block;
}



/* FLOATING CART */
.floating-cart {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: #F39C12;
    color: #fff;
    font-size: 26px;
    padding: 14px 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 3000;
}

/* CART COUNT */
#cartCount {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 50%;
}

/* CART MODAL */
.cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    z-index: 4000;
}

.cart-modal h3 {
    text-align: center;
    margin-bottom: 15px;
}

.cart-modal ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.cart-modal li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.cart-modal button {
    width: 100%;
    padding: 10px 20px;
    background: #F39C12;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* ADDED RIBBON */
.added-ribbon {
    position: absolute;
    top: 12px;
    left: -35px;
    background: #27ae60;
    color: #fff;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-45deg);
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


/* CARD HIGHLIGHT WHEN ADDED */
.food-card.added {
    animation: addedPulse 0.4s ease;
    border: 2px solid #27ae60;
}

@keyframes addedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.cart-modal li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.cart-total {
    font-weight: bold;
    font-size: 16px;
    text-align: right;
    margin-bottom: 12px;
    color: #1F1F1F;
}

.qty-btn {
    background: #F39C12;
    border: none;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.place-order-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;  /* slightly bigger for touch */
    margin: 5px 0;       /* vertical spacing between buttons */
    border-radius: 5px;
    cursor: pointer;
    width: 100%;         /* makes buttons stretch full width */
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.place-order-btn:hover {
    background-color: #218838;
}

.food-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* image stays clean */
.food-card img {
    width: 100%;
    display: block;
}

/* NEW container below image */
.food-info {
    padding: 10px;
}

/* item name visibility */
.food-name {
    font-weight: bold;
    margin-bottom: 8px;
}

/* buttons aligned properly */
.btn-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* buttons */
.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.plus-btn {
    background-color: #27ae60;
}

.minus-btn {
    background-color: #e74c3c;
}

/* quantity */
.qty-display {
    font-weight: bold;
    background: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-items {
    display: none;
}

.about-section,
.contact-footer {
    display: block;
}

.qty-control {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 40px;
}

.food-card{
    position: relative;
    padding-bottom: 60px;
}
.minus-btn {
    position: absolute;
    left: 12px;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.plus-btn {
    position: absolute;
    right: 12px;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}


/*
.plus-btn,
.minus-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}
    */

.plus-btn {
    background: #2ecc71; /* green */
}

.minus-btn {
    background: #e74c3c; /* red */
}


/*
.qty {
    font-size: 18px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}  */

.qty {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    background: #fff;
    padding: 2px 8px;
    border-radius: 8px;

}
