/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gold: #d4af37;
    --gold-light: #e8d5a3;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --text-light: #e5e5e5;
    --text-gray: #999999;
    --whatsapp-green: #25d366;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent flash of white background */
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop: Larger container for better image display */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .menu-showcase .container {
        max-width: 1600px;
    }
}

/* Header Slideshow Section */
.header-slideshow {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-slideshow {
        height: 100vh;
        min-height: 100vh;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .hero-content {
        max-width: 550px;
    }
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Ensure active slide is visible immediately - no delay */
.slide.active {
    opacity: 1 !important;
    transition: opacity 0s ease-in-out;
}

/* After initial load, allow transitions for slideshow */
.slideshow-container.initialized .slide.active {
    transition: opacity 1.5s ease-in-out;
}

/* Ensure first slide is visible on initial load before JS runs */
.slide:first-child {
    opacity: 1;
}

/* Once JS runs, it will manage visibility properly */
.slideshow-container.initialized .slide:first-child:not(.active) {
    opacity: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ensure images display properly on all screen sizes */
    display: block;
    /* Better scaling on high DPI displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    /* Prevent image distortion */
    -ms-interpolation-mode: bicubic;
}

/* Desktop: Better image display for large screens */
@media (min-width: 1025px) {
    .slide img {
        object-fit: cover;
        object-position: center center;
        /* Ensure full coverage on desktop */
        min-width: 100%;
        min-height: 100%;
    }
    
    .header-slideshow {
        /* Ensure full viewport coverage */
        width: 100vw;
        height: 100vh;
    }
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.header-slideshow {
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    position: relative;
    padding: 80px 0;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    /* Prevent layout shift - reserve space immediately */
    min-height: 400px;
    will-change: transform;
    /* Use CSS containment for better performance */
    contain: layout style paint;
}

.logo-container {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    /* Reserve space to prevent layout shift */
    min-width: 300px;
    min-height: 200px;
    /* Prevent reflow */
    will-change: transform;
    contain: layout style;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 148, 31, 0.25) 0%, rgba(248, 231, 143, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(184, 148, 31, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    animation: logoGlow 2.5s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes logoBlink {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.logo {
    display: inline-block;
    max-width: 480px;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 15px 40px rgba(184, 148, 31, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 3s ease-in-out infinite;
    /* Prevent layout shift - reserve aspect ratio space */
    aspect-ratio: auto;
    /* Optimize rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo:hover {
    filter: drop-shadow(0 20px 50px rgba(184, 148, 31, 0.6));
    transform: scale(1.05);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.restaurant-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Hero Actions */
.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    /* Reserve space to prevent layout shift */
    min-height: 80px;
    justify-content: center;
}

.hero-reservation-btn {
    display: inline-block;
    padding: 20px 55px;
    background: linear-gradient(135deg, #b8941f 0%, #f8e78f 100%);
    color: var(--black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 25px rgba(184, 148, 31, 0.3),
                0 0 0 0 rgba(184, 148, 31, 0.4);
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Reserve space to prevent layout shift */
    min-height: 60px;
    box-sizing: border-box;
    /* Optimize rendering */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.hero-reservation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-reservation-btn:hover::before {
    left: 100%;
}

.hero-reservation-btn:hover {
    background: linear-gradient(135deg, #a0821a 0%, #f0dd7a 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(184, 148, 31, 0.5),
                0 0 0 4px rgba(184, 148, 31, 0.2);
    /* Smooth transition */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-reservation-btn:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 20px rgba(184, 148, 31, 0.4);
}

/* Scroll Indicator Arrow */
.header-slideshow .scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #b8941f;
    cursor: pointer;
    z-index: 10;
    animation: elegantBounce 2.5s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 20px 20px 25px 20px;
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    border-radius: 50px 50px 0 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 148, 31, 0.3);
    border-bottom: none;
    width: 100%;
    max-width: 200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-indicator:hover {
    color: #f8e78f;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(184, 148, 31, 0.4);
    box-shadow: 0 8px 25px rgba(184, 148, 31, 0.3);
}

@keyframes elegantBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 1;
    }
}

.scroll-indicator svg {
    width: 52px;
    height: 52px;
    stroke: currentColor;
    stroke-width: 2.5;
    filter: drop-shadow(0 4px 8px rgba(184, 148, 31, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-indicator:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(184, 148, 31, 0.6));
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    background: linear-gradient(to bottom, #a0821a, #f0dd7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0.7;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 20px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

/* Menu Showcase Section */
.menu-showcase {
    padding: 0 0 100px 0;
    background-color: var(--dark-gray);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Desktop: Better grid layout for menu images */
@media (min-width: 1025px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        max-width: 1400px;
        margin: 40px auto 0;
    }
    
    .menu-card {
        padding: 25px;
    }
}

.menu-card {
    background: var(--black);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 20px;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.menu-card.featured {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--black) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.menu-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.limited-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--black);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-align: center;
}

.limited-text {
    color: var(--gold-light);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.menu-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: var(--dark-gray);
}

.menu-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Ensure images display properly on desktop */
    display: block;
    /* Better image quality on desktop */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

/* Desktop: Show full images without cropping */
@media (min-width: 1025px) {
    .menu-image-container {
        padding-top: 0;
        min-height: 500px;
        max-height: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--black);
    }
    
    .menu-image {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 700px;
        object-fit: contain;
        object-position: center;
        /* Ensure full image is visible */
        max-width: 100%;
    }
    
    /* Ensure menu cards have proper spacing on desktop */
    .menu-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

.menu-image-container:hover .menu-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-image-container:hover .image-overlay {
    opacity: 1;
}

.view-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Reservation Section */
.reservation-section {
    padding: 120px 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.reservation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(184, 148, 31, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(248, 231, 143, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.reservation-section .container {
    position: relative;
    z-index: 1;
}

.reservation-section .section-title {
    margin-bottom: 80px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #b8941f 0%, #f8e78f 100%);
    color: var(--black);
    border: none;
    border-radius: 50px;
    padding: 22px 60px;
    font-size: 1.15rem;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(184, 148, 31, 0.3),
                0 0 0 0 rgba(184, 148, 31, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a0821a 0%, #f0dd7a 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(184, 148, 31, 0.5),
                0 0 0 4px rgba(184, 148, 31, 0.2);
}

.navigation-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.nav-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 148, 31, 0.2);
    border-radius: 16px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 148, 31, 0.1) 0%, rgba(248, 231, 143, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:hover {
    border-color: rgba(184, 148, 31, 0.5);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 148, 31, 0.2);
}

.nav-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(184, 148, 31, 0.3));
    transition: all 0.4s ease;
}

.nav-btn:hover .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(184, 148, 31, 0.5));
}

.nav-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.nav-btn:hover .nav-label {
    background: linear-gradient(to bottom, #f8e78f, #b8941f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    padding: 60px 0;
    background-color: var(--black);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-address {
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-phone {
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.footer-phone a {
    background: linear-gradient(to bottom, #b8941f, #f8e78f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-phone a:hover {
    background: linear-gradient(to bottom, #a0821a, #f0dd7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(212, 175, 55, 0.3);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-touch-callout: none;
    /* Better image quality on desktop */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    display: block;
}

/* Desktop: Better modal image display */
@media (min-width: 1025px) {
    .modal-image {
        max-width: 90vw;
        max-height: 90vh;
        /* Ensure images are large and clear on desktop */
        object-fit: contain;
    }
    
    .modal-content {
        padding: 40px;
    }
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 2001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.9);
    color: var(--black);
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-slideshow {
        height: 100vh;
    }

    .hero {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 15px;
        min-height: 300px;
    }
    
    .logo-container {
        margin-bottom: 20px;
        padding: 15px;
        min-width: 200px;
        min-height: 150px;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .hero-actions {
        margin-top: 30px;
        gap: 0;
        min-height: 70px;
    }
    
    .hero-reservation-btn {
        padding: 15px 40px;
        font-size: 1rem;
        max-width: 280px;
    }
    
    .header-slideshow .scroll-indicator {
        bottom: 0;
        padding: 15px 15px 20px 15px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 10px);
        max-width: 180px;
    }
    
    .scroll-indicator svg {
        width: 40px;
        height: 40px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }

    .logo-container {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .logo-container::before {
        width: 400px;
        height: 400px;
    }
    
    .logo-container::after {
        width: 360px;
        height: 360px;
    }
    
    .logo {
        max-width: 300px;
        height: auto;
    }
    
    .hero-actions {
        margin-top: 25px;
        gap: 0;
    }
    
    .hero-reservation-btn {
        padding: 18px 50px;
        font-size: 1.1rem;
        max-width: 300px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator svg {
        width: 40px;
        height: 40px;
    }

    .scroll-text {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-showcase {
        padding: 0 0 60px 0;
    }

    .menu-showcase .container {
        padding: 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
    }

    .menu-card {
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .menu-card:hover {
        transform: none;
        box-shadow: none;
    }

    .menu-image-container {
        border-radius: 0;
        padding: 0;
        margin: 0;
        padding-top: 0;
        height: auto;
    }

    .menu-image {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0;
        padding: 0;
        display: block;
    }

    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }

    .reservation-section {
        padding: 80px 0;
    }

    .reservation-section .section-title {
        margin-bottom: 50px;
    }

    .action-buttons {
        gap: 30px;
    }

    .btn-primary {
        padding: 20px 50px;
        font-size: 1.05rem;
        max-width: 100%;
    }

    .navigation-buttons {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .nav-btn {
        width: 100%;
        padding: 22px 30px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
        width: 40px;
        height: 40px;
    }

    .modal-image {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .header-slideshow {
        height: 100vh;
    }

    .hero {
        padding: 30px 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
        min-height: 280px;
    }
    
    .logo-container {
        margin-bottom: 15px;
        padding: 15px;
        min-width: 180px;
        min-height: 120px;
    }
    
    .logo-container::before {
        width: 350px;
        height: 350px;
    }
    
    .logo-container::after {
        width: 320px;
        height: 320px;
    }
    
    .logo {
        max-width: 280px;
        height: auto;
    }
    
    .hero-actions {
        margin-top: 20px;
        gap: 0;
        width: 100%;
    }
    
    .hero-reservation-btn {
        padding: 16px 45px;
        font-size: 1rem;
        max-width: 100%;
    }
    
    .header-slideshow .scroll-indicator {
        bottom: 0;
        padding: 12px 12px 18px 12px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px) + 15px);
        max-width: 160px;
    }
    
    .scroll-indicator svg {
        width: 36px;
        height: 36px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }

    .reservation-section {
        padding: 60px 0;
    }

    .reservation-section .section-title {
        margin-bottom: 40px;
    }

    .action-buttons {
        gap: 25px;
    }

    .btn-primary {
        padding: 18px 40px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .navigation-buttons {
        gap: 15px;
    }

    .nav-btn {
        padding: 20px 25px;
        gap: 12px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .nav-label {
        font-size: 0.9rem;
    }

    .footer-name {
        font-size: 1.5rem;
    }
}

/* Chrome on iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari and Chrome on iOS */
    .header-slideshow .scroll-indicator {
        bottom: env(safe-area-inset-bottom, 0px);
        padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px) + 20px);
    }
    
    @media (max-width: 768px) {
        .header-slideshow .scroll-indicator {
            padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 25px);
        }
    }
    
    @media (max-width: 480px) {
        .header-slideshow .scroll-indicator {
            padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px) + 30px);
        }
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .menu-image-container {
        cursor: pointer;
    }

    .nav-btn:active {
        transform: scale(0.95);
    }

    .btn-primary:active {
        transform: scale(0.98);
    }
}

