body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #f4f4f4; /* Lighter background */
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #ffffff; /* White header */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px; /* Wider container */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

nav h1 {
    margin: 0;
    font-size: 28px; /* Slightly larger */
    color: #ff5722; /* Vibrant Orange */
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; /* Increased gap */
    flex-wrap: wrap;
    justify-content: center; /* Center items when wrapped */
}

nav a {
    text-decoration: none;
    color: #555; /* Darker grey for links */
    font-weight: 600; /* Semi-bold */
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px 0; /* Add padding for click area */
}

nav a:hover {
    color: #ff5722; /* Vibrant Orange on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.container {
    max-width: 1200px; /* Wider container */
    margin: 30px auto; /* More margin */
    padding: 30px; /* More padding */
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    border-radius: 12px; /* More rounded corners */
}

h2, h3 {
    color: #ff5722; /* Vibrant Orange */
    border-bottom: 2px solid #ff9800; /* Lighter orange border */
    padding-bottom: 15px; /* More padding */
    margin-bottom: 25px; /* More margin */
    font-weight: 700; /* Bold */
}

/* Removed .hero img styles */


/* Menu Sections on Home Page */
.menu-section {
    margin-bottom: 40px; /* Space between categories */
}

.menu-section h3 {
    margin-bottom: 20px; /* Space below category title */
    border-bottom: 2px solid #ff9800; /* Lighter orange border */
    padding-bottom: 10px;
}


/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger min width */
    gap: 30px; /* Increased gap */
}

.menu-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px; /* More padding */
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* Improved shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Keep card lift/shadow transition */
    /* perspective: 1000px; /* Not needed on the item itself for child rotation */
}

/* Keep card lift/shadow on hover */
.menu-item:hover {
    transform: translateY(-5px); /* Only lift on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.menu-item img {
    width: 100%; /* Make image fill its container width */
    /* height: 180px; /* Removed fixed height */
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 4px;
    margin-bottom: 15px; /* More margin */

    animation: rotate360  linear infinite; 
    transform-style: preserve-3d;
}

/* Remove hover rotation from image */
/* .menu-item:hover img {
     transform: rotateY(360deg);
} */


.menu-item h4 {
    margin: 5px 0;
    font-size: 20px; /* Slightly larger */
    color: #333;
}

.menu-item p {
    margin: 5px 0 20px; /* More margin */
    color: #666;
    font-size: 15px;
}

.menu-item .price {
    font-weight: bold;
    color: #ff5722; /* Vibrant Orange */
    font-size: 18px; /* Slightly larger */
}

.btn {
    display: inline-block;
    background-color: #ff5722; /* Vibrant Orange */
    color: white;
    padding: 12px 20px; /* More padding */
    border: none;
    border-radius: 5px; /* Slightly more rounded */
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase; /* Uppercase text */
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #e64a19; /* Darker orange on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Checkout Page */
#cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0; /* More padding */
}

.cart-item-info {
    flex-grow: 1;
    margin-right: 20px; /* Add some space */
}

.cart-item-info h4 {
    margin: 0;
    font-size: 18px; /* Slightly larger */
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-info p {
    margin: 5px 0 0;
    font-size: 15px;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-actions button {
    background-color: #ff9800; /* Lighter orange */
    color: white;
    border: none;
    padding: 8px 12px; /* More padding */
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cart-item-actions button:hover {
    background-color: #f57c00; /* Darker lighter orange */
}

.cart-item-actions span {
    font-weight: bold;
    font-size: 16px;
    min-width: 20px; /* Ensure quantity has space */
    text-align: center;
}


#cart-total {
    font-size: 24px; /* Larger total */
    font-weight: bold;
    text-align: right;
    margin-top: 30px; /* More margin */
    padding-top: 15px; /* More padding */
    border-top: 2px solid #ff9800; /* Lighter orange border */
    color: #ff5722; /* Vibrant Orange */
}

#place-order-btn {
    display: block;
    width: 100%;
    margin-top: 30px; /* More margin */
    text-align: center;
    background-color: #4caf50; /* Green for WhatsApp */
}

#place-order-btn:hover {
    background-color: #388e3c; /* Darker green */
}


/* History Page (formerly Admin) */
#order-list {
    margin-bottom: 30px;
}

.order-item {
    border: 1px solid #ffccbc; /* Light orange border */
    border-radius: 8px;
    padding: 20px; /* More padding */
    margin-bottom: 20px; /* More margin */
    background-color: #fff3e0; /* Very light orange background */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.order-item h4 {
    margin: 0 0 10px;
    color: #e64a19; /* Darker orange */
    border-bottom: 1px dashed #ff9800; /* Lighter orange dashed border */
    padding-bottom: 8px;
    font-size: 18px;
}

