@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Ensure html element doesn't overflow */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Background Image Styling - Nice View */
.background-image {
    opacity: 0.4;
    filter: blur(1px) brightness(0.7);
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Fix background image overflow on mobile */
@media (max-width: 767px) {
    .background-image {
        transform: scale(1) !important;
        /* Remove scale on mobile to prevent overflow */
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure background containers don't overflow */
    .absolute.inset-0 {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}

.background-overlay {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(17, 24, 39, 0.6) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(0.5px);
}

/* Thank You Message Styling */
#thankYouMessage {
    animation: fadeInUp 0.8s ease-out;
}

#thankYouMessage svg {
    animation: scaleIn 0.5s ease-out 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#thankYouMessage.hidden {
    display: none;
}

/* Ethiopian Flag Colors */
.ethiopian-flag-line {
    height: 4px;
    background: linear-gradient(to right, #0B6623 33.33%, #F2C300 33.33%, #F2C300 66.66%, #D62612 66.66%);
    margin: 1rem 0;
}

.ethiopian-flag-line-thin {
    height: 2px;
    background: linear-gradient(to right, #0B6623 33.33%, #F2C300 33.33%, #F2C300 66.66%, #D62612 66.66%);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-height: 300px;
    width: auto;
    animation: fadeIn 1.2s ease-out;
}

.logo-img {
    max-height: 45px;
    width: auto;
}

/* Mobile-first: Larger logo on desktop */
@media (min-width: 768px) {
    .hero-logo {
        max-height: 500px;
    }

    .logo-img {
        max-height: 60px;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        max-height: 600px;
    }
}

/* Menu Items */
.menu-item {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    overflow: hidden;
}

/* Injera Items - Special Glow Effect */
.menu-item.injera-item {
    position: relative;
    border: 2px solid #F2C300 !important;
    box-shadow:
        0 0 20px rgba(242, 195, 0, 0.5),
        0 0 40px rgba(242, 195, 0, 0.3),
        0 0 60px rgba(242, 195, 0, 0.2),
        inset 0 0 20px rgba(242, 195, 0, 0.1);
    animation: injeraGlow 2s ease-in-out infinite alternate;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
}

/* Make injera cards wider on larger screens */
@media (min-width: 768px) {
    .menu-item.injera-item {
        min-width: 0;
    }

    /* Make injera grid container wider */
    .grid.max-w-6xl {
        max-width: 100rem;
        /* 1152px - wider container */
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {

    /* On desktop, make injera cards even wider */
    .menu-item.injera-item {
        width: 100%;
    }

    /* Wider container for injera section */
    .grid.max-w-6xl {
        max-width: 80rem;
        /* 1280px - even wider on desktop */
    }
}

@keyframes injeraGlow {
    from {
        box-shadow:
            0 0 20px rgba(242, 195, 0, 0.5),
            0 0 40px rgba(242, 195, 0, 0.3),
            0 0 60px rgba(242, 195, 0, 0.2),
            inset 0 0 20px rgba(242, 195, 0, 0.1);
    }

    to {
        box-shadow:
            0 0 30px rgba(242, 195, 0, 0.7),
            0 0 60px rgba(242, 195, 0, 0.5),
            0 0 90px rgba(242, 195, 0, 0.3),
            inset 0 0 30px rgba(242, 195, 0, 0.2);
    }
}

.menu-item.injera-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #F2C300 !important;
    box-shadow:
        0 0 40px rgba(242, 195, 0, 0.8),
        0 0 80px rgba(242, 195, 0, 0.6),
        0 0 120px rgba(242, 195, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(242, 195, 0, 0.3);
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.95) 0%, rgba(75, 85, 99, 0.95) 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 8px;
}

.coming-soon-overlay-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Disable non-injera items */
.menu-item.coming-soon {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.menu-item.coming-soon:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Zoom effect for all menu items except injera */
.menu-item:not(.injera-item) {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.menu-item:not(.injera-item):hover {
    transform: scale(1.08);
}

.menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

.menu-item:nth-child(4) {
    animation-delay: 0.4s;
}

.menu-item:nth-child(5) {
    animation-delay: 0.5s;
}

.menu-item img:not(.menu-image):not(.package-image) {
    transition: transform 0.3s ease;
}

.menu-item:hover img:not(.menu-image):not(.package-image) {
    transform: scale(1.05);
}

/* Menu Images - Fit the menu card perfectly */
.menu-image {
    width: 100%;
    height: 300px;
    /* Better height for mobile */
    object-fit: cover;
    object-position: center;
    background: transparent;
    padding: 0;
    border-radius: 8px 8px 0 0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Mobile: Show full images like PC (except key and nech enjera) */
@media (max-width: 767px) {

    /* Target all menu images in menu-card-enhanced - show full like PC */
    .menu-card-enhanced {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: auto;
    }

    .menu-card-enhanced .menu-image {
        object-fit: cover;
        background: rgba(17, 24, 39, 0.3);
        height: 400px;
        /* Bigger images on mobile */
        width: 100%;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

    /* Keep cover for injera images (they don't have menu-card-enhanced class) */
    .menu-item:not(.menu-card-enhanced) .menu-image {
        object-fit: cover;
        background: transparent;
        height: 500px;
        /* Bigger for injera images */
    }

    /* Injera items - special mobile styling */
    .menu-item.injera-item {
        width: 100%;
        margin-bottom: 2rem;
        /* More space between injera cards */
        padding: 0;
    }

    /* Injera images on mobile - bigger and better */
    .menu-item.injera-item .menu-image {
        height: 450px !important;
        /* Even bigger for injera */
        width: 100%;
        object-fit: cover;
    }

    /* Injera card content on mobile */
    .menu-item.injera-item .p-6 {
        padding: 2rem !important;
        /* More padding for injera cards */
    }

    /* Injera titles on mobile - bigger */
    .menu-item.injera-item h3 {
        font-size: 1.75rem !important;
        line-height: 1.4;
        margin-bottom: 1rem !important;
    }

    /* Injera descriptions on mobile */
    .menu-item.injera-item p.text-gray-400 {
        font-size: 1.1rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem !important;
    }

    /* Injera prices on mobile - bigger */
    .menu-item.injera-item .gold-text.font-semibold {
        font-size: 1.25rem !important;
    }

    /* All grid containers on mobile - make them wider like injera */
    .grid.max-w-6xl,
    .grid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.25rem !important;
        /* Minimal padding for maximum width - match injera */
        padding-right: 0.25rem !important;
    }

    /* Override container max-width for all menu sections on mobile - match injera */
    #menu .container.mx-auto,
    section .container.mx-auto {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        /* No padding for maximum width - match injera */
        padding-right: 0 !important;
    }

    /* Override all containers in menu section */
    #menu .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Remove section padding that limits width */
    #menu {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Override Tailwind px-6 class on menu section */
    #menu.py-20.px-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure all sections are contained */
    section {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Fix any absolute positioned elements */
    .absolute {
        max-width: 100vw !important;
    }

    /* Make injera cards wider on mobile */
    .menu-item.injera-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Remove grid gap to maximize width */
    #menu .grid {
        gap: 1rem !important;
    }

    /* Package images - bigger on mobile */
    .package-image {
        height: 400px !important;
    }

    .package-card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: auto;
    }

    .package-card .package-image {
        object-fit: contain !important;
        background: rgba(17, 24, 39, 0.3);
        height: 356px !important;
        /* Even smaller for package items on mobile */
        width: 100%;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

    /* Ensure card content fits properly */
    .menu-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* Video elements in menu items - fit card and rotate to landscape */
.menu-item video.menu-image {
    width: 100%;
    height: 180px;
    /* Reduced height for mobile */
    object-fit: cover;
    /* Fill the card completely */
    object-position: center;
    background: transparent;
    /* Remove dark background */
    padding: 0;
    border-radius: 8px 8px 0 0;
    display: block;
    transform: rotate(-90deg);
    /* Rotate to landscape */
    transform-origin: center center;
}

@media (min-width: 768px) {
    .menu-image {
        height: 320px;
    }

    .menu-item video.menu-image {
        height: 250px;
        /* Smaller for tablet - zoomed out */
    }
}

@media (min-width: 1024px) {
    .menu-image {
        height: 420px;
    }

    .menu-item video.menu-image {
        height: 320px;
        /* Smaller for desktop - zoomed out */
    }
}

.menu-image:hover {
    transform: scale(1.01) translateZ(0);
    transition: transform 0.3s ease;
}

/* Ensure all menu items have proper image display */
.menu-item img.menu-image {
    width: 100%;
    display: block;
}

/* Package Images - Fit the menu card perfectly */
.package-image {
    width: 100%;
    height: 220px;
    /* Default height - overridden in mobile media query */
    object-fit: cover;
    object-position: center;
    background: transparent;
    padding: 0;
    border-radius: 8px 8px 0 0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

@media (min-width: 768px) {
    .package-image {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .package-image {
        height: 420px;
    }
}

.package-image:hover {
    transform: scale(1.02) translateZ(0);
    transition: transform 0.3s ease;
}

/* Menu Cards - Adjusted for larger images */
.menu-card-enhanced {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* Ensure images fit within card */
    min-height: 420px;
    /* Slightly reduced minimum height for mobile */
    border-radius: 8px;
    /* Match card border radius */
}

.menu-card-enhanced .menu-image {
    flex-shrink: 0;
    /* Prevent image from shrinking */
    width: 100%;
    border-radius: 8px 8px 0 0;
    /* Match top corners of card */
}

@media (min-width: 768px) {
    .menu-card-enhanced {
        min-height: 520px;
    }
}

@media (min-width: 1024px) {
    .menu-card-enhanced {
        min-height: 620px;
    }
}

.menu-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure images fit within card */
    min-height: auto;
    /* Let content determine height */
    border-radius: 8px;
    /* Match card border radius */
}

.package-card .package-image {
    flex-shrink: 0;
    /* Prevent image from shrinking */
    width: 100%;
    border-radius: 8px 8px 0 0;
    /* Match top corners of card */
}

/* Reduce spacing in package card content */
.package-card .menu-card-content {
    flex: 0 1 auto;
    /* Don't grow to fill space */
    display: flex;
    flex-direction: column;
}

.package-card p.text-gray-400 {
    flex-grow: 0 !important;
    /* Remove flex-grow */
    margin-bottom: 0.5rem !important;
    /* Reduce bottom margin */
}

.package-card p.text-white {
    margin-top: 0.5rem !important;
    /* Reduce top margin on price */
}

@media (min-width: 768px) {
    .package-card {
        min-height: auto;
    }
}

@media (min-width: 1024px) {
    .package-card {
        min-height: auto;
    }
}

/* Enhanced Menu Card Styles */
.enhanced-menu-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
    border: 2px solid rgba(242, 195, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0B6623 33.33%, #F2C300 33.33%, #F2C300 66.66%, #D62612 66.66%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-menu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 195, 0, 0.6);
    box-shadow: 0 8px 25px rgba(242, 195, 0, 0.2), 0 0 0 1px rgba(242, 195, 0, 0.3);
    background: linear-gradient(135deg, rgba(31, 41, 55, 1) 0%, rgba(17, 24, 39, 1) 100%);
}

.enhanced-menu-card:hover::before {
    opacity: 1;
}

.menu-title-enhanced {
    color: #FFD700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.8px;
    font-weight: 900;
}

.menu-description-enhanced {
    color: #A78BFA;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    line-height: 1.7;
}

.price-enhanced {
    color: #FFFFFF;
    text-shadow: 0 3px 15px rgba(242, 195, 0, 0.8), 0 0 35px rgba(242, 195, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    font-weight: 900;
}

.enhanced-menu-card:hover .menu-title-enhanced {
    color: #F2C300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(242, 195, 0, 0.4);
}

.enhanced-menu-card:hover .menu-description-enhanced {
    color: #C4B5FD;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.enhanced-menu-card:hover .price-enhanced {
    text-shadow: 0 4px 20px rgba(242, 195, 0, 1), 0 0 45px rgba(242, 195, 0, 0.6);
}

/* Typography */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Regular gold-text for menu items, prices, etc. */
.gold-text {
    color: #F2C300;
}

/* Section titles only - white with distressed style (maximum specificity) */
section h2.section-title.gold-text,
#menu h2.section-title.gold-text,
h2.section-title.gold-text.break-words,
h2.section-title.text-4xl.gold-text,
h2.section-title.text-5xl.gold-text {
    color: #FFFFFF !important;
    /* White color */
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.9),
        -1px -1px 1px rgba(0, 0, 0, 0.7),
        0px 0px 3px rgba(0, 0, 0, 0.6),
        3px 3px 1px rgba(0, 0, 0, 0.5),
        -2px 2px 1px rgba(0, 0, 0, 0.4),
        2px -2px 1px rgba(0, 0, 0, 0.4),
        0px 2px 1px rgba(0, 0, 0, 0.3),
        2px 0px 1px rgba(0, 0, 0, 0.3) !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    filter: contrast(1.2) brightness(1.1) !important;
}

.ethiopian-border {
    border: 2px solid;
    border-image: linear-gradient(to right, #0B6623, #F2C300, #D62612) 1;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0B6623 0%, #F2C300 50%, #D62612 100%);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(242, 195, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(242, 195, 0, 0.8), 0 10px 25px rgba(0, 0, 0, 0.4);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

/* Form Inputs */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F2C300;
    outline: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Lazy Loading Image Styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   MOBILE UX IMPROVEMENTS (320px - 767px)
   ============================================ */

@media (max-width: 767px) {

    /* Prevent horizontal overflow - critical mobile fix */
    body,
    html {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Ensure all containers are responsive */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* Fix any elements that might overflow */
    img,
    video {
        max-width: 100% !important;
    }

    /* Ensure sections don't overflow */
    section {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Increase tap targets - minimum 44px */
    #mobileMenuBtn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile menu links - larger tap targets */
    #mobileMenu a {
        display: block;
        padding: 14px 16px;
        min-height: 44px;
        font-size: 1.1rem;
    }

    /* Place Order button - larger on mobile */
    .btn-primary {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1.1rem;
    }

    /* Form inputs - ensure minimum tap target */
    .form-input {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Phone and location links - larger tap area */
    #home a[href^="tel:"] {
        display: inline-block;
        padding: 8px 12px;
        min-height: 44px;
        line-height: 1.5;
    }

    /* Reduce excessive vertical spacing */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .ethiopian-flag-line {
        margin: 0.75rem 0;
    }

    /* Reduce spacing in hero section */
    #home {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding-top: 1rem;
    }

    .hero-logo {
        margin-bottom: 1rem !important;
    }

    /* Reduce menu section spacing */
    #menu h2,
    .section-title {
        margin-bottom: 0.75rem !important;
    }

    .ethiopian-flag-line {
        margin-bottom: 2rem !important;
    }

    /* All menu items - match injera card sizes */
    .menu-item {
        width: 100%;
        margin-bottom: 2rem;
        /* Match injera spacing */
        padding: 0;
    }

    /* Zoom effect for all menu items except injera on mobile */
    .menu-item:not(.injera-item) {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

    .menu-item:not(.injera-item):hover {
        transform: scale(1.08);
    }

    /* Ensure injera items don't get zoomed */
    .menu-item.injera-item {
        transform: none !important;
    }

    /* All menu item images - match injera image size */
    .menu-item .menu-image {
        height: 450px !important;
        /* Match injera image height */
        width: 100%;
        object-fit: cover;
    }

    .menu-item .p-6 {
        padding: 2rem !important;
        /* Match injera padding */
    }

    /* Menu card content - match injera spacing */
    .menu-card-content {
        padding: 2rem !important;
        /* Match injera padding */
    }

    /* Reduce form spacing */
    form .mb-6 {
        margin-bottom: 1.25rem !important;
    }

    /* Prevent text overflow on 320px screens */
    body {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Hero title - responsive font size */
    #home h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    /* Hero subtitle - prevent overflow */
    #home p {
        font-size: 1.1rem !important;
        line-height: 1.4;
        padding: 0 0.5rem;
        word-break: break-word;
    }

    /* Section titles - responsive */
    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        padding: 0 0.5rem;
        word-break: break-word;
    }

    /* Menu item titles - match injera title size */
    .menu-item h3 {
        font-size: 1.75rem !important;
        /* Match injera title size */
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 1rem !important;
    }

    /* Menu item descriptions - match injera description size */
    .menu-item .text-gray-400 {
        font-size: 1.1rem !important;
        /* Match injera description size */
        line-height: 1.6;
        margin-bottom: 1.5rem !important;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Menu descriptions - match injera description size */
    .menu-item p {
        font-size: 1.1rem !important;
        /* Match injera description size */
        line-height: 1.6;
        margin-bottom: 1.5rem !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Menu prices - match injera price size */
    .menu-item .text-2xl {
        font-size: 1.75rem !important;
        /* Match injera price size */
        font-weight: 700 !important;
    }

    /* Menu item price text - match injera price text size */
    .menu-item .gold-text.font-semibold {
        font-size: 1.25rem !important;
        /* Match injera price text size */
    }

    /* Contact info - prevent overflow */
    #home .text-lg,
    #home .text-xl {
        font-size: 0.95rem !important;
        line-height: 1.5;
        word-break: break-word;
    }

    /* Location text - wrap properly */
    #home .flex.items-center p {
        font-size: 0.9rem !important;
        word-break: break-word;
    }

    /* About section text */
    #about p {
        font-size: 0.95rem !important;
        line-height: 1.6;
        padding: 0 0.5rem;
        word-break: break-word;
    }

    /* Order notice - prevent overflow */
    #order .bg-yellow-900 {
        padding: 1rem !important;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    #order .bg-yellow-900 p {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Form labels */
    label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }

    /* Container padding reduction */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Special: Make injera section container wider on mobile */
    #menu .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100% !important;
    }

    /* Navbar padding reduction */
    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* Menu grid gap reduction */
    .grid {
        gap: 1rem !important;
    }

    /* Footer spacing */
    footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Price text - ensure readable */
    .menu-item .text-2xl {
        font-size: 1.5rem !important;
    }

    /* Menu pricing rows - prevent overflow */
    .menu-item .flex.justify-between {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .menu-item .flex.justify-between span {
        word-break: break-word;
    }
}

/* Extra small screens (320px) - additional optimizations */
@media (max-width: 360px) {

    /* Further reduce font sizes */
    #home h1 {
        font-size: 1.75rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .menu-item h3 {
        font-size: 1.1rem !important;
    }

    /* Reduce padding even more */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .menu-item .p-6 {
        padding: 0.75rem !important;
    }

    /* Ensure buttons are still tappable */
    .btn-primary {
        min-height: 48px;
        padding: 12px 20px;
    }

    /* Contact info on very small screens */
    #home .flex.flex-col {
        gap: 0.75rem !important;
    }

    #home .flex.items-center {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}