/* Root Variables */
:root {
    --primary-color: #cb202d;
    --secondary-color: #ff5252;
    --text-color: #333;
    --bg-color: #fff;
    --header-height: 60px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header styles */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

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

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Search */
.search-container {
    position: relative;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: none;
    border-radius: 25px;
    background: #f0f0f0;
    transition: box-shadow 0.3s ease, min-width 0.3s ease;
    min-width: 180px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}


.menu-btn {
    background-color: #FFDDC1; /* Soft Peach */
    color: #5A3E36; /* Warm brown for contrast */
    border: none;
    padding: 8px 14px; /* Smaller button size */
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 30%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.menu-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.menu-btn:hover {
    background-color: #FFC4A3; /* Slightly darker peach on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

/* Header actions - arranging search, cart, and login button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search bar */
.search-container {
    position: relative;
    flex-grow: 1;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: none;
    border-radius: 25px;
    background: #f0f0f0;
    transition: box-shadow 0.3s ease, min-width 0.3s ease;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Cart icon */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Login Button */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .search-container {
        display: none; /* Hide search bar on mobile */
    }

    .header-actions {
        gap: 0.5rem;
    }
}


/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
    background: var(--bg-color);
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links, .search-container {
        display: none;
    }

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

    .header-actions {
        gap: 0.5rem;
    }
}

/* Hero section */
.hero {
    background-image: url('https://b.zmtcdn.com/web_assets/81f3ff974d82520780078ba1cfbd453a1583259680.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Search bar */
.search-bar {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-bar input {
    flex-grow: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
}

.search-bar button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
}

/* Cuisines */
 .restaurants {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
 .restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}
/* Cuisines Section */
.cuisines {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Wrapper to hold cuisines and buttons */
.cuisine-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Cuisine Grid with Horizontal Scrolling */
.cuisine-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    white-space: nowrap;
    scrollbar-width: none;
}

.cuisine-grid::-webkit-scrollbar {
    display: none;
}

/* Individual Cuisine Items */
.cuisine-item {
    min-width: 150px;
    text-align: center;
}

.cuisine-item img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Scroll Buttons */
.scroll-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.left-btn {
    left: -50px;
}

.right-btn {
    right: -50px;
}

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

/* Responsive Fixes */
@media (max-width: 768px) {
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .left-btn {
        left: 0;
    }

    .right-btn {
        right: 0;
    }
}


/* Restaurants */
.restaurants {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.restaurant-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.restaurant-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.restaurant-info {
    padding: 15px;
    text-align: center;
}

.restaurant-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.restaurant-cuisine {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.restaurant-rating {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
}

.view-details {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    text-decoration: none;
    background: #ff5722;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-details:hover {
    background: #e64a19;
}


.restaurant-locations {
    text-align: center;
    padding: 40px 20px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

.location-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    margin-bottom: 10px;
}

.location-card iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
}


/* Footer */
footer {
    background: #2c2c2c;
    color: white;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    width: 22%;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff5722;
    padding-bottom: 5px;
    display: inline-block;
}

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

.footer-column ul li {
    margin: 10px 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: #bdbdbd;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ff5722;
}

/* Social Icons */
.social-links ul li a {
    display: flex;
    align-items: center;
}

.social-links i {
    margin-right: 10px;
    font-size: 18px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background: #1f1f1f;
    font-size: 14px;
}


/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal h2 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-content p {
    margin: 10px 0;
}

.add-to-cart {
    background: linear-gradient(135deg, #f4c542, #e68a00);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #e69a00, #d17700);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.add-to-cart:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}