/* Importing Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Defining Custome Variables */
:root {
    /* Colors */
    --primary-color: #3b141c;
    --secondary-color: #f3961c;
    --dark-color: #252525;
    --white-color: #fff;
    --light-gray-color: #f2f2f2;

    /* Site Max-Width */
    --site-max-width: 1300px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white-color);
}

/* Setting for the whole website */
a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.section_container {
    margin: 0 auto;
    max-width: var(--site-max-width);
}

.section_title {
    text-align: center;
    padding: 60px 0 100px;
    font-size: 32px;
    font-family: "Righteous", sans-serif;
    text-transform: uppercase;
}

.section_title::after {
    content: '';
    width: 80px;
    background: var(--secondary-color);
    height: 5px;
    display: block;
    margin: 7px auto 0;
    border-radius: 8px;
}

/* Styling for the header section */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1400;
    background: var(--primary-color);
}

nav {
    display: flex;
    padding: 15px 0 15px 20px;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: var(--site-max-width);
}

nav .nav_logo a {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav .nav_logo a img {
    max-width: 55px;
}

nav .nav_logo h2 {
    color: var(--white-color);
    font-weight: 600;
    font-size: 32px;
}

nav ul {
    display: flex;
    gap: 10px;
}

nav ul li a {
    display: block;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: 500;
    color: var(--white-color);
    border-radius: 30px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

nav label {
    font-size: 32px;
    color: var(--white-color);
    cursor: pointer;
}

label .menu_btn,
label .close_btn {
    display: none;
}

#click {
    display: none;
}

/* Hero Section */
.hero_section {
    min-height: 100vh;
    background: var(--primary-color);
}

.hero_container {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    padding-top: 85px;
    min-height: calc(100vh - 85px);
    justify-content: space-between;
}

.hero_container .text_section h2 {
    font-size: 40px;
    color: var(--secondary-color);
}

.hero_container .text_section h3 {
    font-size: 35px;
    font-weight: 600;
    color: var(--white-color);
    margin-top: 8px;
}

.hero_container .text_section p {
    font-size: 20px;
    font-weight: 400;
    color: var(--white-color);
    margin: 24px 0 40px;
    max-width: 70%;
}

.hero_container .hero_section_button {
    display: flex;
    gap: 24px;
}

.hero_container .hero_section_button .button {
    padding: 8px 28px;
    border: 2px solid transparent;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.hero_container .hero_section_button .button:last-child {
    color: var(--white-color);
    border-color: var(--white-color);
    background: none;
}

.hero_container .hero_section_button .button:first-child:hover {
    color: var(--white-color);
    background: transparent;
    border-color: var(--white-color);
}

.hero_container .hero_section_button .button:last-child:hover {
    color: var(--primary-color);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero_container .image_section {
    max-width: 45%;
}

.hero_container .image_section img {
    width: 100%;
}

/* About Us Section */
.about_us {
    padding: 60px 20px 120px;
    background: var(--light-gray-color);
}

.about_container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.about_container .text_section {
    max-width: 50%;
}

.about_container .text_section p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 30px;
    text-align: center;
}

.about_container .image_section {
    max-width: 45%;
}

.about_container .image_section img {
    width: 100%;
}

/* Services Section */
.services {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 20px 120px;
}

.services .service_container {
    display: flex;
    justify-content: space-between;
    gap: 120px;
    align-items: center;
    flex-wrap: wrap;
}

.section_container .services_items img {
    width: 100%;
}

.section_container .services_items {
    width: calc(100% / 3 - 120px);
}

.services_items .services_text {
    text-align: center;
}

.services_items .services_text h3 {
    margin: 12px 0;
    font-weight: 600;
    font-size: 24px;
}

.services_items .services_text p {
    font-size: 17px;
}

/* Why Us Section */
.why_us {
    background: var(--light-gray-color);
    padding: 60px 20px 120px;
}

.why_us .why_container {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: center;
    flex-wrap: wrap;
}

.why_container .why_items img {
    width: 30%;
    margin-bottom: 10px;
}

.why_container .why_items {
    width: calc(100% / 3 - 80px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.why_items .why_us_text {
    text-align: center;
}

.why_items .why_us_text h3 {
    margin: 20px 0;
    font-size: 22px;
}

.why_items .why_us_text p {
    font-size: 17px;
}

/* Gallery Section */
.gallery {
    background: var(--white-color);
    padding: 60px 20px 100px;
}

.gallery .gallery_container {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.gallery_container .gallery_items {
    width: calc(100% / 3 - 32px);
    overflow: hidden;
    border-radius: 8px;
}

.gallery .gallery_container img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.gallery_container .gallery_items:hover img {
    transform: scale(1.3);
}

/* Contact Section */
.contact {
    background: var(--light-gray-color);
    padding: 60px 20px 100px;
}

.contact_container {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.contact_container .contact_form {
    max-width: 65%;
    width: 100%;
}

.contact_container .contact_form .field {
    margin: 20px 0;
}

.contact_container .contact_form .field label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact_container .contact_form .field input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.contact_container .contact_form textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
}

.contact_container .contact_form .button {
    padding: 8px 28px;
    border: 2px solid transparent;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 17px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.contact_container .contact_form .button:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

.contact_text .contact_items {
    display: flex;
    gap: 20px;
    margin: 80px 0;
}

.contact_text .contact_items i {
    font-size: 32px;
    margin-top: 5px;
}

/* Footer Section */
footer {
    background: #1b1b1b;
    color: var(--white-color);
    padding: 60px 20px;
}

.footer_section {
    display: flex;
    justify-content: space-between;
}

.footer_section h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer_section .footer_logo a {
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--white-color);
}

.footer_section .footer_logo a img {
    max-width: 55px;
}

.footer_section .footer_logo a h2 {
    font-weight: 600;
}

.footer_section .useful_links ul li {
    margin: 20px 0;
}

.footer_section .useful_links ul li a {
    color: var(--white-color);
    font-size: 17px;
}

.footer_section .useful_links ul li a:hover {
    text-decoration: underline;
}

.footer_section .contact_us ul li {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer_section .contact_us ul li i {
    font-size: 25px;
}

.footer_section .contact_us ul li span {
    font-size: 17px;
}

.footer_section .follow_us i {
    font-size: 26px;
    margin-right: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer_section .follow_us i:hover {
    color: var(--secondary-color);
}
#copyright{
    text-align: center;
    margin-top: 20px;
}


/* Order Page Styles */
.order_section {
    padding: 100px 0 50px;
    min-height: 100vh;
    background: #f8f9fa;
}

.cart_summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart_icon {
    position: relative;
    font-size: 24px;
    color: #8B4513;
}

.cart_icon span {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart_total {
    font-size: 18px;
    font-weight: bold;
    color: #8B4513;
}

.menu_category {
    margin-bottom: 40px;
}

.category_title {
    font-size: 28px;
    color: #8B4513;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.menu_items_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.menu_item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.menu_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.menu_item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu_item_content {
    padding: 20px;
}

.menu_item h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 15px;
}

.quantity_controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quantity_btn {
    width: 35px;
    height: 35px;
    border: 2px solid #8B4513;
    background: white;
    color: #8B4513;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity_btn:hover {
    background: #8B4513;
    color: white;
    transform: scale(1.1);
}

.quantity {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    color: #333;
}

.add_to_cart_btn {
    width: 100%;
    padding: 12px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.add_to_cart_btn:hover {
    background: #654321;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 20, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal_content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--secondary-color);
    animation: modalSlideIn 0.3s ease;
}

.modal_header {
    background: linear-gradient(135deg, var(--primary-color), #4a1a24);
    color: white;
    padding: 25px 30px;
    border-radius: 17px 17px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal_header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(243,150,28,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
}

.modal_header h3 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.close_modal {
    font-size: 32px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(243, 150, 28, 0.1);
    position: relative;
    z-index: 1;
}

.close_modal:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(243, 150, 28, 0.4);
}

.cart_items {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
}

.cart_items::-webkit-scrollbar {
    width: 8px;
}

.cart_items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cart_items::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.cart_items::-webkit-scrollbar-thumb:hover {
    background: #e6860a;
}

.cart_item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cart_item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cart_item:last-child {
    margin-bottom: 0;
}

.cart_item_info {
    margin-bottom: 15px;
}

.item_name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.item_price {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.cart_item_controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.quantity_cart_btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity_cart_btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.cart_quantity {
    background: linear-gradient(135deg, var(--secondary-color), #ff8c00);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(243, 150, 28, 0.3);
}

.remove_btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.remove_btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.cart_footer, .confirmation_footer {
    background: linear-gradient(135deg, var(--primary-color), #4a1a24);
    color: white;
    padding: 25px 30px;
    border-radius: 0 0 17px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cart_footer::before, .confirmation_footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(243,150,28,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(243,150,28,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.cart_total_modal {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.cart_footer .button, .confirmation_footer .button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

#confirm-order-btn, #complete-order-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff8c00);
    color: white;
}

#confirm-order-btn:hover, #complete-order-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #e6860a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 150, 28, 0.4);
}

#cancel-order-btn, #cancel-confirmation-btn {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

#cancel-order-btn:hover, #cancel-confirmation-btn:hover {
    background: linear-gradient(135deg, #545b62, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.confirmation_message {
    padding: 30px;
    white-space: pre-line;
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    margin: 20px;
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
    line-height: 1.8;
    font-size: 16px;
    color: var(--primary-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Updated Checkout Button with Modern Coffee Theme */
.checkout-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color), var(--primary-color));
    
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(243, 150, 28, 0.4);
    transform-style: preserve-3d;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color), var(--primary-color));
    border-radius: 50px;
    opacity: 0;
    transition: all 0.3s ease;
}

.checkout-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%); */
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    /* background: linear-gradient(135deg, #ff8c00, var(--secondary-color), #d35400); */
}

.checkout-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.checkout-btn:hover:not(:disabled)::after {
    width: 200px;
    height: 200px;
}

.checkout-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
    box-shadow: 0 8px 20px rgba(243, 150, 28, 0.5);
}

.checkout-btn:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
    opacity: 0.7;
}

.checkout-btn:disabled::before,
.checkout-btn:disabled::after {
    display: none;
}

.checkout-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.checkout-btn:hover:not(:disabled) i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Add a subtle pulse animation when cart has items */
.checkout-btn:not(:disabled) {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(243, 150, 28, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(243, 150, 28, 0.6); }
}

/* Enhanced button text animation */
.checkout-btn .btn-text {
    position: relative;
    z-index: 2;
}

/* Add loading state for checkout button */
.checkout-btn.loading {
    pointer-events: none;
}

.checkout-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive checkout button */
@media (max-width: 768px) {
    .checkout-btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 15px;
        min-width: auto;
    }
    
    .checkout-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .checkout-btn {
        padding: 16px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .checkout-btn i {
        font-size: 16px;
    }
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Enhanced Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), #4a1a24);
    color: var(--secondary-color);
    padding: 15px 25px;
    border-radius: 15px;
    z-index: 1001;
    animation: slideInToast 0.4s ease;
    box-shadow: 0 8px 25px rgba(59, 20, 28, 0.6);
    border: 2px solid var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
    max-width: 350px;
    text-align: center;
}

.toast.hidden {
    display: none;
}

@keyframes slideInToast {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for main website */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1500;
        padding: 20px 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
    }

    nav label .menu_btn {
        display: block;
    }

    #click:checked ~ ul {
        left: 0;
    }

    #click:checked ~ label .menu_btn {
        display: none;
    }

    #click:checked ~ label .close_btn {
        display: block;
    }

    /* Hero Section Responsive */
    .hero_container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        padding-top: 100px;
    }

    .hero_container .text_section {
        order: 2;
        max-width: 100%;
    }

    .hero_container .text_section h2 {
        font-size: 32px;
    }

    .hero_container .text_section h3 {
        font-size: 28px;
    }

    .hero_container .text_section p {
        max-width: 100%;
        font-size: 18px;
    }

    .hero_container .image_section {
        order: 1;
        max-width: 80%;
        margin-bottom: 30px;
    }

    .hero_container .hero_section_button {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero_container .hero_section_button .button {
        width: 200px;
        text-align: center;
    }

    /* About Section Responsive */
    .about_container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about_container .text_section,
    .about_container .image_section {
        max-width: 100%;
    }

    /* Services Section Responsive */
    .services {
        padding: 40px 20px 80px;
    }

    .services .service_container {
        flex-direction: column;
        gap: 40px;
    }

    .section_container .services_items {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Why Us Section Responsive */
    .why_us {
        padding: 40px 20px 80px;
    }

    .why_us .why_container {
        flex-direction: column;
        gap: 40px;
    }

    .why_container .why_items {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .why_container .why_items img {
        width: 60px;
        height: 60px;
    }

    /* Gallery Section Responsive */
    .gallery {
        padding: 40px 20px 60px;
    }

    .gallery .gallery_container {
        flex-direction: column;
        gap: 20px;
    }

    .gallery_container .gallery_items {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Contact Section Responsive */
    .contact {
        padding: 40px 20px 60px;
    }

    .contact_container {
        flex-direction: column;
        gap: 30px;
    }

    .contact_container .contact_form {
        max-width: 100%;
    }

    .contact_text .contact_items {
        margin: 40px 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    /* Footer Section Responsive */
    .footer_section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer_section .footer_logo,
    .footer_section .useful_links,
    .footer_section .contact_us,
    .footer_section .follow_us {
        text-align: center;
    }

    /* Section Titles */
    .section_title {
        font-size: 28px;
        padding: 40px 0 60px;
    }

    /* Order Page Mobile Styles */
    .cart_summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cart_info_section {
        justify-content: center;
    }
    
    .checkout-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart_item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart_item_controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .menu_item {
        min-height: 200px;
    }
    
    .menu_item_content {
        padding: 20px;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
        max-width: none;
    }

    /* Modal Responsive */
    .modal_content {
        width: 95%;
        margin: 20px;
    }
    
    .modal_header {
        padding: 20px;
    }
    
    .modal_header h3 {
        font-size: 20px;
    }
    
    .cart_items {
        padding: 20px;
    }
    
    .cart_footer, .confirmation_footer {
        flex-direction: column;
        padding: 20px;
    }
    
    .cart_footer .button, .confirmation_footer .button {
        width: 100%;
        margin: 5px 0;
    }
    
    .cart_item_controls {
        justify-content: center;
        gap: 10px;
    }

    /* Popup Modal Responsive */
    .order-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-buttons .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    nav {
        padding: 10px 0 10px 15px;
    }

    nav .nav_logo a img {
        max-width: 45px;
    }

    nav .nav_logo h2 {
        font-size: 24px;
    }

    /* Hero Section */
    .hero_container .text_section h2 {
        font-size: 28px;
    }

    .hero_container .text_section h3 {
        font-size: 24px;
    }

    .hero_container .text_section p {
        font-size: 16px;
    }

    .hero_container .hero_section_button .button {
        width: 180px;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* About Section */
    .about_us {
        padding: 40px 15px 60px;
    }

    .about_container .text_section p {
        font-size: 16px;
        line-height: 26px;
    }

    /* Services Section */
    .services {
        padding: 40px 15px 60px;
    }

    .services_items .services_text h3 {
        font-size: 20px;
    }

    .services_items .services_text p {
        font-size: 15px;
    }

    /* Why Us Section */
    .why_us {
        padding: 40px 15px 60px;
    }

    .why_items .why_us_text h3 {
        font-size: 20px;
        margin: 15px 0;
    }

    .why_items .why_us_text p {
        font-size: 15px;
    }

    /* Gallery Section */
    .gallery {
        padding: 40px 15px 50px;
    }

    /* Contact Section */
    .contact {
        padding: 40px 15px 50px;
    }

    .contact_container .contact_form .field input {
        height: 45px;
        font-size: 14px;
    }

    .contact_container .contact_form textarea {
        height: 150px;
        font-size: 14px;
    }

    .contact_text .contact_items {
        margin: 30px 0;
    }

    .contact_text .contact_items i {
        font-size: 28px;
    }

    /* Footer */
    footer {
        padding: 40px 15px;
    }

    .footer_section h3 {
        font-size: 20px;
    }

    .footer_section .useful_links ul li {
        margin: 15px 0;
    }

    .footer_section .contact_us ul li {
        margin: 15px 0;
    }

    .footer_section .follow_us i {
        font-size: 24px;
        margin-right: 20px;
    }

    /* Section Titles */
    .section_title {
        font-size: 24px;
        padding: 30px 0 50px;
    }

    /* Order Page Mobile */
    .order_section {
        padding: 80px 0 30px;
    }
    
    .cart_summary {
        padding: 15px;
    }
    
    .menu_item_content {
        padding: 15px;
    }
    
    .toast {
        font-size: 14px;
        padding: 12px 20px;
    }

    .category_title {
        font-size: 24px;
    }

    .quantity_controls {
        gap: 10px;
    }

    .quantity_btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Modal Mobile */
    .cart_item {
        padding: 15px;
    }
    
    .item_name {
        font-size: 16px;
    }
    
    .cart_total_modal {
        font-size: 18px;
    }
    
    .quantity_cart_btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .popup-header h2 {
        font-size: 20px;
    }

    .popup-body p {
        font-size: 16px;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero_container {
        flex-direction: row;
        align-items: center;
    }

    .hero_container .text_section {
        order: 1;
        max-width: 55%;
    }

    .hero_container .image_section {
        order: 2;
        max-width: 40%;
    }

    .about_container {
        flex-direction: row;
    }

    .services .service_container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .section_container .services_items {
        width: calc(50% - 15px);
    }

    .why_us .why_container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .why_container .why_items {
        width: calc(50% - 15px);
    }

    .gallery .gallery_container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .gallery_container .gallery_items {
        width: calc(50% - 10px);
    }
}

/* Order Popup Modal Styles - Fixed for Mobile */
.order-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.order-popup-modal.hidden {
    display: none;
}

.order-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 20, 28, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2001;
}

.order-popup-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    z-index: 2002;
    transform: scale(0.8);
    animation: popupScale 0.3s ease forwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--secondary-color);
    overflow: hidden;
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color), #4a1a24);
    color: white;
    padding: 20px 25px;
    border-radius: 17px 17px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--secondary-color);
    flex: 1;
}

.close-popup {
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 10px;
}

.close-popup:hover {
    background: rgba(243, 150, 28, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    padding: 25px;
    text-align: center;
}

.popup-body p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-buttons .button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 120px;
    white-space: nowrap;
}

.primary-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff8c00);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 150, 28, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 150, 28, 0.5);
}

.secondary-btn {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

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

@keyframes popupScale {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Popup Modal Responsive - Mobile Fix */
    .order-popup-modal {
        padding: 10px;
    }

    .order-popup-content {
        width: 95%;
        max-width: none;
        max-height: 85vh;
        margin: 0;
        border-radius: 15px;
    }

    .popup-header {
        padding: 15px 20px;
        border-radius: 12px 12px 0 0;
    }

    .popup-header h2 {
        font-size: 18px;
    }

    .close-popup {
        font-size: 24px;
        width: 30px;
        height: 30px;
    }

    .popup-body {
        padding: 20px 15px;
    }

    .popup-body p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .popup-buttons .button {
        width: 100%;
        min-width: auto;
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile fixes */
    .order-popup-content {
        width: 98%;
        border-radius: 10px;
    }

    .popup-header {
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }

    .popup-header h2 {
        font-size: 16px;
    }

    .close-popup {
        font-size: 20px;
        width: 25px;
        height: 25px;
    }

    .popup-body {
        padding: 15px 12px;
    }

    .popup-body p {
        font-size: 13px;
    }

    .popup-buttons .button {
        padding: 12px;
        font-size: 14px;
    }
}