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

/* Critical CSS - Above the fold styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #F7F7F2;
    /* Optimize font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Optimize text rendering */
    text-rendering: optimizeLegibility;
}

/* Caveat font for headings and special elements */
.caveat-font {
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Apply Caveat font to all paragraphs */
p {
    font-family: "Caveat", cursive;
    font-size: 1.2rem;
    font-weight: 500;
}

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

/* Header and Menu Wrapper */
.header-menu-wrapper {
    background: rgba(79, 106, 86, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Header and Navigation */
.header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="%23FFF" stop-opacity="0.15"/><stop offset="100%" stop-color="%23FFF" stop-opacity="0"/></radialGradient></defs><circle cx="10" cy="10" r="8" fill="url(%23a)"/><circle cx="25" cy="15" r="6" fill="url(%23a)"/><circle cx="40" cy="8" r="7" fill="url(%23a)"/><circle cx="55" cy="12" r="5" fill="url(%23a)"/><circle cx="70" cy="6" r="9" fill="url(%23a)"/><circle cx="85" cy="14" r="4" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    /* Hardware acceleration for better performance */
    transform: translateZ(0);
    will-change: transform;
}

/* Add additional glass effect overlay */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateZ(0); 
    }
    50% { 
        transform: translateY(-20px) translateZ(0); 
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: "Caveat", cursive;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: "Caveat", cursive;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    color: #CEB596;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
    border-radius: 3px;
}

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

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.hero h1 {
    font-family: "Caveat", cursive;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-family: "Caveat", cursive;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: "Caveat", cursive;
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #80B097;
    color: #F7F7F2;
    border: 2px solid #80B097;
}

.btn-primary:hover {
    background: transparent;
    color: #80B097;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 176, 151, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4F6A56;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Sections */
.section-title {
    font-family: "Caveat", cursive;
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #C27E5E;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Menu Section */
.menu-section {
    padding: 10px;
    background: transparent;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Optimized transitions and transforms */
.menu-category, .gallery-item, .contact-item, .btn, .nav-link, .thumbnail {
    transition: all 0.3s ease;
}

.menu-category {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: rotateY(-90deg) scale(0.8);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, opacity;
}

/* Animation class that gets added when scrolled into view */
.menu-category.animate {
    animation: flipInCascade 0.8s ease-out forwards;
}

.menu-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.menu-category:hover {
    transform: translateY(-15px) scale(1.05) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Cascading animation delays for scroll-triggered animations */
.menu-category.animate:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-category.animate:nth-child(2) {
    animation-delay: 0.3s;
}

.menu-category.animate:nth-child(3) {
    animation-delay: 0.5s;
}

.menu-category.animate:nth-child(4) {
    animation-delay: 0.7s;
}

.menu-category:hover::after {
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.2) 100%);
}

.menu-category h3 {
    font-family: "Caveat", cursive;
    color: #F7F7F2;
    text-shadow: 2px 2px 4px rgba(79, 106, 86, 0.6);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Performance optimizations */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(247, 247, 242, 0.2);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-30px);
    will-change: transform, opacity;
    contain: layout style paint;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

/* Animation class for menu items */
.menu-item.animate {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.menu-item.animate:nth-child(2) { animation-delay: 0.9s; }
.menu-item.animate:nth-child(3) { animation-delay: 1.0s; }
.menu-item.animate:nth-child(4) { animation-delay: 1.1s; }
.menu-item.animate:nth-child(5) { animation-delay: 1.2s; }
.menu-item.animate:nth-child(6) { animation-delay: 1.3s; }

.menu-item:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(247, 247, 242, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(206, 181, 150, 0.4);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-family: "Caveat", cursive;
    font-weight: 700;
    font-size: 1.4rem;
    color: #F7F7F2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(79, 106, 86, 0.3);
    line-height: 1.2;
}

.item-desc {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: rgba(247, 247, 242, 0.8);
    font-style: italic;
    line-height: 1.3;
}

.item-price {
    font-family: "Caveat", cursive;
    color: #7b3e21;
    font-weight: 700;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(194, 126, 94, 0.3);
    margin-left: 1rem;
    flex-shrink: 0;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #F7F7F2;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-family: "Caveat", cursive;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #4F6A56;
    font-weight: 600;
}

.about-text p {
    font-family: "Caveat", cursive;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #4F6A56;
    font-weight: 500;
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #C27E5E;
    font-weight: 500;
}

.feature span {
    font-family: "Caveat", cursive;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature i {
    font-size: 1.5rem;
}

/* Gradient Wrapper for Gallery and Contact */
.gradient-wrapper {
    background: rgba(128, 176, 151, 0.9);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    grid-auto-rows: auto;
}

/* Optimize gallery items */
.gallery-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    will-change: transform, opacity;
}

/* Animation class for gallery items */
.gallery-item.animate {
    animation: galleryItemReveal 0.8s ease-out forwards;
}

.gallery-item.animate:nth-child(1) { animation-delay: 0.1s; }
.gallery-item.animate:nth-child(2) { animation-delay: 0.2s; }
.gallery-item.animate:nth-child(3) { animation-delay: 0.3s; }
.gallery-item.animate:nth-child(4) { animation-delay: 0.4s; }
.gallery-item.animate:nth-child(5) { animation-delay: 0.5s; }
.gallery-item.animate:nth-child(6) { animation-delay: 0.6s; }
.gallery-item.animate:nth-child(7) { animation-delay: 0.7s; }
.gallery-item.animate:nth-child(8) { animation-delay: 0.8s; }

.gallery-item:hover {
    transform: translateY(-20px) scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
    z-index: 0;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: brightness(0.8) contrast(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-family: "Caveat", cursive;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-description {
    font-family: "Caveat", cursive;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.4;
}

/* Special layout variations */
.gallery-item:nth-child(3n) .gallery-image {
    height: 300px;
}

.gallery-item:nth-child(4n) .gallery-image {
    height: 220px;
}

.gallery-item:nth-child(5n) .gallery-image {
    height: 280px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: transparent;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
    min-height: 250px;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item i {
    color: #80B097;
    font-size: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(128, 176, 151, 0.1);
    border: 2px solid rgba(128, 176, 151, 0.2);
}

.contact-item:hover i {
    transform: scale(1.2) rotateY(360deg);
    color: #F7F7F2;
    background: rgba(128, 176, 151, 0.8);
    border: 2px solid rgba(128, 176, 151, 1);
    box-shadow: 0 10px 25px rgba(128, 176, 151, 0.3);
}

.contact-item h4 {
    font-family: "Caveat", cursive;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.contact-item:hover h4 {
    transform: translateY(-5px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.contact-item p {
    font-family: "Caveat", cursive;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.contact-item p a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

.contact-item p a:hover {
    color: #CEB596;
    background: rgba(206, 181, 150, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(206, 181, 150, 0.3);
}

.contact-item:hover p {
    transform: translateY(-5px);
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: #4F6A56;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h3 {
    font-family: "Caveat", cursive;
    color: #80B097;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.footer-logo p {
    font-family: "Caveat", cursive;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #80B097;
}

.footer-social a .fa-facebook:hover {
    color: #1877F2;
}

.footer-social a .fa-whatsapp:hover {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #C27E5E;
    color: #F7F7F2;
}

.footer-bottom p {
    font-family: "Caveat", cursive;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -80%;
        width: 80%;
        background: rgba(79, 106, 86, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 999;
        border-radius: 0 15px 15px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px !important;
    }
    
    /* Mobile gallery overlay - always visible with transparency */
    .gallery-overlay {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        position: relative;
    }
    
    .gallery-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .gallery-description {
        font-size: 0.9rem;
        opacity: 0.9;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        padding: 2rem 1rem;
        min-height: 220px;
    }
    
    .contact-item i {
        font-size: 2.5rem;
    }
    
    .contact-item h4 {
        font-size: 1.6rem;
    }
    
    .contact-item p {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .menu-category {
        padding: 1.5rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.8rem;
        min-height: 200px;
    }
    
    .contact-item i {
        font-size: 2.2rem;
        padding: 0.8rem;
    }
    
    .contact-item h4 {
        font-size: 1.5rem;
    }
    
    .contact-item p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 250px !important;
    }
    
    /* Enhanced mobile gallery overlay for small screens */
    .gallery-overlay {
        padding: 1.2rem;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .gallery-title {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .gallery-description {
        font-size: 1rem;
        opacity: 1;
        line-height: 1.3;
    }
    
    .gallery-item:hover {
        transform: translateY(-10px) scale(1.02);
    }
}

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

@keyframes flipInCascade {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) scale(0.8) translateZ(-100px);
        filter: blur(5px);
    }
    25% {
        opacity: 0.3;
        transform: rotateY(-45deg) scale(0.9) translateZ(-50px);
        filter: blur(3px);
    }
    50% {
        opacity: 0.7;
        transform: rotateY(-10deg) scale(1.05) translateZ(20px);
        filter: blur(1px);
    }
    75% {
        opacity: 0.9;
        transform: rotateY(5deg) scale(1.02) translateZ(10px);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1) translateZ(0px);
        filter: blur(0px);
    }
}

@keyframes galleryItemReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg) scale(0.9);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) rotateX(-2deg) scale(1.02);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0px);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Remove the general animation from menu-category since we have specific flip animation */
.gallery-item,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Optimize animations - combine similar keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flipInCascade {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: rotateY(-10deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

@keyframes galleryItemReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 106, 86, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fcfcfd;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.close-modal:hover {
    color: #CEB596;
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(206, 181, 150, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.modal-header h3 {
    font-family: "Caveat", cursive;
    color: #fcfcfd;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.modal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fcfcfd;
    padding: 0.8rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: rgba(206, 181, 150, 0.8);
    color: #4F6A56;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(206, 181, 150, 0.4);
    border: 1px solid rgba(206, 181, 150, 1);
    text-shadow: none;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#imageCounter {
    font-family: "Caveat", cursive;
    color: #fcfcfd;
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    padding: 1rem 0;
}

#modalImage {
    max-width: 95%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#modalDescription {
    display: none;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
    border: 2px solid rgba(206, 181, 150, 0.6);
    box-shadow: 0 5px 15px rgba(206, 181, 150, 0.3);
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid #CEB596;
    box-shadow: 0 0 15px rgba(206, 181, 150, 0.6);
    transform: scale(1.05);
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 3% auto;
        width: 95%;
        height: 90%;
        padding: 1.5rem;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .modal-nav {
        justify-content: center;
    }
    
    .close-modal {
        top: 0.5rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    #modalImage {
        max-width: 90%;
        max-height: 55vh;
    }
    
    .modal-thumbnails {
        max-height: 80px;
        padding: 0.5rem 0;
    }
    
    .thumbnail {
        width: 45px;
        height: 45px;
    }
    
    #imageCounter {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        width: 98%;
        height: 92%;
        padding: 1rem;
    }
    
    .modal-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.8rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .modal-thumbnails {
        gap: 0.3rem;
        max-height: 70px;
        padding: 0.5rem 0;
    }
    
    #modalImage {
        max-width: 85%;
        max-height: 50vh;
    }
    
    .modal-body {
        padding: 0.5rem 0;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}