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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust this value based on your logo size */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for the logo */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Slightly smaller on mobile */
        float:right;
    }
}
/* Update the existing navigation styles */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}


.hamburger {
    display: none;
    cursor: pointer;
}
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 0.5rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Add this */
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .logo{
        margin-left: 100px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; /* Position relative to navbar */
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000; /* Ensure it stays above other content */
    }

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

    .nav-links a {
        padding: 0.8rem;
        text-align: center;
        color: #333;
        text-decoration: none;
        transition: background 0.3s ease;
    }

    .nav-links a:hover {
        background: #f5f5f5;
    }

    .hamburger {
        display: block;
        z-index: 100;
        width: 25px;
        float:left;
        margin:auto;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hero Section */
.hero {
    margin-top: 0px;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('bg1.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

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

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:active {
    transform: translateY(0);
}

/* Add ripple effect styles */
.cta-button .ripple {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth scroll behavior for the whole page */
html {
    scroll-behavior: smooth;
}

/* Add some padding to the vendors section for smooth scroll landing */
#vendors {
    scroll-margin-top: 80px; /* Adjust based on your navbar height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .prev {
        left: 1rem;
    }
    
    .next {
        right: 1rem;
    }
}

/* Vendors Section */
.vendors-section {
    padding: 4rem 2rem;
    text-align: center; /* Center the section title */
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.vendor-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
}

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

.vendor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.vendor-card h3 {
    color: #333;
    margin: 0.5rem 0;
    padding: 0 1rem;
    font-size: 1.5rem;
}

.vendor-card p {
    color: #666;
    margin: 0;
    padding: 0 1.5rem;
    line-height: 1.6;
}

/* Optional: Add a cuisine tag */
.vendor-card .cuisine-tag {
    background: #f0f0f0;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

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

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .vendor-grid {
        grid-template-columns: 1fr;
    }
}

.location {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.location h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.address-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.address-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.address-info > div {
    margin-bottom: 2rem;
}

.address-info p {
    color: #666;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .location-container {
        grid-template-columns: 1fr;
    }

    #map {
        height: 300px;
    }

    .address-info {
        padding: 1rem;
    }
}

footer {
    background: #f9f9f9;
    padding: 3rem 1rem;
    text-align: center;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3 {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #777;
    font-size: 0.9rem;
    margin: 0.3rem 0;
    line-height: 1.5;
}

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

.social-links a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #333;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        padding: 0 1rem;
    }

    .footer-section:not(:last-child) {
        border-bottom: 1px solid #eee;
        padding-bottom: 2rem;
    }
}
/* Add modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Enable scrolling on the backdrop */
    padding: 2rem 1rem; /* Add padding around modal */
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Change from center to flex-start */
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    margin: 2rem auto; /* Add margin to ensure space at top and bottom */
    max-height: calc(100vh - 4rem); /* Maximum height with padding */
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-body {
    margin-top: 1rem;
    overflow-y: auto; /* Make the body scrollable */
    padding-right: 1rem; /* Space for scrollbar */
}

/* Style the scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Keep the close button fixed at the top */
.close-modal {
    position: sticky;
    top: 0;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    float: right;
    z-index: 1;
    background: white; /* Ensure it's visible when scrolling */
    padding: 0.5rem;
    margin: -1rem -1rem 1rem 1rem;
}

/* Update modal content styles */
.modal-body img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-body h2 {
    color: #333;
    margin-bottom: 1rem;
    padding-right: 2rem; /* Space for close button */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem auto;
        max-height: calc(100vh - 2rem);
    }

    .modal-body {
        padding-right: 0.5rem;
    }
}

/* Optional: Add smooth scroll behavior */
.modal-body {
    scroll-behavior: smooth;
}
.vendor-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chinese-name {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5rem;
}

.language-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.lang-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e74c3c;
    background: none;
    color: #e74c3c;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #e74c3c;
    color: white;
}

.description-container {
    position: relative;
    margin-bottom: 2rem;
}

.description {
    display: none;
    animation: fadeIn 0.3s ease;
}

.description.active {
    display: block;
}

.description h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
}

.description ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.description li {
    margin-bottom: 0.5rem;
    color: #666;
}

.menu-item h5 {
    color: #666;
    font-size: 0.9em;
    margin: 0.3rem 0;
}

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

/* Update menu item styles */
.menu-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.menu-item .price {
    margin-top: 1rem;
    color: #e74c3c;
    font-size: 1.1em;
}
.updating-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.updating-message .updating-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    animation: spin 2s linear infinite;
}

.updating-message h2 {
    color: #333;
    margin-bottom: 1rem;
}

.updating-message p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.updating-message .chinese-message {
    color: #888;
    font-size: 1rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Optional loading animation */
.updating-message::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}