/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f7f7f7;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header Styles */
header.main-header {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 2s ease-in-out;
}

header .logo {
    width: 150px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #34495e;
    border-radius: 4px;
}

/* Hero Section with Animated Background */
#hero {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
    animation: fadeIn 2s ease-in-out;
}

.animated-bg {
    background-attachment: fixed;
    animation: backgroundSlide 10s infinite alternate ease-in-out;
}

/* Button Hover Animation */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s ease;
}

.animated-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1) rotate(2deg);
}

/* Section Animation */
.section {
    padding: 3rem 1.5rem;
    background-color: white;
    margin: 2rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInSection 1s forwards ease-in-out;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInSection 1.5s forwards ease-in-out;
}

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

/* Menu Grid Animation */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background-color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: slideInMenu 1s forwards ease-in-out;
}

/* Keyframes for slide-in animation */
@keyframes slideInMenu {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item img {
    width: 100%;
    border-radius: 8px;
}

.menu-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.menu-item p {
    font-size: 1.1rem;
}

.menu-item .price {
    font-weight: 600;
    color: #e74c3c;
}

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

/* Background Animation */
@keyframes backgroundSlide {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

