/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* General Styles */
:root {
    --primary-color: #ff5733;
    --secondary-color: #ff8c42;
    --accent-color: #ffcc29;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
    transition: var(--transition);
}

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

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px 40px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo img {
    width: 120px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Enhanced Hover Effect */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Search Bar */
.search-container {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 500px;
}

.search-container input {
    padding: 12px 25px;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(255, 87, 51, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('food-hero.jpg') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideIn 1.5s ease-in-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0;
    line-height: 1.6;
    animation: slideIn 1.8s ease-in-out;
}

/* Enhanced CTA Button */
.cta-button {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    animation: fadeIn 2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 204, 41, 0.3);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 80px 20px;
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature {
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    background: var(--light-bg);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature:hover img {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Dark Mode Support */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--white);
}

body.dark-mode .feature {
    background: #2a2a2a;
}

body.dark-mode .search-container input {
    background: #2a2a2a;
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* Gallery Page Scroll */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    height: 500px;
    padding: 20px;
    scroll-behavior: smooth;
}

.gallery-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* On Hover Effect */
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

footer:hover {
    background: #333;
}
