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

:root {
    --primary: #2d5016;
    --accent: #ff6b35;
    --bright: #7fb069;
    --cream: #faf8f3;
    --dark: #1a1a1a;
    --gold: #ffd700;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.particle:nth-child(1) { width: 60px; height: 60px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 40px; height: 40px; left: 60%; animation-delay: 2s; }
.particle:nth-child(3) { width: 80px; height: 80px; left: 80%; animation-delay: 4s; }
.particle:nth-child(4) { width: 30px; height: 30px; left: 30%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-20vh) rotate(180deg); }
}

/* Hero section with immersive design */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, rgba(45, 80, 22, 0.9), rgba(127, 176, 105, 0.8)),
                radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.3) 0%, transparent 50%);
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: heroFadeIn 2s ease-out;
}

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

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
}

.hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8); }
}

/* Menu sections */
.menu-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(250, 248, 243, 0.95), rgba(250, 248, 243, 0.98));
    backdrop-filter: blur(20px);
}

.menu-section:nth-child(even) {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--bright));
    border-radius: 2px;
}

/* Interactive menu grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.menu-item {
    position: relative;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    perspective: 1000px;
    height: 450px;
}

.menu-item:hover {
    transform: translateY(-15px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.menu-item.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-front {
    background: white;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-back .flip-back-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card-back .flip-back-btn:hover {
    background: white;
    transform: scale(1.05);
}

.menu-item:hover .card-front, .menu-item:hover .card-back {
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(127, 176, 105, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.item-image {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.3), rgba(127, 176, 105, 0.2));
}

.item-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.add-btn {
    background: linear-gradient(135deg, var(--bright), #5a9b47);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 176, 105, 0.3);
}

.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(127, 176, 105, 0.5);
}

/* Floating elements */
.floating-emoji {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 5;
    animation: floatEmoji 15s linear infinite;
}

@keyframes floatEmoji {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* Special effects */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 2s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary), #1a3d0f);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