.order-item p {
    margin: 5px 0;
    font-size: 15px;
    color: #555;
}

.order-item ul {
    list-style: disc; /* Use discs for list items */
    padding-left: 20px; /* Indent list */
    margin: 15px 0; /* More margin */
}

.order-item li {
    margin-bottom: 8px; /* More space between list items */
    font-size: 15px;
}

.order-item strong {
    color: #ff5722; /* Vibrant Orange */
}

#total-sales {
    font-size: 28px; /* Larger total sales */
    font-weight: bold;
    color: #e64a19; /* Darker orange */
    margin-top: 30px; /* More margin */
    padding-top: 15px;
    border-top: 2px solid #ff9800;
}

/* About Page - Team Section */
.our-team {
    margin-top: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
     transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ff9800; /* Border around image */
    /* Apply continuous rotation animation */
    animation: rotate360 2s linear infinite; /* 2s duration, linear speed, infinite loop */
    transform-style: preserve-3d; /* Needed for 3D transform */
}

.team-member h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

.team-member p {
    margin: 0;
    font-size: 14px;
    color: #666;
}


/* Contact Page - Form Styles */
#contact-form {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

#contact-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.contact-info p {
    margin: 8px 0;
    font-size: 16px;
    color: #555;
}


footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* More margin */
    color: #666;
    font-size: 14px;
}

/* Custom Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* background-color: #4caf50; Green background - handled by JS now */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    min-width: 200px; /* Ensure minimum width */
    text-align: center;
}

.popup.show {
    display: block;
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
/* Add more delay classes if needed */

/* Animation for the Welcome Heading */
@keyframes slideLeftRight {
    0% { transform: translateX(-20px); } /* Start slightly left */
    50% { transform: translateX(20px); }  /* Move slightly right */
    100% { transform: translateX(-20px); } /* Return to slightly left */
}

.animated-heading {
    display: inline-block; /* Needed for transform to work correctly */
    animation: slideLeftRight 3s ease-in-out infinite alternate; /* Apply animation */
}

/* New Keyframes for 360 Rotation */
@keyframes rotate360 {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Apply continuous rotation to ALL images */
img {
    /* Existing styles */
    /* width: 100%; */ /* Keep existing size/layout styles */
    /* height: 180px; */
    /* object-fit: cover; */
    /* border-radius: 4px; */
    /* margin-bottom: 15px; */

    /* Apply the continuous rotation animation */
    animation: rotate360 2s linear infinite; /* 2s duration, linear speed, infinite loop */
    transform-style: preserve-3d; /* Needed for 3D transform */
}

/* Override for profile picture if needed, or adjust animation */
/* Example: Stop rotation for circular profile pictures */
.team-member img {
    animation: none; /* Disable rotation for team member images */
    transform: none; /* Reset transform */
}


/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px; /* Adjusted gap */
    }

    nav ul {
        gap: 15px; /* Adjusted gap */
    }

    .container {
        padding: 15px; /* Less padding on small screens */
        margin: 20px auto;
    }

    h2, h3 {
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Smaller min width for smaller screens */
        gap: 15px; /* Less gap */
    }

    .menu-item {
        padding: 10px;
    }

    .menu-item img {
        /* height: 120px; /* Removed fixed height */
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
        margin-bottom: 10px;
        /* Animation still applies */
    }

    .menu-item h4 {
        font-size: 16px;
    }

    .menu-item p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .menu-item .price {
        font-size: 15px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .cart-item {
        flex-direction: column; /* Stack cart items vertically */
        align-items: flex-start;
        padding: 10px 0;
    }

    .cart-item-info {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cart-item-actions {
        width: 100%; /* Full width for actions */
        justify-content: space-between; /* Distribute buttons */
    }

    #cart-total {
        font-size: 20px;
        margin-top: 20px;
        padding-top: 10px;
    }

    #place-order-btn {
        margin-top: 20px;
    }

    .order-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .order-item h4 {
        font-size: 16px;
        padding-bottom: 5px;
    }

    .order-item p, .order-item li {
        font-size: 13px;
    }

    #total-sales {
        font-size: 20px;
        margin-top: 20px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust for smaller screens */
        gap: 15px;
    }

    .team-member img {
        width: 80px;
        height: 80px;
        /* Animation still applies */
    }

    .team-member h4 {
        font-size: 16px;
    }

    .team-member p {
        font-size: 12px;
    }

    #contact-form {
        padding: 15px;
    }

    .form-group label,
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }

    #contact-form .btn {
        font-size: 16px;
        padding: 10px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .popup {
        width: 90%; /* Make popup wider on small screens */
        left: 5%;
        transform: translateX(0);
        text-align: center;
    }
}